Code Monkey home page Code Monkey logo

Comments (14)

samsonrosen avatar samsonrosen commented on July 19, 2024 1

Hey! So I've done a bit of digging and homebridge -V isn't representative of my current version. I think I need to update the link somehow between typing homebridge in the CLI and what's actually installed.. I think it might be linked to an old version.

None the less I've installed Homebridge 1.1.0, updated to your 0.1.3 version and manually run the command:

sudo /usr/local/Cellar/node/12.4.0/lib/node_modules/homebridge/bin/homebridge -I

And now it's behaving.

from homebridge-switchbot-for-mac.

zizi4n5 avatar zizi4n5 commented on July 19, 2024

It's not happening on my Homebridge, so maybe it's the newly added ping feature that's causing it.
Could you remove the ping settings once and see if the problem occurs?

from homebridge-switchbot-for-mac.

samsonrosen avatar samsonrosen commented on July 19, 2024

from homebridge-switchbot-for-mac.

samsonrosen avatar samsonrosen commented on July 19, 2024

Hey,

I’ve been using it all day without the crash. Seems to be the ping module. Let me know if there’s any more logs I can provide.

from homebridge-switchbot-for-mac.

zizi4n5 avatar zizi4n5 commented on July 19, 2024

Thank you for the confirmation and the suggestion to provide a log.
Unfortunately, version 0.1.0 does not embed the logs for failure investigation.
For this reason, I will consider releasing a version with additional logging.

I'm sorry, but I can only work on it on weekends, so it will take some time.

from homebridge-switchbot-for-mac.

zizi4n5 avatar zizi4n5 commented on July 19, 2024

The homebridge-broadlink-rm also seems to have a crash in the net-ping module used for pinging, so this may be a problem with the net-ping module.
lprhodes/homebridge-broadlink-rm#631

from homebridge-switchbot-for-mac.

zizi4n5 avatar zizi4n5 commented on July 19, 2024

I have released 0.1.2 with the following fixes, can you check again?

Fix ping session generation process, which could be the cause of the crash, to run only once.

Unfortunately, if you still have problems with 0.1.2, you can use the ping option and see if you can't improve it by changing that.

https://github.com/zizi4n5/homebridge-switchbot-for-mac#ping

from homebridge-switchbot-for-mac.

samsonrosen avatar samsonrosen commented on July 19, 2024

Hey! Thanks for updating this so quickly. I have updated and inserted the new sample config and will let you know if I get the same error.

With the printer switched off I am getting an error every second: [Error: No route to Host] followed by [Error: Host is down]. Which makes sense as the printer is off. But it does fill the homebridge terminal up.

from homebridge-switchbot-for-mac.

zizi4n5 avatar zizi4n5 commented on July 19, 2024

With the printer switched off I am getting an error every second: [Error: No route to Host] followed by [Error: Host is down]. Which makes sense as the printer is off. But it does fill the homebridge terminal up.

Hi! As you said, the log output of ping results was too many.
For this reason, I have released an improved version 0.1.3, which only shows the log output when Homebrige Settings is debug mode.
homebridge-debug-mode

from homebridge-switchbot-for-mac.

samsonrosen avatar samsonrosen commented on July 19, 2024

Wow! You’re the best. Thanks for being so responsive. Is there somewhere I can donate to your efforts? This is a great plugin.

Can we hound you when the SwitchBot curtain comes out? Haha.

I’ll update to 0.1.3. But I can confirm I haven’t had the segmentation error and Homebridge has been running for over 24 hours now.

from homebridge-switchbot-for-mac.

samsonrosen avatar samsonrosen commented on July 19, 2024

Hey! I just updated and now I'm getting this error:

Church-Server:~ churchserver$ homebridge -V
0.4.53

I've since uninstalled and downgraded back to 0.1.2 and now it's working. Is there something I need to change in the config code?

`====================
[22/06/2020, 08:11:01] ERROR LOADING PLUGIN homebridge-switchbot-for-mac:
[22/06/2020, 08:11:01] Error: Plugin /usr/local/Cellar/node/12.4.0/lib/node_modules/homebridge-switchbot-for-mac requires a HomeBridge version of >0.4.53 which does not satisfy the current HomeBridge version of 0.4.53. You may need to upgrade your installation of HomeBridge.
at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:57:11)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:153:14)
at Array.forEach (:null:null)
at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:145:22)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:57:24)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:32:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:1200:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1049:32)
at Function.Module._load (internal/modules/cjs/loader.js:937:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47

[22/06/2020, 08:11:01] ====================
`

Error: The requested accessory 'SwitchBot-For-Mac' was not registered by any plugin. at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:64:13) at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:297:42) at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:91:38) at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10) at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (internal/modules/cjs/loader.js:1200:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10) at Module.load (internal/modules/cjs/loader.js:1049:32) at Function.Module._load (internal/modules/cjs/loader.js:937:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47

from homebridge-switchbot-for-mac.

zizi4n5 avatar zizi4n5 commented on July 19, 2024

Sorry.
For TypeScript support, the required version of homebridge has been changed to 1.0.0 or later.
Is it possible to up-date homebridge to 1.0.0 or later?

from homebridge-switchbot-for-mac.

samsonrosen avatar samsonrosen commented on July 19, 2024

from homebridge-switchbot-for-mac.

zizi4n5 avatar zizi4n5 commented on July 19, 2024

Thanks for the confirmation.
I'm glad to see it worked.

from homebridge-switchbot-for-mac.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.