Beiträge von Loki5

    Update: Der Aqara Temperatursensor löst nach wie vor nicht aus: Homebridge, Zigbee USB Stick und Eve App. Bin nun auf Conbee2 umgestiegen. Keine Verbesserung. Temperatur löst in keinem Fall eine Automatisierung aus.



    Habe die Aqara‘s aber über ioBroker in Home laufen (nicht über die HB)

    Werde nun wie z-smoker ioBroker in Home versuchen.


    Es ist schon etwas hart mit Homebridge, Zigbee/Conbee2 und Apple Homekit eine einfache Automatisierung zu realisieren. ^^

    Abgesehen davon ich einen MAC habe und nicht "MENU > PROGRAMING > DECONZ" aufrufen kann.

    Ich dachte, ich muss das (ein Programm) vom PC / MAC aus starten. Ist am Raspberry gemeint. Da ich aber headless habe, geht das nicht.

    Was nicht in der Anleitung steht (aber hier im Forum), dass man auch ohne GUI starten kann.

    Nun komme ich mit der Phoscon App auf meinen Raspberry / deConz ... YEAH


    Du brauchst das

    hombridge-hue Plugin

    "Homebridge-App" kenne ich nicht.

    Ja, das habe ich gemeint. Und Danke für die Antwort. Das hilft mir sehr weiter.

    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"
    }
    ]
    }

    Ich habe einen TelegramBot und versuche wie unter https://smartapfel.de/eigene-homekit-mitteilungen/ beschrieben eine Mitteilung per Kurzbefehl zu senden. Wenn ich das als reinen Kurzbefehl konfiguriere funktioniert es einwandfrei. Wenn ich das in Home über Kurzbefehl konfiguriere, bekomme ich den Fehler "Es wurde kein Server mit dem angegeben Hostnamen gefunden"


    Kurzbefehl sind nur 2

    1) URL

    2) SAFARI: Inhalte der Webseite bei "URL" abrufen oder NETZWERK "Inhlate von "URL" abrufen.


    Bei Kurzbefehl in der Automation kommt immer der gleiche Fehler.

    Irgendwelche Ideen ?

    Danke für ausführliche informative Antwort.

    Die neueste LTS-Version ist augenblicklich eine 12er-Version. Am Ende des Monats ändert sich das, dann wird Node 14 die neue LTS-Version.

    Dann glaube ich, dass du recht hat. Den ich erinnere mich, dass im Log irgendwas von 10.x gestanden ist und ich upgraden muss. Ich vermute daher, dass ich ursprünglich gar nicht auf LTS upgegraded hatte und danach auf die letzte Version gegangen bin und daher es dann einfach funktioniert hat. So muss es gewesen sein. Cool, wieder was gelernt.

    Ich habe ganz neu Raspberry 4 lt Anleitung installiert. Alles ok. Homebridge ist auch über Browser erreichbar.
    Wenn ich aber die Bridge am iPhone zu Homekit hinzufügen will, über QR Code, dann kommt nach langer Zeit: "Gerät kann nicht hinzugefügt werden. Gerät nicht erreichbar"

    Wenn ich das Gerät manuell mittels "Ich habe keinen Code bzw. kann nicht scannen" wird die Homebridge aber auch angezeigt. Nur ist das Ergebnis immer das Gleiche.

    Obwohl ich viel gegoogelt habe und auch im Form gesucht habe, finde ich keine Lösung.

    Kann es daran liegen, dass mein Router den Port 51826 blockiert, wird dieser für die Kopplung benötigt?



    Typisch, kaum postet man nach 2 Tagen suchen, findet man die Lösung selbst.
    Die Anleitung sagt, dass man node.js auf LTS (long time support) gehen soll.

    Die HB website sagt auch oben, dass alles aktuell ist. Aber links in der Mitte sieht man, dass node.js nicht aktuell ist.

    Und das Logfile sagt einem auch, dass node.js upgedated werden muss.

    Nach update geht es nun. Vielleicht hilft das auch in Zukunft jmd.