Closed harrisbooks closed 2 months ago
Please note that I removed the colons from the BLE address because I wondered if that was the problem. With the colons the plugin still crashes.
Thanks for any help you can provide!
I had a similar issue in the past and was able to workaround it using the steps below. I believe the problem is around giving permissions to the process to use Bluetooth on your Mac. The way I resolved this was to:
/usr/local/bin/node
and add it/usr/local/lib/node_modules/homebridge/bin/homebridge
Adding these two and restarting everything worked for me.
That’s great, thank, you.
I had a similar issue in the past and was able to workaround it using the steps below. I believe the problem is around giving permissions to the process to use Bluetooth on your Mac. The way I resolved this was to:
- Open Settings -> Privacy & Security -> Bluetooth
- Hit the + icon
- Navigate to
/usr/local/bin/node
and add it- Hit the + icon again
- Navigate to
/usr/local/lib/node_modules/homebridge/bin/homebridge
Adding these two and restarting everything worked for me.
v3.5.1 has been released, please install and let me know if this has been resolved.
Thanks @donavanbecker. Unfortunately the issue persists with the latest update. However, I have not yet done what @manavgabhawala suggested.
The error in the log before the plugin crashes is as follows:
[6/28/2024, 8:26:54 AM] [SwitchBot] [DEBUG] Curtain3: Conservatory Curtain Scanning for WoCurtain3 devices... Error: Failed to initialize the Noble object: unauthorized at Noble.<anonymous> (file:///usr/local/lib/node_modules/@switchbot/homebridge-switchbot/node_modules/node-switchbot/src/switchbot.ts:244:19) at Object.onceWrapper (node:events:633:26) at Noble.emit (node:events:518:28) at Noble.onStateChange (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/node_modules/@stoprocent/noble/lib/noble.js:92:8) at NobleMac.emit (node:events:518:28)
I have the full log if you need it, I’ll just need to go through and take out any sensitive information. Thanks for your help.
v3.6.0 has been released. If this issue isn't resolved please open a new issue.
No, it still crashes unfortunately. Thanks for your efforts though!
Can you try the latest beta and if that doesn't work open a new issue as closed issues will not be reviewed:
Will do. Thanks for all your work!
Describe Your Problem
Hello. If I set the connection type of my Curtain 3 to BLE or BLE/OpenAPI, the plugin continuously crashes while starting. The plugin is running on a 2023 Mac Mini.
Relevant log output
Config for homebridge-switchbot
Screenshots
No response
Device & Model
Curtain 3
Node.js Version
20.9.0
NPM Version
10.1.0
Homebridge Version
1.7.0
Homebridge SwitchBot Plugin Version
3.4.0
Homebridge Config UI X Plugin Version
4.55.1
Operating System
macOS Sonoma