Comments (14)
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.
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.
from homebridge-switchbot-for-mac.
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.
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.
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.
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.
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.
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.
from homebridge-switchbot-for-mac.
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.
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.
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.
from homebridge-switchbot-for-mac.
Thanks for the confirmation.
I'm glad to see it worked.
from homebridge-switchbot-for-mac.
Related Issues (17)
- More of a Question HOT 1
- Feature Request: Single device on/off with timer HOT 15
- Failing to turn on HOT 22
- lock mode HOT 1
- Ping results in switch state stuck "on" HOT 3
- Ping IP HOT 4
- Configuration of more than 1 switch fails / on-off mode HOT 4
- Support for Switchbot Curtain HOT 1
- Can you do a windows OS support for this plugin ? HOT 1
- Not working when daemonized on macOS Big Sur HOT 4
- Support for Humidifier HOT 3
- Momentary on mode
- Has this been tested under Mojave? HOT 2
- Device not found HOT 1
- Plugin Does Not Work Following Reboot HOT 10
- Support Outside of macOS HOT 25
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-switchbot-for-mac.