Neuling sucht Hilfe Basis Einrichtung Homebridge aus dem PI

  • Hallo


    irgendwie läuft bei mit Homebridge auf dem PI nicht rund.

    Erstinstallation nach der Anleitung. Ich bin absoluter PI Anfänger. Vielleicht hat ja jemand hier Lust und Geduld.


    Ziel ist Homebridge auf meinem iPad mit Shelly Schaltern und reolink Kamera zu laufen zu bekommen.



    pi@raspberrypi:~ $ sudo journalctl -fau homebridge

    -- Logs begin at Wed 2019-10-16 14:21:28 CEST. --

    Okt 16 14:24:03 raspberrypi homebridge[1204]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)

    Okt 16 14:24:03 raspberrypi homebridge[1204]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)

    Okt 16 14:24:03 raspberrypi homebridge[1204]: at Module._compile (internal/modules/cjs/loader.js:778:30)

    Okt 16 14:24:03 raspberrypi homebridge[1204]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

    Okt 16 14:24:03 raspberrypi homebridge[1204]: at Module.load (internal/modules/cjs/loader.js:653:32)

    Okt 16 14:24:03 raspberrypi homebridge[1204]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

    Okt 16 14:24:03 raspberrypi homebridge[1204]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)

    Okt 16 14:24:03 raspberrypi homebridge[1204]: [2019-10-16 2:24:03 PM] Got SIGTERM, shutting down Homebridge...

    Okt 16 14:24:08 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a

    Okt 16 14:24:08 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Okt 16 14:24:18 raspberrypi systemd[1]: homebridge.service: Service RestartSec=10s expired, scheduling restart.

    Okt 16 14:24:18 raspberrypi systemd[1]: homebridge.service: Scheduled restart job, restart counter is at 8.

    Okt 16 14:24:18 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Okt 16 14:24:18 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Okt 16 14:24:19 raspberrypi homebridge[1230]: [2019-10-16 2:24:19 PM] Loaded config.json with 0 accessories and 1 platforms.

    Okt 16 14:24:19 raspberrypi homebridge[1230]: [2019-10-16 2:24:19 PM] ---

    Okt 16 14:24:19 raspberrypi homebridge[1230]: [2019-10-16 2:24:19 PM] No plugins found. See the README for information on installing plugins.

    Okt 16 14:24:19 raspberrypi homebridge[1230]: [2019-10-16 2:24:19 PM] Loading 1 platforms...

    Okt 16 14:24:19 raspberrypi homebridge[1230]: [2019-10-16 2:24:19 PM] Error: The requested platform 'config' was not registered by any plugin.

    Okt 16 14:24:19 raspberrypi homebridge[1230]: at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:134:13)

    Okt 16 14:24:19 raspberrypi homebridge[1230]: at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:327:45)

    Okt 16 14:24:19 raspberrypi homebridge[1230]: at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:90:36)

    Okt 16 14:24:19 raspberrypi homebridge[1230]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)

    Okt 16 14:24:19 raspberrypi homebridge[1230]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)

    Okt 16 14:24:19 raspberrypi homebridge[1230]: at Module._compile (internal/modules/cjs/loader.js:778:30)

    Okt 16 14:24:19 raspberrypi homebridge[1230]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

    Okt 16 14:24:19 raspberrypi homebridge[1230]: at Module.load (internal/modules/cjs/loader.js:653:32)

    Okt 16 14:24:19 raspberrypi homebridge[1230]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

    Okt 16 14:24:19 raspberrypi homebridge[1230]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)

    Okt 16 14:24:19 raspberrypi homebridge[1230]: [2019-10-16 2:24:19 PM] Got SIGTERM, shutting down Homebridge...

    Okt 16 14:24:24 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a

    Okt 16 14:24:24 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Okt 16 14:24:34 raspberrypi systemd[1]: homebridge.service: Service RestartSec=10s expired, scheduling restart.

    Okt 16 14:24:34 raspberrypi systemd[1]: homebridge.service: Scheduled restart job, restart counter is at 9.

    Okt 16 14:24:34 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Okt 16 14:24:34 raspberrypi systemd[1]: Started Node.js HomeKit Server.


    Es erscheint nicht der Barcode.

    Ich habe die config.jsn schon mit Schritt drei erweitert vielleicht liegt es daran.

    {

    "bridge": {

    "name": "Homebridge",

    "username": "CC:22:3D:E3:CE:30",

    "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": "systemd",

    "service": "homebridge"

    }

    }],

    "accessories": []

    }



    Der PI hängt am WLAN, SSH ist in PI Einstellungen gesetzt.



    Gruß

    Ralf

  • Oops,

    erst denken dann schreiben:

    pi@raspberrypi:~ $ sudo journalctl -fau homebridge

    -- Logs begin at Wed 2019-10-16 14:21:28 CEST. --

    Okt 16 15:08:33 raspberrypi homebridge[6419]: at Module.load (internal/modules/cjs/loader.js:653:32)

    Okt 16 15:08:33 raspberrypi homebridge[6419]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

    Okt 16 15:08:33 raspberrypi homebridge[6419]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)

    Okt 16 15:08:33 raspberrypi homebridge[6419]: [2019-10-16 3:08:33 PM] Got SIGTERM, shutting down Homebridge...

    Okt 16 15:08:38 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a

    Okt 16 15:08:38 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Okt 16 15:08:49 raspberrypi systemd[1]: homebridge.service: Service RestartSec=10s expired, scheduling restart.

    Okt 16 15:08:49 raspberrypi systemd[1]: homebridge.service: Scheduled restart job, restart counter is at 170.

    Okt 16 15:08:49 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Okt 16 15:08:49 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Okt 16 15:08:50 raspberrypi homebridge[6456]: [2019-10-16 3:08:50 PM] Loaded config.json with 0 accessories and 0 platforms.

    Okt 16 15:08:50 raspberrypi homebridge[6456]: [2019-10-16 3:08:50 PM] ---

    Okt 16 15:08:50 raspberrypi homebridge[6456]: [2019-10-16 3:08:50 PM] No plugins found. See the README for information on installing plugins.

    Okt 16 15:08:50 raspberrypi homebridge[6456]: [2019-10-16 3:08:50 PM] Loading 0 platforms...

    Okt 16 15:08:50 raspberrypi homebridge[6456]: [2019-10-16 3:08:50 PM] Loading 0 accessories...

    Okt 16 15:08:50 raspberrypi homebridge[6456]: Setup Payload:

    Okt 16 15:08:50 raspberrypi homebridge[6456]: X-HM://0023ISYWYJ87E

    Okt 16 15:08:50 raspberrypi homebridge[6456]: Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]: Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]: ??????????????

    Okt 16 15:08:50 raspberrypi homebridge[6456]: ? 031-45-154 ?

    Okt 16 15:08:50 raspberrypi homebridge[6456]: ??????????????

    Okt 16 15:08:50 raspberrypi homebridge[6456]:

    Okt 16 15:08:50 raspberrypi homebridge[6456]: [2019-10-16 3:08:50 PM] Homebridge is running on port 51826.

    ^C

    pi@raspberrypi:~ $


    Sogar der Barcode ist da.

    Einbinden auf dem iPad ist auch schon gemacht.

    Danke an alle die die Anleitung erstellt haben.


    Aber vielleicht gibt es eine Tip zu Shelly 1 und Shelly 2.2 Einbindung und Reling Kamera.


    Gruß

    Ralf

  • Zunächst herzlich Willkommen mit Deinem ersten Beitrag.


    In Deiner config, die vom Format auf alle Fälle schonmal stimmt, gibst Du an dass Du config-ui-x nutzen möchte als "Weboberfläche".

    In Deinem Log liest es sich auf den ersten schnellen Blick, dass Du das Plugin dazu aber nicht installiert hast. No plugins found.


    Ist das so und kannst Du das nachholen und nochmal berichten?

    Leider hast Du ja nicht anhand des vorgegebenen Templates hier bei der Erstellung angegeben, wie Du Homebridge aufgesetzt hast.


    Über das Terminal installierst Du das Plugin sudo npm install -g homebridge-config-ui-x


    Vielleicht ist Dir das ja schon eine erste Hilfe.


    Weiterhin viel Erfolg und natürlich viel Spaß, sowie einen guten Austausch.

    Hilfreich?

  • Hallo,


    meine Homebridge Oberfläche erscheint jetzt.

    Ich habe den config.jsm Schritt zu früh gemacht.

    Allerdings hängt jetzt die Einbindung ins iPad. Wenn ich den Barcode scanne erscheint:


    !

    Gerät konnte nicht hinzugefügt werden

    Home konnte keine Verbindung zu diesem Gerät herstellen


    oder

    bereits zugefügt

    erst zurücksetzten


    Gruss

    Ralf

  • Schon mal manuelle Eingabe des Codes "031-45-154"versucht?

  • Hallo,


    ja.

    Apple Home verlangt ein Rücksetzen.

    Ich habe Homebridge schon getrennt, zurückgesetzt, neu gestartet mit Terminal.

    In der Apple App habe ich mein Zuhause auch gelöscht.

    Kein Erfolg.


    Aber die Shelly Schalter 1 und 2.5 erscheinen in der Homebridge nicht in der Homer App.

    Die Geräte lassen sich bedienen.

    Aber der Kanal von Shelly ist 8080 => umstellen in config.jsn auf 8081 half.


    Gruß

    Ralf

  • Zitat von Hoffi

    Einbindung ins iPad ist auch schon gemacht.

    Da liegt nun das Problem. Da die Homebridge schon einmal in Home war, kann sie nicht erneut hinzugefügt werden.

    Sofern in Home nichts mehr angezeigt wird, ändere in der config.json einmal den „username“


    Beispiel:

    Code
    cd:22:3D:E3:CE:50
    zu
    cd:22:3D:E3:CE:49

    und versuche dann erneut, sie in Home hinzuzufügen.


    Edit: Reicht dies nicht aus, ändere zusätzlich den Pin in der config.json


    Beispiel:

    Code
    031-45-154
    zu 
    031-45-280
  • Hallo


    Homebridge hat jetzt einen anderen Code.

    Aber Home kann keine Verbindung herstellen.

    Home zeigt mir die Homebridge als Kachel an. Wenn ich dann den Code manuell eingebe kann ich die Kachel auswählen.

    Aber keine Verbindung.


    Warum bekomme ich im Terminal einen anderen Code als im Webbrowser?


    Gruß

    Ralf

  • Läuft deine Homebridge denn korrekt?

    Code
    sudo journalctl -fau homebridge

    Gegebenenfalls zuerst einmal einen Restart der Homebridge durchführen und den Log anzeigen lassen:

    Code
    sudo systemctl restart homebridge; sudo journalctl -fau homebridge
  • Hallo


    -----------------------

    pi@raspberrypi:~ $ sudo journalctl -fau homebridge

    -- Logs begin at Wed 2019-10-16 23:17:11 CEST. --

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Failed to set roller shutter position

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 68F6D0, at 192.168.178.45)

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Failed to set roller shutter position

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 6913A5, at 192.168.178.36)

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Failed to set roller shutter position

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 688340, at 192.168.178.48)

    Okt 17 10:34:39 raspberrypi homebridge[5975]: HAP Warning: Characteristic 00000053-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000003E-0000-1000-8000-0026BB765291. Adding anyway.

    Okt 17 10:34:39 raspberrypi homebridge[5975]: HAP Warning: Characteristic 00000053-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000003E-0000-1000-8000-0026BB765291. Adding anyway.

    Okt 17 10:34:39 raspberrypi homebridge[5975]: HAP Warning: Characteristic 00000053-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000003E-0000-1000-8000-0026BB765291. Adding anyway.

    Okt 17 10:34:42 raspberrypi homebridge[5975]: [2019-10-17 10:34:42] [Config] Homebridge Config UI X v4.6.2 is listening on :: port 8082


    Ich habe den Port auf 8082 geändert weile auf 8081 etwas Anderes läuft (Remote Desktop?)

    Auf 8080 laufen die Shelly Schalter.

    Auf dem Webbrowser läuft Homebridge. Meine Shelly Schalter kann ich bedienen.

    Ich habe nicht alle Shelly Rollos kalibriert, ich denke deshalb meckert das Programm.

    Da Einbinden in Apple Home klappt auch mit anderem Code und PIN noch nicht.


    Gruß

    Ralf

  • So jetzt ist Homebridge mit Apple Home verbunden.

    Magic.

    pi@raspberrypi:~ $ sudo journalctl -fau homebridge

    -- Logs begin at Wed 2019-10-16 23:17:11 CEST. --

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Failed to set roller shutter position

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 68F6D0, at 192.168.178.45)

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Failed to set roller shutter position

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 6913A5, at 192.168.178.36)

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Failed to set roller shutter position

    Okt 17 10:34:39 raspberrypi homebridge[5975]: [2019-10-17 10:34:39] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 688340, at 192.168.178.48)

    Okt 17 10:34:39 raspberrypi homebridge[5975]: HAP Warning: Characteristic 00000053-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000003E-0000-1000-8000-0026BB765291. Adding anyway.

    Okt 17 10:34:39 raspberrypi homebridge[5975]: HAP Warning: Characteristic 00000053-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000003E-0000-1000-8000-0026BB765291. Adding anyway.

    Okt 17 10:34:39 raspberrypi homebridge[5975]: HAP Warning: Characteristic 00000053-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000003E-0000-1000-8000-0026BB765291. Adding anyway.

    Okt 17 10:34:42 raspberrypi homebridge[5975]: [2019-10-17 10:34:42] [Config] Homebridge Config UI X v4.6.2 is listening on :: port 8082

    ^C

    pi@raspberrypi:~ $ sudo homebridge

    [2019-10-17 11:10:06] config.json (/root/.homebridge/config.json) not found.

    [2019-10-17 11:10:06] Loaded plugin: homebridge-config-ui-x

    [2019-10-17 11:10:06] Registering platform 'homebridge-config-ui-x.config'

    [2019-10-17 11:10:06] ---

    [2019-10-17 11:10:06] Loaded plugin: homebridge-shelly

    [2019-10-17 11:10:07] Registering platform 'homebridge-shelly.Shelly'

    [2019-10-17 11:10:07] ---

    Load homebridge-shelly.Shelly

    Setup Payload:

    X-HM://0023ISYWY96NC

    Scan this code with your HomeKit app on your iOS device to pair with Homebridge:




























    Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:


    ??????????????

    ? 031-45-154 ?

    ??????????????


    [2019-10-17 11:10:07] [homebridge-shelly.Shelly] 11 accessories loaded from cache

    (node:6358) ExperimentalWarning: The http2 module is an experimental API.

    [2019-10-17 11:10:07] Homebridge is running on port 35537.

    [2019-10-17 11:10:07] [homebridge-shelly.Shelly] Failed to launch the admin server: listen EADDRINUSE :::8080

    [2019-10-17 11:10:07] [homebridge-shelly.Shelly] Failed to set roller shutter position

    [2019-10-17 11:10:07] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 B89E31, at 192.168.178.47)

    [2019-10-17 11:10:07] [homebridge-shelly.Shelly] Failed to set roller shutter position

    [2019-10-17 11:10:07] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 B94D54, at 192.168.178.43)

    [2019-10-17 11:10:08] [homebridge-shelly.Shelly] Failed to set roller shutter position

    [2019-10-17 11:10:08] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 693840, at 192.168.178.46)

    [2019-10-17 11:10:08] [homebridge-shelly.Shelly] Failed to set roller shutter position

    [2019-10-17 11:10:08] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 68F6D0, at 192.168.178.45)

    [2019-10-17 11:10:08] [homebridge-shelly.Shelly] Failed to set roller shutter position

    [2019-10-17 11:10:08] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 B955BF, at 192.168.178.44)

    [2019-10-17 11:10:08] [homebridge-shelly.Shelly] Failed to set roller shutter position

    [2019-10-17 11:10:08] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 6913A5, at 192.168.178.36)

    [2019-10-17 11:10:08] [homebridge-shelly.Shelly] Failed to set roller shutter position

    [2019-10-17 11:10:08] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 688340, at 192.168.178.48)

    ^[[B^[[B^[[A^[[A^[[A^[[A[2019-10-17 11:11:07] [homebridge-shelly.Shelly] Shelly 2.5 6913A5 at 192.168.178.36 identified

    [2019-10-17 11:11:14] [homebridge-shelly.Shelly] Shelly 2.5 6913A5 at 192.168.178.36 identified

    [2019-10-17 11:11:17] [homebridge-shelly.Shelly] Shelly 2.5 688340 at 192.168.178.48 identified

    [2019-10-17 11:11:19] [homebridge-shelly.Shelly] Shelly 2.5 688340 at 192.168.178.48 identified

    [2019-10-17 11:11:21] [homebridge-shelly.Shelly] Shelly 2.5 693840 at 192.168.178.46 identified

    [2019-10-17 11:11:22] [homebridge-shelly.Shelly] Shelly 2.5 693840 at 192.168.178.46 identified

    [2019-10-17 11:11:23] [homebridge-shelly.Shelly] Shelly 2.5 68F6D0 at 192.168.178.45 identified

    [2019-10-17 11:11:29] [homebridge-shelly.Shelly] Shelly 2.5 68F6D0 at 192.168.178.45 identified

    [2019-10-17 11:11:36] [homebridge-shelly.Shelly] Shelly 2.5 68E941 at 192.168.178.41 identified

    [2019-10-17 11:11:37] [homebridge-shelly.Shelly] Shelly 2.5 68E941 at 192.168.178.41 identified

    [2019-10-17 11:11:39] [homebridge-shelly.Shelly] Shelly 2.5 68E941 at 192.168.178.41 identified

    [2019-10-17 11:11:44] [homebridge-shelly.Shelly] Shelly 2.5 68E941 at 192.168.178.41 identified

    [2019-10-17 11:11:45] [homebridge-shelly.Shelly] Shelly 2.5 6936F5 at 192.168.178.42 identified

    [2019-10-17 11:11:45] [homebridge-shelly.Shelly] Shelly 2.5 6936F5 at 192.168.178.42 identified

    [2019-10-17 11:11:46] [homebridge-shelly.Shelly] Shelly 2.5 B94D54 at 192.168.178.43 identified

    [2019-10-17 11:11:47] [homebridge-shelly.Shelly] Shelly 2.5 B94D54 at 192.168.178.43 identified

    [2019-10-17 11:11:48] [homebridge-shelly.Shelly] Shelly 2.5 B89E31 at 192.168.178.47 identified

    [2019-10-17 11:11:49] [homebridge-shelly.Shelly] Shelly 2.5 B89E31 at 192.168.178.47 identified

    [2019-10-17 11:11:50] [homebridge-shelly.Shelly] Shelly 1 7671D2 at 192.168.178.35 identified

    [2019-10-17 11:11:51] [homebridge-shelly.Shelly] Shelly 1 76804B at 192.168.178.40 identified

    [2019-10-17 11:11:52] [homebridge-shelly.Shelly] Shelly 2.5 B955BF at 192.168.178.44 identified

    [2019-10-17 11:11:52] [homebridge-shelly.Shelly] Shelly 2.5 B955BF at 192.168.178.44 identified

    [2019-10-17 11:12:15] [homebridge-shelly.Shelly] Failed to set roller shutter position

    [2019-10-17 11:12:15] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=100 (400) (device SHSW-25 68F6D0, at 192.168.178.45)

    [2019-10-17 11:12:16] [homebridge-shelly.Shelly] Failed to set roller shutter position

    [2019-10-17 11:12:16] [homebridge-shelly.Shelly] Error: cannot GET /roller/0?go=to_pos&roller_pos=0 (400) (device SHSW-25 68F6D0, at 192.168.178.45)

    ^C[2019-10-17 11:13:05] Got SIGINT, shutting down Homebridge...

    pi@raspberrypi:~ $


    Einbindung ging jetzt über Barcode scannen.

    Am iPhone lassen sich die Shelly schalten.

    Am iPad erscheinen die Schalter in Home aber "keine Antwort".


    Gruss

    Ralf

  • Zitat

    [2019-10-17 11:10:06] config.json (/root/.homebridge/config.json) not found.

    Deine Homebridge sucht die config.json offenbar an der falschen Stelle. Diese sollte unter /var/homebridge liegen.


    Hast du die Forums-Anleitung Schritt für Schritt befolgt?


    Überprüfe zunächst einmal homebridge.service:

    Code
    sudo nano /etc/systemd/system/homebridge.service

    Dort sollten (natürlich neben den anderen Zeilen) auch folgende zwei Zeilen Wort für Wort erscheinen:

    Code
    EnvironmentFile=/etc/default/homebridge
    ExecStart=/usr/local/bin/homebridge $HOMEBRIDGE_OPTS

    Ist hier alles korrekt, öffne als nächstes das zugehörige Konfigurationsfile.

    Code
    sudo nano /etc/default/homebridge

    Dort sollte stehen:

    Code
    HOMEBRIDGE_OPTS=-I -U /var/homebridge

    Danach sollte Homebridge die config.json unter /var/homebridge suchen und nicht wie offenbar aktuell bei dir unter /root/.homebridge...

  • Hallo


    Danke werde ich prüfen.

    Die Config.json liegt bei mir unter /var/homebridge/


    Ich hatte irgendwie 2 homebridge am laufen (2 verschiedene Codes)

    Jetzt läuft Homebridge auf dem iPad und auf dem iPhone. Der Code im Webbrowser ist gleich dem Code im Terminal und in der Homebridge App.


    Allerdings breche ich mir die Finger in der Config.json.

    Den PIN 031-45-154 zeigen jetzt alle an (iPad, iPhone und HomeKit App)


    Meine Config.json (obwohl Shelley Plugin läuft habe ich die Zeile für das Shelly Plugin nicht drin. Läuft aber trotzdem)

    __________________________________

    {

    "bridge": {

    "name": "Homebridge",

    "username": "0E:05:52:1D:24:50",

    "port": 51826,

    "pin": "031-45-154"

    },

    "description": "Home Smart Home",

    "platforms": [

    {

    "name": "Config",

    "port": 8082,

    "auth": "form",

    "theme": "purple",

    "restart": "sudo -n systemctl restart homebridge",

    "temp": "/sys/class/thermal/thermal_zone0/temp",

    "tempUnits": "c",

    "sudo": true,

    "log": {

    "method": "custom",

    "command": "journalctl -o cat -n 500 -f -u homebridge"

    },

    "platform": "config"

    }

    ],

    "accessories": []

    _________________________________

    Das soll rein

    In most cases, simply adding this plugin to the homebridge config.json will be enough:


    Für Shelly:


    "platforms": [

    {

    "platform": "Shelly",

    "name": "Shelly"

    }

    ]

    __________________________________

    Für Fritzbox:


    {

    "platforms": [

    {

    "platform": "Fritz!Box",

    "name": "My FritzBox",

    "username": "<username>",

    "password": "<password>",

    "url": "http://fritz.box",

    "interval": 60,

    "concurrent": false,

    "devices": {

    "wifi": {

    "name": "Guest WLAN",

    "display": true

    },

    "outlet-1": {

    "TemperatureSensor": false

    },

    "repeater-1": {

    "TemperatureSensor": false

    },

    "thermostat-2": {

    "ContactSensor": false

    },

    "hidden-3": {

    "display": false

    }

    },

    "options": {

    "strictSSL": false

    }

    }

    ]

    }

    __________________________


    Ich kapiere da mit den Klammern und Kommata nicht.

    Das Alter wahrscheinlich ;)


    Gruß

    Ralf

  • Alles geprüft.

    Alles so wie von Dir beschrieben.

    Warum er unter root sucht weiss ich nicht könnte an der App liegen da stand mal root/ drin.


    Alles läuft soweit.

    Jetzt gehe ich erst mal an meine "Schulden" sprich Spenden an die Plugin Programmierer.



    Gruß

    Ralf

  • sudo homebridge

    [2019-10-17 11:10:06] config.json (/root/.homebridge/config.json) not found.

    Der Befehl zum Starten lautet nicht sudo homebridge. Wenn man das tut, dann will man homebridge als root starten (will man nicht), und wenn man sonst nix weiter angibt, dann sucht homebridge die config.json automatisch dort, wo sie laut Fehlermeldung nicht gefunden wird (will man auch nicht).


    Die Anleitung sagt, das die Homebridge gestartet wird mit:

    sudo systemctl start homebridge


    Und was soll ich sagen: die Anleitung hat recht.


    Stefan