RPi2 - Homebridge : Siri for the rest of us

diverse Zusatzsoftware

Moderator: Co-Administratoren

MIB
Beiträge: 4
Registriert: 10.01.2017, 00:08

Re: RPi2 - Homebridge : Siri for the rest of us

Beitrag von MIB » 17.01.2017, 23:56

Und da geht das rätselraten los, die Schalter sind nicht im Gewerk drin :(

brunobalu
Beiträge: 186
Registriert: 30.10.2016, 08:58

Re: RPi2 - Homebridge : Siri for the rest of us

Beitrag von brunobalu » 18.01.2017, 19:24

Moin,
Mal ne Frage ... ist es so, dass die Äpfel Geräte nach Stromausfall des Raspy die Raumzuordnung verliert und nach Neustart der Bridge alles wieder in den Standartraum schreibt? Hatte heute ne Stromunterbrechung und alle Einstellungen auf dem iPad waren weg. Es ist immer mühselig alles wieder zu sortieren. Sonst funzt es bei mir sehr [emoji4]. Mein Dank an THKL!!


Gesendet von iPhone mit Tapatalk

Benutzeravatar
thkl
Beiträge: 2765
Registriert: 15.07.2013, 13:32
Wohnort: dickes B
Danksagung erhalten: 5 Mal

Re: RPi2 - Homebridge : Siri for the rest of us

Beitrag von thkl » 19.01.2017, 18:45

Jain die Dinger gehen verloren, wenn HomeKit auf die Bridge zugreift und die nicht da ist. Wenn der Strom nur kurz weg ist und der Rasp+Bridge schnell wieder starten könntest Du Glück haben.
Toll ist das nicht

Steff
Beiträge: 6
Registriert: 07.11.2014, 01:04

Re: RPi2 - Homebridge : Siri for the rest of us

Beitrag von Steff » 20.01.2017, 02:47

Leider komme ich nicht weiter. ;(
Irgendwie scheint die Kommunikation zwischen RasPi3 und CCU2 nicht zu funktionieren.
Beim Start der Homebridge bekomme ich folgende Meldungen:

*** WARNING *** The program 'node' 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=node>
*** WARNING *** The program 'node' 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=libdn ... ceRegister>
[1/20/2017, 2:07:54 AM] Loaded plugin: homebridge-homematic
[1/20/2017, 2:07:54 AM] Registering platform 'homebridge-homematic.HomeMatic'
[1/20/2017, 2:07:54 AM] ---
[1/20/2017, 2:07:54 AM] Loaded config.json with 0 accessories and 1 platforms.
[1/20/2017, 2:07:54 AM] ---
[1/20/2017, 2:07:54 AM] Loading 1 platforms...
[1/20/2017, 2:07:54 AM] [HomeMatic CCU] Initializing HomeMatic platform...
[1/20/2017, 2:07:54 AM] [HomeMatic CCU] Homematic Plugin Version 0.0.65
[1/20/2017, 2:07:54 AM] [HomeMatic CCU] Plugin by thkl https://github.com/thkl
[1/20/2017, 2:07:54 AM] [HomeMatic CCU] Homematic is a registered trademark of the EQ-3 AG
[1/20/2017, 2:07:54 AM] [HomeMatic CCU] Please report any issues to https://github.com/thkl/homebridge-homematic/issues
[1/20/2017, 2:07:54 AM] [HomeMatic CCU] init RPC for % 0
[1/20/2017, 2:07:54 AM] [HomeMatic CCU] Fetching Homematic devices...
[1/20/2017, 2:07:54 AM] [HomeMatic CCU] XML-RPC server for interface BidCos-RF. is listening on port 9090.
[1/20/2017, 2:07:54 AM] [HomeMatic CCU] Creating Local HTTP Client for CCU RPC Events
[1/20/2017, 2:07:59 AM] [HomeMatic CCU] Unable to parse live ccu data. Will try cache if there is one
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐
│ 031-45-154 │
└────────────┘

[1/20/2017, 2:08:00 AM] [HomeMatic CCU] Number of mapped devices : 0
[1/20/2017, 2:08:00 AM] Homebridge is running on port 51826.
[1/20/2017, 2:08:00 AM] [HomeMatic CCU] NPM 0.0.65 vs Local 0.0.65

Stutzig macht mich die Meldung:
[1/20/2017, 2:07:59 AM] [HomeMatic CCU] Unable to parse live ccu data. Will try cache if there is one

Auf Port 8080 hab' ich es auch schon probiert, es kommt hier zum gleichen Ergebnis.

Meine config.json sieht so aus:
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},

"platforms": [{
"platform": "HomeMatic",
"name": "HomeMatic CCU",
"ccu_ip": "192.168.44.89",
"filter_device":[],
"filter_channel":["BidCos-RF.KEQXXXXXXX:4", "BidCos-RF.LEQXXXXXXX:2"],
"outlets":["BidCos-RF.KEQXXXXXXX:4", "BidCos-RF.IEQXXXXXXX:1"],
"doors":[],
"programs":[],
"variables":[],
"subsection":"Homekit"
}]}

Oder muss ich hier noch die tatsächlichen Seriennummern der HomeMatic-Komponenten händisch eintragen?
Das Gewerk "Homekit" habe ich auf der CCU erstellt und erstmal nur einen Up-Dimmer zugeordnet.
Bei Eve auf iOS findet sich das Gerät "Homebridge", jedoch gib er an "Keine Geräte" gefunden zu haben. Die grundsätzliche Steuerung der CCU über andere Apps wie HomeControl funktioniert.

Wo mache ich den Fehler?

Benutzeravatar
thkl
Beiträge: 2765
Registriert: 15.07.2013, 13:32
Wohnort: dickes B
Danksagung erhalten: 5 Mal

Re: RPi2 - Homebridge : Siri for the rest of us

Beitrag von thkl » 20.01.2017, 05:31

Moin,

Du schreibst du hast nur einen Dimmer im Gewerk.

Dann sind die Einträge bei filter_channel und outlets nutzlos.

Ersetze das mal gegen []


sent from a solid block of aluminum.

brunobalu
Beiträge: 186
Registriert: 30.10.2016, 08:58

Re: RPi2 - Homebridge : Siri for the rest of us

Beitrag von brunobalu » 20.01.2017, 07:23

thkl hat geschrieben:Jain die Dinger gehen verloren, wenn HomeKit auf die Bridge zugreift und die nicht da ist. Wenn der Strom nur kurz weg ist und der Rasp+Bridge schnell wieder starten könntest Du Glück haben.
Toll ist das nicht
Heißt also wenn ich den raspy Stromlos machen muß vorher alle iOS Geräte die in HomeKit verknüpft sind power off [emoji57]


Gesendet von iPhone mit Tapatalk

Goofy77
Beiträge: 39
Registriert: 07.08.2011, 14:51

Re: RPi2 - Homebridge : Siri for the rest of us

Beitrag von Goofy77 » 20.01.2017, 16:03

Hallo,

da ich mich auch an das Thema Siri dran wagen wollte kam gestern meiner erster PI3 bei mir an.

Habe jetzt 3mal versucht mit der Anleitung auf Seite 1 alles zum laufen zu bekommen, leider bekomme ich Homebridge nicht gestartet.

Bei der Installation tauchen ein paar Fehler auf. Hat jemand ne Idee was das Problem ist?

Frank

Code: Alles auswählen

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.0.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: getaddrinfo ENOTFOUND nodejs.org nodejs.org:443
gyp ERR! stack     at errnoException (dns.js:25:10)
gyp ERR! stack     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
gyp ERR! System Linux 4.4.34-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
npm ERR! Linux 4.4.34-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "homebridge"
npm ERR! node v4.0.0
npm ERR! npm  v2.14.2
npm ERR! code ELIFECYCLE

npm ERR! ed25519@0.0.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ed25519@0.0.4 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the ed25519 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls ed25519
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/node-v4.0.0-linux-armv7l/npm-debug.log
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.0.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: getaddrinfo ENOTFOUND nodejs.org nodejs.org:443
gyp ERR! stack     at errnoException (dns.js:25:10)
gyp ERR! stack     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
gyp ERR! System Linux 4.4.34-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
npm ERR! Linux 4.4.34-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "homebridge"
npm ERR! node v4.0.0
npm ERR! npm  v2.14.2
npm ERR! code ELIFECYCLE

npm ERR! ed25519@0.0.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ed25519@0.0.4 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the ed25519 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls ed25519
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/node-v4.0.0-linux-armv7l/npm-debug.log
^Cmkdir: cannot create directory ‘/home/pi/.homebridge’: File exists
Setup for Homematic
--2017-01-20 14:58:10--  https://raw.githubusercontent.com/thkl/homebridge/xmlrpc/homebridge
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.128.133, 151.101.64.133, 151.101.0.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.128.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2018 (2.0K) [text/plain]
Saving to: ‘homebridge’

homebridge                                      100%[======================================================================================================>]   1.97K  --.-KB/s   in 0.01s

2017-01-20 14:58:11 (136 KB/s) - ‘homebridge’ saved [2018/2018]

mv: cannot stat ‘/home/pi/homebridge’: No such file or directory
+++ Anfänger +++

bisher: 12x Funk-Jalousieaktor Unterputz Taster, 3x Rauchmelder, 1x Aussentemp,
3x Wassermelder

Goofy77
Beiträge: 39
Registriert: 07.08.2011, 14:51

Re: RPi2 - Homebridge : Siri for the rest of us

Beitrag von Goofy77 » 20.01.2017, 21:30

Jetzt bin ich zwar soweit das die Installation ohne Fehler durchläuft, leider startet Homebridge aber immer noch nicht.

Code: Alles auswählen

pi@raspberrypi:~/.homebridge $     sudo service homebridge start
Job for homebridge.service failed. See 'systemctl status homebridge.service' and 'journalctl -xn' for details.
In der Status Datei kommt:

Code: Alles auswählen

● homebridge.service - LSB: Start daemon at boot time
   Loaded: loaded (/etc/init.d/homebridge)
   Active: failed (Result: exit-code) since Fri 2017-01-20 20:26:33 UTC; 2min 37s ago
  Process: 1637 ExecStart=/etc/init.d/homebridge start (code=exited, status=1/FAILURE)
:( :( :(
+++ Anfänger +++

bisher: 12x Funk-Jalousieaktor Unterputz Taster, 3x Rauchmelder, 1x Aussentemp,
3x Wassermelder

Steff
Beiträge: 6
Registriert: 07.11.2014, 01:04

Re: RPi2 - Homebridge : Siri for the rest of us

Beitrag von Steff » 20.01.2017, 23:25

thkl hat geschrieben:Du schreibst du hast nur einen Dimmer im Gewerk.
Dann sind die Einträge bei filter_channel und outlets nutzlos.
Ersetze das mal gegen []
Ja, hab beim letztem Versuch erstmal nur ein Gerät ins Gewerk gepackt um evtl. Probleme zu vermeiden.
Hab' die Filter-Einträge mal gelöscht, aber keine Veränderung: es tauchen noch immer keine Geräte bei Homebridge in der Eve- bzw. Home-App auf.
Habe auch immer noch den Fehler:
"[1/20/2017, 10:51:29 PM] [HomeMatic CCU] Unable to parse live ccu data. Will try cache if there is one"
In der Google-Suche gibt's hierzu leider keine Treffer.
Hab' jetzt alle anderen Geräte mit Zugriff auf die CCU abgeschaltet, die CCU direkt an den Router ohne Switch gesteckt etc. Habe auch schon alle Installationsanleitungen im Netz durch exerziert. Mehr fällt mir nicht ein.
Wieso benötigt die Homebridge auf dem Raspi eigentlich weder Nutzernamen noch Passwort für den Zugriff auf die CCU2?

Benutzeravatar
thkl
Beiträge: 2765
Registriert: 15.07.2013, 13:32
Wohnort: dickes B
Danksagung erhalten: 5 Mal

Re: RPi2 - Homebridge : Siri for the rest of us

Beitrag von thkl » 21.01.2017, 10:53

Moin,

schwierige Frage. Diese Meldung kommt, wenn von der CCU keine gültigen Daten zurückkommen. Oder eben auch keine.
Zur 2. Frage: RegaHSS (das ist die CCU Scriptschnittstelle) und auch RFD (das ist der Dienst der mit den Funkkomponenten spricht) sind via HTTP ohne Authentifizierung erreichbar. Das Password für die WebOberfläche ist nur SnakeOil ;o)

Antworten

Zurück zu „Sonstige Addons“