Comments (10)
Worked like a charm! Used delay: 5000. I can go back to nightly reboots and easy-open shades now. Thanks!
from homebridge-switchbot-for-mac.
If BLE initialization is not completed when Homebridge starts up, Mac and SwitchBot connection seems to be failing.
from homebridge-switchbot-for-mac.
Do you happen to know of any way I can modify that? Or is this out of our hands
from homebridge-switchbot-for-mac.
[5/31/2020, 6:10:49 AM] Homebridge is running on port 51745. (node:467)
UnhandledPromiseRejectionWarning: Error: send ENETUNREACH 255.255.255.255:987
at doSend (dgram.js:697:16)
at defaultTriggerAsyncIdScope (internal/async_hooks.js:296:12)
at afterDns (dgram.js:643:5)
at processTicksAndRejections (internal/process/task_queues.js:85:21) (node:467)
UnhandledPromiseRejectionWarning: Unhandled promise rejection.
This error originated either by throwing inside of an async function without a catch block,
or by rejecting a promise which was not handled with .catch().
To terminate the node process on unhandled promise rejection,
use the CLI flag --unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).
(rejection id: 1) (node:467)
[DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated.
In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:467)
UnhandledPromiseRejectionWarning: Error: Failed to initialize the Noble object: unknown at Noble.<anonymous> (/usr/local/lib/node_modules/homebridge-switchbot-for-mac/node_modules/node-switchbot/lib/switchbot.js:172:23)
at Object.onceWrapper (events.js:417:26)
at Noble.emit (events.js:322:22)
at Noble.onStateChange (/usr/local/lib/node_modules/homebridge-switchbot-for-mac/node_modules/@abandonware/noble/lib/noble.js:87:8)
at NobleMac.emit (events.js:310:20) (node:467)
UnhandledPromiseRejectionWarning: Unhandled promise rejection.
This error originated either by throwing inside of an async function without a catch block,
or by rejecting a promise which was not handled with .catch().
To terminate the node process on unhandled promise rejection,
use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).
(rejection id: 2) (node:467)
UnhandledPromiseRejectionWarning: Error: Failed to initialize the Noble object: unknown at Noble.<anonymous> (/usr/local/lib/node_modules/homebridge-switchbot-for-mac/node_modules/node-switchbot/lib/switchbot.js:172:23)
at Object.onceWrapper (events.js:417:26) at Noble.emit (events.js:322:22)
at Noble.onStateChange (/usr/local/lib/node_modules/homebridge-switchbot-for-mac/node_modules/@abandonware/noble/lib/noble.js:87:8)
at NobleMac.emit (events.js:310:20) (node:467)
UnhandledPromiseRejectionWarning: Unhandled promise rejection.
This error originated either by throwing inside of an async function without a catch block,
or by rejecting a promise which was not handled with .catch().
To terminate the node process on unhandled promise rejection,
use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).
(rejection id: 3)
[5/31/2020, 6:10:49 AM] [Config]Homebridge Config UI X v4.21.0 is listening on :: port 8581 (node:467)
UnhandledPromiseRejectionWarning: Error: send ENETUNREACH 255.255.255.255:987
at doSend (dgram.js:697:16)
at defaultTriggerAsyncIdScope (internal/async_hooks.js:296:12)
at afterDns (dgram.js:643:5)
at processTicksAndRejections (internal/process/task_queues.js:85:21) (node:467)
UnhandledPromiseRejectionWarning: Unhandled promise rejection.
This error originated either by throwing inside of an async function without a catch block,
or by rejecting a promise which was not handled with .catch().
To terminate the node process on unhandled promise rejection,
use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
[5/31/2020, 6:10:51 AM] [Spidey PS4] Found device [Spidey PS4]
[5/31/2020, 6:10:51 AM] [Spidey PS4] Finish searching accessories
[5/31/2020, 7:56:07 PM] [Blinds] Turning on...
[5/31/2020, 7:56:07 PM] [Blinds] WoHand (cf:a4:99:de:b5:88) was failed turning on
Error: Failed to initialize the Noble object
This error is the same error as the following Issue, so it seems to be caused by the fact that it is still running before Bluetooth initialization.
For this reason, I'm looking into how to wait out the Bluetooth initialization process.
from homebridge-switchbot-for-mac.
Thanks for looking into this! Hope a resolution can be found eventually!
from homebridge-switchbot-for-mac.
@SSutherland94
I added a delay option to wait for Bluetooth initialization.
Can you check if this can be worked around?
https://github.com/zizi4n5/homebridge-switchbot-for-mac#how-to-use
from homebridge-switchbot-for-mac.
Didn’t want to leave you hanging, but I’ll gladly test this out once I’m home. Should hear back from me around 8 hours from now
from homebridge-switchbot-for-mac.
Using version 0.0.12, delay is set to a value between 0 and 30,000 milliseconds. Please try.
It is possible to specify more than 30000ms, but in my tests of operation, it was not possible to start up correctly.
from homebridge-switchbot-for-mac.
If this doesn't improve the situation, I'm going to try the Bluetooth connection again when operating the Switch.
from homebridge-switchbot-for-mac.
I'm glad it worked properly!
Then this Issue is closed.
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
- Segmentation Fault: 11 HOT 14
- 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.