Homebridge Installationsanleitungen

  • Nimm das PDF, das hier in diesem Thread unter Post #1 zu finden ist. Das funktioniert auch.


    Stefan

  • Es gibt von Nastra unter homebridge/anleitungen ne gute und einfache anleitung.


    Ob hier zur Installation von sschuste noch etwas beachtet werden muss, kann ich so spontan nicht sagen, da ich die anleitung noch nicht gelesen habe......



    Gesendet von iPhone mit Community

  • sschuste Anleitung ist the beste. Habe die auf RPi3 auch an Pi Zero installiert ohne Probleme. Seite 2 ist down, aber gut das noch PDF Datei verfügbar ist. Habe nur ein problem wenn ich der server von Homebridge neu starte

    Code
    1. [2019-2-23 11:00:07] [Config] Request to restart linux server received
    2. [2019-2-23 11:00:07] [Config] Running restart command: sudo -n shutdown -r now
    3. [2019-2-23 11:00:07] [Config] Command failed: sudo -n shutdown -r now
    4. sudo: Ein Passwort ist notwendig

    Gibts da welche Abhilfe

    Gruss

  • Ja, das habe ich absichtlich so gemacht. Ich wollte nicht, dass hier irgendeiner auf Knöpfe drücken kann, den Raspi herunterzufahren.


    Aber das kann man natürlich ändern:


    sudo visudo -f /etc/sudoers.d/homebridge


    Dort ans Ende der Zeile ein Komma einfügen und dann: /sbin/shutdown


    Abspeichern und testen, möglicherweise muss homebridge einmal neu gestartet werden.


    Stefan

  • Hallo Zusammen,


    habe Probleme mit meinem Homematic Plugin. Folgendes Ergebnis findet man nach Staren der HB:


    -- Logs begin at Thu 2016-11-03 18:16:42 CET. --

    Mar 22 12:45:30 raspberrypi homebridge[5305]:

    Mar 22 12:45:30 raspberrypi homebridge[5305]: [3/22/2019, 12:45:30 PM] Homebridge is running on port 51826.

    Mar 22 12:45:30 raspberrypi homebridge[5305]: [3/22/2019, 12:45:30 PM] [Config] Using Form Authentication

    Mar 22 12:45:30 raspberrypi homebridge[5305]: [3/22/2019, 12:45:30 PM] [Config] Console v3.9.7 is listening on port 8080.

    Mar 22 12:45:33 raspberrypi homebridge[5305]: [3/22/2019, 12:45:33 PM] [homematic-ccu2] NPM 0.0.109 vs Local 0.0.109

    Mar 22 12:46:42 raspberrypi systemd[1]: Stopping Node.js HomeKit Server...

    Mar 22 12:46:42 raspberrypi homebridge[5305]: [3/22/2019, 12:46:42 PM] Got SIGTERM, shutting down Homebridge...

    Mar 22 12:46:42 raspberrypi homebridge[5305]: [3/22/2019, 12:46:42 PM] [homematic-ccu2] Removing Event Server for Interface BidCos-RF.

    Mar 22 12:46:42 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Mar 22 12:46:42 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Mar 22 12:46:44 raspberrypi homebridge[5769]: [3/22/2019, 12:46:44 PM] Loaded config.json with 0 accessories and 2 platforms.

    Mar 22 12:46:44 raspberrypi homebridge[5769]: [3/22/2019, 12:46:44 PM] ---

    Mar 22 12:46:44 raspberrypi homebridge[5769]: [3/22/2019, 12:46:44 PM] Loaded plugin: homebridge-config-ui-x

    Mar 22 12:46:44 raspberrypi homebridge[5769]: [3/22/2019, 12:46:44 PM] Registering platform 'homebridge-config-ui-x.config'

    Mar 22 12:46:44 raspberrypi homebridge[5769]: [3/22/2019, 12:46:44 PM] ---

    Mar 22 12:46:44 raspberrypi homebridge[5769]: [3/22/2019, 12:46:44 PM] Loaded plugin: homebridge-homematic

    Mar 22 12:46:44 raspberrypi homebridge[5769]: [3/22/2019, 12:46:44 PM] Registering platform 'homebridge-homematic.HomeMatic'

    Mar 22 12:46:44 raspberrypi homebridge[5769]: [3/22/2019, 12:46:44 PM] ---

    Mar 22 12:46:44 raspberrypi homebridge[5769]: [3/22/2019, 12:46:44 PM] Loading 2 platforms...

    Mar 22 12:46:44 raspberrypi homebridge[5769]: [3/22/2019, 12:46:44 PM] [Config] Initializing config platform...

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [Config] Spawning homebridge-config-ui-x with PID 5811

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] Initializing HomeMatic platform...

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] Homematic Plugin Version 0.0.109

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] Plugin by thkl https://github.com/thkl

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] Homematic is a registered trademark of the EQ-3 AG

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] Please report any issues to https://github.com/thkl/homebridge-homematic/issues

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] running in production mode

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] will connect to your ccu at 192.168.1.125

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] using binrpc for communication with BidCos-RF

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] init RPC for BidCos-RF.

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] local ip used : 192.168.1.152. you may change that with local_ip parameter in config

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] Loading 0 accessories...

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] RPC server for interface BidCos-RF. is listening on port 9090.

    Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] Creating Local HTTP Client for CCU RPC Events

    Mar 22 12:46:48 raspberrypi homebridge[5769]: [3/22/2019, 12:46:48 PM] [homematic-ccu2] Error Error: connect EHOSTUNREACH 192.168.1.125:8181while executing rega script Write('PONG')

    Mar 22 12:46:48 raspberrypi homebridge[5769]: [3/22/2019, 12:46:48 PM] [homematic-ccu2] if undefined is PONG CCU is alive

    Mar 22 12:46:48 raspberrypi homebridge[5769]: [3/22/2019, 12:46:48 PM] [homematic-ccu2] Error Error: connect EHOSTUNREACH 192.168.1.125:8181while executing rega script string sDeviceId;string sChannelId;boolean df = true;Write('{"devices":[');foreach(sDeviceId, root.Devices().EnumIDs()){object oDevice = dom.GetObject(sDeviceId);if(oDevice){var oInterface = dom.GetObject(oDevice.Interface());if(df) {df = false;} else { Write(',');}Write('{');Write('"id": "' # sDeviceId # '",');Write('"name": "' # oDevice.Name() # '",');Write('"address": "' # oDevice.Address() # '",');Write('"type": "' # oDevice.HssType() # '",');Write('"channels": [');boolean bcf = true;foreach(sChannelId, oDevice.Channels().EnumIDs()){object oChannel = dom.GetObject(sChannelId);if(bcf) {bcf = false;} else {Write(',');}Write('{');Write('"cId": ' # sChannelId # ',');Write('"name": "' # oChannel.Name() # '",');if(oInterface){Write('"intf": "' # oInterface.Name() # '",');Write('"address": "' # oInterface.Name() #'.' # oChannel.Address() # '",');}Write('"type": "' # oChannel.HssType() # '",');Write('"access": "' # oChannel.UserAccessRights(iulOtherThanAdmin)# '"');Write('}');}Write(']}');}}Write(']');var s = dom.GetObject("Homekit");string cid;boolean sdf = true;if (s) {Write(',"subsection":[');foreach(cid, s.EnumUsedIDs()){ if(sdf) {sdf = false;} else { Write(',');}Write(cid);}Write(']');}Write('}');

    Mar 22 12:46:48 raspberrypi homebridge[5769]: [3/22/2019, 12:46:48 PM] [homematic-ccu2] ok local cache is set to /var/homebridge/ccu.json

    Mar 22 12:46:48 raspberrypi homebridge[5769]: [3/22/2019, 12:46:48 PM] [homematic-ccu2] Unable to load cached ccu data. giving up

    Mar 22 12:46:48 raspberrypi homebridge[5769]: [3/22/2019, 12:46:48 PM] [homematic-ccu2] Programs :

    Mar 22 12:46:48 raspberrypi homebridge[5769]: Setup Payload:

    Mar 22 12:46:48 raspberrypi homebridge[5769]: X-HM://0023ISYWYP74A

    Mar 22 12:46:48 raspberrypi homebridge[5769]: Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]: Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]: ┌────────────┐

    Mar 22 12:46:48 raspberrypi homebridge[5769]: │ 031-45-154 │

    Mar 22 12:46:48 raspberrypi homebridge[5769]: └────────────┘

    Mar 22 12:46:48 raspberrypi homebridge[5769]:

    Mar 22 12:46:48 raspberrypi homebridge[5769]: [3/22/2019, 12:46:48 PM] Homebridge is running on port 51826.

    Mar 22 12:46:48 raspberrypi homebridge[5769]: [3/22/2019, 12:46:48 PM] [Config] Using Form Authentication

    Mar 22 12:46:48 raspberrypi homebridge[5769]: [3/22/2019, 12:46:48 PM] [Config] Console v3.9.7 is listening on port 8080.

    Mar 22 12:46:51 raspberrypi homebridge[5769]: [3/22/2019, 12:46:51 PM] [homematic-ccu2] NPM 0.0.109 vs Local 0.0.109


    Was mache falsch oder wer kann helfen?


    NE

  • Hmmmm zwei Sachen fallen mir auf:



    Code
    1. Mar 22 12:46:45 raspberrypi homebridge[5769]: [3/22/2019, 12:46:45 PM] [homematic-ccu2] local ip used : 192.168.1.152. you may change that with local_ip parameter in config


    Code
    1. Mar 22 12:46:48 raspberrypi homebridge[5769]: [3/22/2019, 12:46:48 PM] [homematic-ccu2] Error Error: connect EHOSTUNREACH 192.168.1.125:8181while executing rega script Write('PONG')



    Hast du mal versucht in deiner config die .152 IP mit local_ip zu aendern? Da ich Homematic nicht nutze, weiß ich leider nicht im Detail was genau abgefragt wird...


    Mhm okay laut dem developer ist das kein wirklicher Fehler...


    Hab das noch auf github gefunden:


    Zitat

    Ports: the plugin will use local Port 9090 to communicate with the ccu rfd daemon. Port 9091 for wired and 9092 for hmip (if they are in use). If these ports are in use by other applications, you can change them by the following key in your config.json

    Code
    1. "local_port":8080

    In this case , please make sure that 8081 and 8082 are also available. You got the point ....


    Ansonsten mal ein issue auf github oeffnen.

  • Error Error: connect EHOSTUNREACH 192.168.1.125:8181while executing rega script Write('PONG')

    Error: Host unreachable. Das passiert immer, wenn ein Computer ausgeschaltet ist oder man die falsche IP-Adresse genommen hat.


    Stefan

  • Hallo,

    Bin jetzt ein bisschen weiter (hing tatsächlich an einer falschen IP), jetzt hängt es an einem Rega script. Das sagt mir als Anfänger leider nichts. Wer hat hier eine Idee? Habe das mal in den Spoiler gepackt. Ich hoffe ich störe mit meinem Problem nicht in diesem Forum.


    Gruß

    Peter