Ich habe jetzt drei Tage "alles" gelesen und "nix" hingebkommen. Irgendwie fehlt mir ein Puzzlestück im Verständnis.
Ich habe die Homebridge auf dem Pi neu aufgesetzt >> geht
Habe Homebridge-Fakebulb installiert und konfiguriert >> geht
Habe einen Conbee2 in den USB gesteckt und "Homebridge-Hue" installiert.
Fragen
Ich habe keine Philips Hue-Bridge. Geht das überhaupt dann? Dachte schon, bin mir nicht mehr sicher.
Auf Github steht
https://github.com/ebaauw/homebridge-hue#configuration
>> Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:
Habe ich über Homebridge Config UI gemacht
>> Edit config.json
and add the Hue
platform provided by Homebridge Hue, see Configuration;
Das wird auch von Homebridge Hue Plugin konfiguriert
>> Run Homebridge Hue for the first time, ..., or unlock the deCONZ gateway(s) through their web app.
Hier ist wohl die Phoscon App gemeint, oder? Diese scannt allerdings immer nur nach 10.0.0.1. Meine Pi hat 10.0.0.143. 10.0.0.143/pwa habe ich natürlich auch probiert. Geht nicht.
>> Note the bridgeid/username (API key) pair for each bridge and/or gateway in the log output. Edit config.json
to include these, see Configuration.
Und das ist mir vollkommen unklar und kann ich auch nirgendwo im Forum eine Antwort finden: API key ist bridgeid/username. Da ist wohl die HomebridgeID gemeint, oder? Aber das log gibt mir nirgendwo eine HomebridgeID aus. Und was wäre dann der Username. So weit ich im Forum sehen kann, wird da immer viel xxxx oder sonst was verwendet. Wobei xxx dann nicht offenbart wird oder irgendwie eh egal ist was man da reinschreibt.
Meine Homebridge startet auch nicht sobald ich die Homebridge-Hue installiert habe. Aber ev. ist das normal bis man über Phoscon-App die Homebridge-Hue aktiviert hat.
Irgendwas habe ich da wohl nicht verstanden trotz lesen der Anleitung(en)
Mein Log
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Oct 16 20:45:14 2020 from 10.0.0.233
pi@raspberrypi:~ $ ls
node-v10.16.0-linux-armv7l node-v10.16.0-linux-armv7l.tar.gz
pi@raspberrypi:~ $ sudo systemctl restart homebridge; sudo journalctl -fau homebridge
-- Logs begin at Thu 2020-08-20 12:47:33 CEST. --
Oct 16 22:23:32 raspberrypi homebridge[1298]: [10/16/2020, 22:23:32] Got SIGTERM, shutting down Homebridge...
Oct 16 22:23:37 raspberrypi homebridge[1298]: [10/16/2020, 22:23:37] [Hue] goodbye
Oct 16 22:23:37 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a
Oct 16 22:23:37 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
Oct 16 22:23:37 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.
Oct 16 22:23:37 raspberrypi systemd[1]: homebridge.service: Found left-over process 1321 (node) in control group while starting unit. Ignoring.
Oct 16 22:23:37 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Oct 16 22:23:37 raspberrypi systemd[1]: homebridge.service: Found left-over process 1356 (journalctl) in control group while starting unit. Ignoring.
Oct 16 22:23:37 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Oct 16 22:23:37 raspberrypi systemd[1]: Started Node.js HomeKit Server.
Oct 16 22:23:38 raspberrypi homebridge[1593]: [10/16/2020, 22:23:38] Loaded config.json with 2 accessories and 2 platforms.
Oct 16 22:23:38 raspberrypi homebridge[1593]: [10/16/2020, 22:23:38] ---
Oct 16 22:23:38 raspberrypi homebridge[1593]: [10/16/2020, 22:23:38] Loaded plugin: [email protected]
Oct 16 22:23:38 raspberrypi homebridge[1593]: [10/16/2020, 22:23:38] Registering platform 'homebridge-config-ui-x.config'
Oct 16 22:23:38 raspberrypi homebridge[1593]: [10/16/2020, 22:23:38] ---
Oct 16 22:23:38 raspberrypi homebridge[1593]: [10/16/2020, 22:23:38] Loaded plugin: [email protected]
Oct 16 22:23:38 raspberrypi homebridge[1593]: [10/16/2020, 22:23:38] Registering accessory 'homebridge-fakebulb.FakeBulb'
Oct 16 22:23:38 raspberrypi homebridge[1593]: [10/16/2020, 22:23:38] ---
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] Loaded plugin: [email protected]
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] Registering platform 'homebridge-hue.Hue'
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] ---
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] Loading 2 platforms...
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] [Config] Initializing config platform...
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] [Config] Spawning homebridge-config-ui-x with PID 1623
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] [Hue] Initializing Hue platform...
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] [Hue] homebridge-hue v0.11.77, node v12.19.0, homebridge v1.1.6
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] Loading 2 accessories...
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] [Lamp1sim] Initializing FakeBulb accessory...
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] [Lamp1sim] Starting a fake bulb device with name 'Lamp1sim'...
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] [Lamp2sim] Initializing FakeBulb accessory...
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] [Lamp2sim] Starting a fake bulb device with name 'Lamp1sim'...
Oct 16 22:23:40 raspberrypi homebridge[1593]: [10/16/2020, 22:23:40] [Hue] searching bridges and gateways
Oct 16 22:23:43 raspberrypi homebridge[1593]: [10/16/2020, 22:23:43] [Config] Homebridge Config UI X v4.29.0 is listening on :: port 8080
Oct 16 22:23:45 raspberrypi homebridge[1593]: [10/16/2020, 22:23:45] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:24:15 raspberrypi homebridge[1593]: [10/16/2020, 22:24:15] [Hue] searching bridges and gateways
Oct 16 22:24:20 raspberrypi homebridge[1593]: [10/16/2020, 22:24:20] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:24:50 raspberrypi homebridge[1593]: [10/16/2020, 22:24:50] [Hue] searching bridges and gateways
Oct 16 22:24:55 raspberrypi homebridge[1593]: [10/16/2020, 22:24:55] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:25:25 raspberrypi homebridge[1593]: [10/16/2020, 22:25:25] [Hue] searching bridges and gateways
Oct 16 22:25:30 raspberrypi homebridge[1593]: [10/16/2020, 22:25:30] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:26:00 raspberrypi homebridge[1593]: [10/16/2020, 22:26:00] [Hue] searching bridges and gateways
Oct 16 22:26:05 raspberrypi homebridge[1593]: [10/16/2020, 22:26:05] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:26:35 raspberrypi homebridge[1593]: [10/16/2020, 22:26:35] [Hue] searching bridges and gateways
Oct 16 22:26:40 raspberrypi homebridge[1593]: [10/16/2020, 22:26:40] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:27:11 raspberrypi homebridge[1593]: [10/16/2020, 22:27:11] [Hue] searching bridges and gateways
Oct 16 22:27:16 raspberrypi homebridge[1593]: [10/16/2020, 22:27:16] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:27:34 raspberrypi homebridge[1593]: [10/16/2020, 22:27:34] [Config] Changes to config.json saved.
Oct 16 22:27:36 raspberrypi homebridge[1593]: [10/16/2020, 22:27:36] [Config] Homebridge restart request received
Oct 16 22:27:36 raspberrypi homebridge[1593]: [10/16/2020, 22:27:36] [Config] Executing restart command: sudo -n systemctl restart homebridge
Oct 16 22:27:36 raspberrypi sudo[1766]: homebridge : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/systemctl restart homebridge
Oct 16 22:27:37 raspberrypi sudo[1766]: pam_unix(sudo:session): session opened for user root by (uid=0)
Oct 16 22:27:37 raspberrypi homebridge[1593]: [10/16/2020, 22:27:37] Got SIGTERM, shutting down Homebridge...
Oct 16 22:27:37 raspberrypi systemd[1]: Stopping Node.js HomeKit Server...
Oct 16 22:27:42 raspberrypi homebridge[1593]: [10/16/2020, 22:27:42] [Hue] goodbye
Oct 16 22:27:42 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a
Oct 16 22:27:42 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
Oct 16 22:27:42 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.
Oct 16 22:27:42 raspberrypi systemd[1]: homebridge.service: Found left-over process 1623 (node) in control group while starting unit. Ignoring.
Oct 16 22:27:42 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Oct 16 22:27:42 raspberrypi systemd[1]: homebridge.service: Found left-over process 1765 (sh) in control group while starting unit. Ignoring.
Oct 16 22:27:42 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Oct 16 22:27:42 raspberrypi systemd[1]: homebridge.service: Found left-over process 1766 (sudo) in control group while starting unit. Ignoring.
Oct 16 22:27:42 raspberrypi sudo[1766]: pam_unix(sudo:session): session closed for user root
Oct 16 22:27:42 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Oct 16 22:27:42 raspberrypi systemd[1]: homebridge.service: Found left-over process 1771 (systemctl) in control group while starting unit. Ignoring.
Oct 16 22:27:42 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Oct 16 22:27:42 raspberrypi systemd[1]: Started Node.js HomeKit Server.
Oct 16 22:27:42 raspberrypi homebridge[1772]: [10/16/2020, 22:27:42] Loaded config.json with 2 accessories and 2 platforms.
Oct 16 22:27:42 raspberrypi homebridge[1772]: [10/16/2020, 22:27:42] ---
Oct 16 22:27:43 raspberrypi homebridge[1772]: [10/16/2020, 22:27:43] Loaded plugin: [email protected]
Oct 16 22:27:43 raspberrypi homebridge[1772]: [10/16/2020, 22:27:43] Registering platform 'homebridge-config-ui-x.config'
Oct 16 22:27:43 raspberrypi homebridge[1772]: [10/16/2020, 22:27:43] ---
Oct 16 22:27:43 raspberrypi homebridge[1772]: [10/16/2020, 22:27:43] Loaded plugin: [email protected]
Oct 16 22:27:43 raspberrypi homebridge[1772]: [10/16/2020, 22:27:43] Registering accessory 'homebridge-fakebulb.FakeBulb'
Oct 16 22:27:43 raspberrypi homebridge[1772]: [10/16/2020, 22:27:43] ---
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] Loaded plugin: [email protected]
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] Registering platform 'homebridge-hue.Hue'
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] ---
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] Loading 2 platforms...
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] [Config] Initializing config platform...
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] [Config] Spawning homebridge-config-ui-x with PID 1795
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] [Hue] Initializing Hue platform...
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] [Hue] homebridge-hue v0.11.77, node v12.19.0, homebridge v1.1.6
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] Loading 2 accessories...
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] [Lamp1sim] Initializing FakeBulb accessory...
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] [Lamp1sim] Starting a fake bulb device with name 'Lamp1sim'...
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] [Lamp2sim] Initializing FakeBulb accessory...
Oct 16 22:27:45 raspberrypi homebridge[1772]: [10/16/2020, 22:27:45] [Lamp2sim] Starting a fake bulb device with name 'Lamp1sim'...
Oct 16 22:27:46 raspberrypi homebridge[1772]: [10/16/2020, 22:27:46] [Hue] searching bridges and gateways
Oct 16 22:27:48 raspberrypi homebridge[1772]: [10/16/2020, 22:27:48] [Config] Homebridge Config UI X v4.29.0 is listening on :: port 8080
Oct 16 22:27:51 raspberrypi homebridge[1772]: [10/16/2020, 22:27:51] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:28:21 raspberrypi homebridge[1772]: [10/16/2020, 22:28:21] [Hue] searching bridges and gateways
Oct 16 22:28:26 raspberrypi homebridge[1772]: [10/16/2020, 22:28:26] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:28:56 raspberrypi homebridge[1772]: [10/16/2020, 22:28:56] [Hue] searching bridges and gateways
Oct 16 22:29:01 raspberrypi homebridge[1772]: [10/16/2020, 22:29:01] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:29:31 raspberrypi homebridge[1772]: [10/16/2020, 22:29:31] [Hue] searching bridges and gateways
Oct 16 22:29:36 raspberrypi homebridge[1772]: [10/16/2020, 22:29:36] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:30:06 raspberrypi homebridge[1772]: [10/16/2020, 22:30:06] [Hue] searching bridges and gateways
Oct 16 22:30:11 raspberrypi homebridge[1772]: [10/16/2020, 22:30:11] [Hue] no bridges or gateways found - retrying in 30 seconds
Oct 16 22:30:41 raspberrypi homebridge[1772]: [10/16/2020, 22:30:41] [Hue] searching bridges and gateways
meine config:
wobei ich bei users alles mögliche probiert habe.
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"manufacturer": "homebridge.io",
"model": "homebridge",
"port": 51826,
"pin": "031-45-154"
},
"description": "Home Smart Home",
"platforms": [
{
"platform": "config",
"name": "Config",
"port": 8080,
"auth": "form",
"theme": "red",
"restart": "sudo -n systemctl restart homebridge",
"temp": "/sys/class/thermal/thermal_zone0/temp",
"sudo": true,
"log": {
"method": "custom",
"command": "journalctl -o cat -n 500 -f -u homebridge"
}
},
{
"name": "Hue",
"anyOn": true,
"nativeHomeKitLights": true,
"nativeHomeKitSensors": true,
"nupnp": true,
"resource": true,
"platform": "Hue",
"users": {
"00XXXXXXXXX4E": "HUEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"00YYYYYYYYY04": "DECONZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
}
],
"accessories": [
{
"accessory": "FakeBulb",
"name": "Lamp1sim",
"bulb_name": "Lamp1sim"
},
{
"accessory": "FakeBulb",
"name": "Lamp2sim",
"bulb_name": "Lamp1sim"
}
]
}