Danke für die fantastische Schritt für Schritt Anleitung. Sie hat für Ordnung im Chaos gesorgt! Tausend Dank dafür Normsen!
Wichtig zu wissen war es aber, das die Bluetooth Komponente bluetooth bluez libbluetooth-dev und das homebridge-avea-bulb den root Zugriff bei der Installation benötigen. Ich habe dementsprechend folgenden Befehl vorher eingegeben.
Die Bluetooth Installation ist problemlos durchgelaufen.
Allerdings habe ich bei der Avea-Plugin Installation folgende Fehlermeldungen erhalten.
In file included from ../src/BluetoothHciSocket.cpp:8:0:
../../nan/nan.h:979:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
binding.target.mk:99: recipe for target 'Release/obj.target/binding/src/BluetoothHciSocket.o' failed
make: *** [Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-avea-bulb/node_modules/bluetooth-hci-socket/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.14.50-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-avea-bulb/node_modules/bluetooth-hci-socket
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/homebridge-avea-bulb/node_modules/xpc-connection):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/homebridge-avea-bulb/node_modules/bluetooth-hci-socket):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ [email protected]
updated 1 package in 55.193s
Das Avea bulb plugin for homebridge: homebridge-avea-bulb v1.1.1
erscheint dann aber trotzdem tatsächlich im Homebridge UI Tool als installiert.
Ich dachte, jetzt klappt es. Ich habe dann die config.json um die Avea Plugin Daten ergänzt. Die Homebridge ließ sich dann aber nicht mehr starten. Folgende Fehlermeldung habe ich erhalten.
Oct 05 06:28:57 raspberrypi systemd[1]: Started Node.js HomeKit Server.
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] Loaded config.json with 2 accessories and 1 platforms.
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] ---
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] ====================
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] ERROR LOADING PLUGIN homebridge-avea-bulb:
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] Error: Cannot find module 'bluetooth-hci-socket'
Oct 05 06:28:59 raspberrypi homebridge[6118]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
Oct 05 06:28:59 raspberrypi homebridge[6118]: at Function.Module._load (internal/modules/cjs/loader.js:507:25)
Oct 05 06:28:59 raspberrypi homebridge[6118]: at Module.require (internal/modules/cjs/loader.js:637:17)
Oct 05 06:28:59 raspberrypi homebridge[6118]: at require (internal/modules/cjs/helpers.js:20:18)
Oct 05 06:28:59 raspberrypi homebridge[6118]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-avea-bulb/node_modules/noble/lib/hci-socket/hci.js:6:26)
Oct 05 06:28:59 raspberrypi homebridge[6118]: at Module._compile (internal/modules/cjs/loader.js:689:30)
Oct 05 06:28:59 raspberrypi homebridge[6118]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
Oct 05 06:28:59 raspberrypi homebridge[6118]: at Module.load (internal/modules/cjs/loader.js:599:32)
Oct 05 06:28:59 raspberrypi homebridge[6118]: at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
Oct 05 06:28:59 raspberrypi homebridge[6118]: at Function.Module._load (internal/modules/cjs/loader.js:530:3)
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] ====================
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] Loaded plugin: homebridge-config-ui-x
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] Registering platform 'homebridge-config-ui-x.config'
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] ---
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] Loaded plugin: homebridge-pi
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] Registering accessory 'homebridge-pi.PiTemperature'
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] ---
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] Loading 1 platforms...
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] [Config] Initializing config platform...
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] [Config] Spawning homebridge-config-ui-x with PID 6138
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] Loading 2 accessories...
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] [Raspberry PI Temperature] Initializing PiTemperature accessory...
Oct 05 06:28:59 raspberrypi homebridge[6118]: [10/5/2018, 6:28:59 AM] [Raspberry PI Temperature] Model BCM2835/a02082 Serial 00000000f4eec9f5
Oct 05 06:28:59 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE
Oct 05 06:28:59 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.
Oct 05 06:28:59 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
Fazit: Plugin ist scheinbar installiert. Aber bei der Initialisierung kann er das Bluetooth-HCI-socket Modul nicht finden. Habe ich da was übersehen? Was fehlt noch?
Danke für den Support.