-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Expected Behavior
Plugin initialized
Current Behavior
Plugin fails to initialize - see log below. I installed it the following way:
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
- Did this just in case:
sudo setcap cap_net_raw+eip $(eval readlink -f
which node)
- Installed the plugin using the Homebridge UI. Plugin installs.
- I restart Homebridge
- Initialization Error occurs
- I try to install
npm install bluetooth-hci-socket --unsafe-perm
but I'm getting a long error log
Versions
- homebridge:
1.8.5
- homebridge-mi-hygrothermograph:
/opt/homebridge/lib └── (empty)
- node:
20.18.0
- OS: Raspbian GNU/Linux 12 (bookworm) + Pi Zero W (armv6)
Homebridge Log / Command Output
====================
[15/11/2024, 06:45:47] ERROR INITIALIZING PLUGIN homebridge-mi-hygrothermograph:
[15/11/2024, 06:45:47] Error: Cannot find module '../build/Release/bluetooth_hci_socket.node'
Require stack:
- /var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js
- /var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/bluetooth-hci-socket/index.js
- /var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/lib/hci-socket/hci.js
- /var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
- /var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/lib/resolve-bindings.js
- /var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/with-custom-binding.js
- /var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/index.js
- /var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/lib/scanner.js
- /var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/lib/accessory.js
- /var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/index.js
- /var/lib/homebridge/node_modules/homebridge/lib/plugin.js
- /var/lib/homebridge/node_modules/homebridge/lib/pluginManager.js
- /var/lib/homebridge/node_modules/homebridge/lib/api.js
- /var/lib/homebridge/node_modules/homebridge/lib/server.js
- /var/lib/homebridge/node_modules/homebridge/lib/cli.js
- /var/lib/homebridge/node_modules/homebridge/bin/homebridge
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Function.Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/var/lib/homebridge/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:2:30)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Function.Module._load (node:internal/modules/cjs/loader:1104:12)
at Module.require (node:internal/modules/cjs/loader:1311:19)
[15/11/2024, 06:45:47] ====================
I'm not very 'fluent' in all of this. Maybe it's something simple to fix? Any help would be super appreciated!
Metadata
Metadata
Assignees
Labels
No labels