Hallo Dampf, sorry war zwei Tage offline.
Ich habe mich an dieser Config orientiert:
https://github.com/vojtamolda/…oth/blob/HEAD/config.json
Weiter habe ich noble installiert:
- npm install -g noble
- npm install -g --unsafe-perm homebridge node-gyp
- npm install -g homebridge-bluetooth
allerdings ohne dem "-g", mit hat nicht funktioniert
Hier der Teil der Config für Bluetooth:
{
"platform": "Bluetooth",
"name": "REMODO",
"address": "8C:14:7D:31:47:49",
"services": [
{
"name": "Button",
"type": "Switch",
"UUID": "00001800-0000-1000-8000-00805f9b34fb",
"characteristics": [
{
"type": "On",
"UUID": "5ECEC5A1-7F71-41DA-9B8C-6252FE7EFB7E"
}
]
}
]
}
Aus dem Log:
[17/11/2021, 18:39:21] Loaded plugin: [email protected]
Homebridge API version: 2.7
[17/11/2021, 18:39:22] ====================
[17/11/2021, 18:39:22] ERROR INITIALIZING PLUGIN homebridge-bluetooth:
[17/11/2021, 18:39:22] Error: Cannot find module 'bluetooth-hci-socket'
Require stack:
- /usr/local/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/hci-socket/hci.js
- /usr/local/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/hci-socket/bindings.js
- /usr/local/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/resolve-bindings.js
- /usr/local/lib/node_modules/homebridge-bluetooth/node_modules/noble/index.js
- /usr/local/lib/node_modules/homebridge-bluetooth/index.js
- /usr/local/lib/node_modules/homebridge/lib/plugin.js
- /usr/local/lib/node_modules/homebridge/lib/pluginManager.js
- /usr/local/lib/node_modules/homebridge/lib/server.js
- /usr/local/lib/node_modules/homebridge/lib/cli.js
- /usr/local/lib/node_modules/homebridge/bin/homebridge
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-bluetooth/node_modules/noble/lib/hci-socket/hci.js:6:26)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
[17/11/2021, 18:39:22] ====================
[17/11/2021, 18:41:12] No plugin was found for the platform "Bluetooth" in your config.json. Please make sure the corresponding plugin is installed correctly.
Brauchst Du mehr Infos?
Danke
Der Franke