Hallo zusammen,
ich hoffe das ich hier zu meinem Problem Unterstützung bekomme, da ich in der Welt des SSH neu bin...
Zuerst muss ich mal sagen, ich habe das ganze hier mit Hilfe von einen Youtube-Video von "Verdrahtet" gemacht und bin hier im Beitrag gelandet. Die erste installation auf meinen Raspberry Pi 3 Model B hat funktioniert und habe sogar mit meinem iPhone das Licht geschaltet. Nach dem ich das SSH geschlossen habe ging nichts mehr (mir jetzt auch klar...), aber seit dem bekomme ich nichts mehr zum laufen. hatte versucht den Service zu starten, so das ich das Pi im Büro abstecken und im Keller für den Dauereinsatz am Netzwerkverteiler wieder anstecken kann und nichts mehr machen muss (Stromausfall oder der gleichen).
Habe jetzt von vorne angefangen und ein neues "2016-11-25-raspbian-jessie-lite.zip" mit ApplePi-Backer.app auf meine SD gespielt. Im Anschluss über das Mac Terminal folgende Befehle durchlaufen lassen.
- Login = pi@raspberry bzw. pi@192.168.111.64
- Update = sudo apt-get update
- Eingabe der IP (192.168.111.064) und den Gewerknamen "HomeKit" bestätigt so wie das Automatische Starten beim Booten.
- Start Service Homebridge = sudo service homebridge start
- Habe auch das Gewerk auf der Homematic CCU2 gelöscht und neu angelegt aber vergebens.
- bis jetzt kann ich wie im folgenden Text zu sehen ist die IP 192.168.111.52 erkennen und die gehört zu dem iPhone meiner Frau und hat mit dem überhaupt nicht zu tun...?
Wie Ihr seht komme ich nicht mehr weiter obwohl ich es für einmal Licht an und einmal Licht aus schon am Laufen hatte.
Code: Alles auswählen
pi@raspberrypi:~ $ homebridge
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
[12/13/2016, 8:54:25 PM] Loaded plugin: homebridge-homematic
[12/13/2016, 8:54:25 PM] Registering platform 'homebridge-homematic.HomeMatic'
[12/13/2016, 8:54:25 PM] ---
[12/13/2016, 8:54:25 PM] Loaded config.json with 0 accessories and 1 platforms.
[12/13/2016, 8:54:25 PM] ---
[12/13/2016, 8:54:25 PM] Loading 1 platforms...
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] Initializing HomeMatic platform...
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] Homematic Plugin Version 0.0.59
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] Plugin by thkl https://github.com/thkl
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] Homematic is a registered trademark of the EQ-3 AG
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] Please report any issues to https://github.com/thkl/homebridge-homematic/issues
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] init RPC
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] Local IP: 192.168.111.64
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] XML-RPC server for interface BidCos-RF.is listening on port 9090
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] Creating Local HTTP Client for CCU RPC Events
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] CCU RPC Init Call on port 2001 for interface BidCos-RF.
[12/13/2016, 8:54:25 PM] [HomeMatic CCU] Fetching Homematic devices...
[12/13/2016, 8:54:25 PM] Loading 0 accessories...
[12/13/2016, 8:54:28 PM] [HomeMatic CCU] NPM 0.0.59 vs Local 0.0.59
[12/13/2016, 8:54:29 PM] [HomeMatic CCU] Error Error: connect EHOSTUNREACH 192.168.111.52: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('}');}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('}');
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ XXX-XX-XXX │
└────────────┘
[12/13/2016, 8:54:29 PM] [HomeMatic CCU] Number of mapped devices : 0
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::51826
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Server._listen2 (net.js:1259:14)
at listen (net.js:1295:10)
at Server.listen (net.js:1391:5)
at EventedHTTPServer.listen (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:60:19)
at HAPServer.listen (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:158:20)
at Bridge.Accessory.publish (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:496:16)
at Server._publish (/usr/lib/node_modules/homebridge/lib/server.js:114:16)
at Server.<anonymous> (/usr/lib/node_modules/homebridge/lib/server.js:372:14)
pi@raspberrypi:~ $
Vielen Dank für eure Unterstützung
Grüße Blackbumpkin