homebridge/homekit

Begonnen von justme1968, 01 Februar 2016, 16:16:37

Vorheriges Thema - Nächstes Thema

budy

Moin Alex,

wenn die homebridge nach einem restart wieder funktioniert, dann würde ich mal das als letztes hinzugefügte Device wieder entfernen und schauen, ob es dann wieder stabil läuft.

Allerdings frage ich mich, warum du im homebridgeMapping doppelte Semikolon einsetzt, das sollten doch einfache sein.

Gruß,
Stephan
Debian stretch, FHEM 5.9.
HM-CC-RT-DN, HM-ES-PMSw1-Pl, HM-LC-Dim1TPBU-FM, HMUARTLGW, HMLAN, HM-SEC-KEY, HM-SEC-RHS, HM-SEC-SC-2, HM-SEC-SCo, HM-SEC-SD-2, HM-OU-CFM-TW, div. HUEs, Wifilight, Ring Video Pro

aski71

Das ist ein Ausriss direkt aus fhem.cfg.
Wenn Du über die Weboberfläche ein Semikolon eingibst, wird das m.E. in der cfg immer als zwei Semikolons abgespeichert.

Klar kann ich das Gerät testweise heute mal wieder rausnehmen, aber: Ich habe schon 3 andere, die genau gleich konfiguriert sind und keinerlei Probleme verursachen.

Zustand heute früh:
Nachdem gestern nur dieses Device nicht funktioniert hat, geht heute wieder gar nichts mehr.
Das letzte Eintrag Logfile ist von gestern mittag. Was auch nicht sein kann.

Hm ....

aski71

P.S.:
- Gerät aus cfg raus genommen.
- fhem und homebridge neu gestartet.
- Eve hat wieder Kontakt zu den Geräten

ABER:
Eve hat mal wieder Amnesie und alle meine selbst vergebenen Siri-Namen für die Harmony Szenen vergessen.    :(

budy

Ich kann mir nicht vorstellen, dass das an homebridge selber liegt. Bei mir läuft das schon seit Monaten stabil und ich habe mittlerweile auch schon fast alle meine ganzen Devices da drin... selbst Updates von homebridge und homebridge-fhem haben da keine Probleme gemacht.

Hast du mehr als ein iOS Device da dran? Wenn ja, dann würde ich mal auf allen Geräten die iCloud Konfig nebst Homekit entfernen. Solltest du ein ATV haben, dann würde ich die iCloud-Konfig entfernen und das ATV anschließend einmal booten, bevor du das dort wieder einrichtest.

Da scheint ein Gerät die Homekit DB zu überschreiben, so was hatte ich mal ganz zu Anfang.
Debian stretch, FHEM 5.9.
HM-CC-RT-DN, HM-ES-PMSw1-Pl, HM-LC-Dim1TPBU-FM, HMUARTLGW, HMLAN, HM-SEC-KEY, HM-SEC-RHS, HM-SEC-SC-2, HM-SEC-SCo, HM-SEC-SD-2, HM-OU-CFM-TW, div. HUEs, Wifilight, Ring Video Pro

aski71

Zitat von: budy am 21 Juli 2016, 16:59:21
Wenn ja, dann würde ich mal auf allen Geräten die iCloud Konfig nebst Homekit entfernen. Solltest du ein ATV haben, dann würde ich die iCloud-Konfig entfernen und das ATV anschließend einmal booten, bevor du das dort wieder einrichtest.

Was meinst Du mit "iCloud Konfig nebst Homekit"?

Ich habe tatsächlich Eve auf 3 iOS Geräten installiert.
Auf meinem ATV habe ich nix gemacht.
Also überall die Homebridge raus löschen?
Überall Eve deinstallieren und neu installieren?

budy

Ich würde das ganze erst mal so angehen:

- Homekit auf auf dem/n iOS Geräten entfernen und aus iCloud abmelden
- homebridge stoppen und den persist-Ordner leeren
- dann homebridge wieder starten und erst mal nur mit einen iOS Gerät arbeiten

Wenn das dann ordentlich läuft, dann die anderen Geräte wieder dazu nehmen. Es sieht für mich ein wenig so aus, als würde eines der Geräte die DB in der iCloud überschreiben...

Ich hatte das auch mal ganz am Anfang und nachdem ich alle Geräte aus der iCloud entfernt und die homebridge einmal neu konfiguriert hatte, ging das fortan ohne irgendwelche Probleme.

Gruß,
Stephan
Debian stretch, FHEM 5.9.
HM-CC-RT-DN, HM-ES-PMSw1-Pl, HM-LC-Dim1TPBU-FM, HMUARTLGW, HMLAN, HM-SEC-KEY, HM-SEC-RHS, HM-SEC-SC-2, HM-SEC-SCo, HM-SEC-SD-2, HM-OU-CFM-TW, div. HUEs, Wifilight, Ring Video Pro

aski71

Zitat von: budy am 22 Juli 2016, 20:56:21
und aus iCloud abmelden

Puh. Das ist ein frommer Wunsch.  :o
Bei dem, was bei mir alles über iCloud läuft ...... und dann sich wieder neu synchronisieren muss.
Aber dann hab ich es schon richtig verstanden.
Ich versuch's erstmal mit allem außer iCloud abmelden.
Läuft seit gestern abend.
Mal schauen.
Danke so weit schon mal.

SventeHof

Moin Zusammen,

ich habe eine QNAP TS-251+ und darauf über die virtualization station mein fhem auf einem debian Server laufen, die Performance ist 1a.
Nun frage ich mich aber, ob debian in Verbindung mit homebridge die richtige Wahl war, denn die aktuelle Version lässt sich nicht installieren.
Habt ihr evtl. einen Tipp für mich, welches Betriebssystem zur Zeit die beste Wahl ist, bei der dann auch die aktuellste Homebridge läuft? Da ich Konfig und Daten in der DB speichere, habe ich auch kein Problem damit, das System neu aufzusetzen ..

Gruß aus dem hohen Norden
Sven

budy

Moin Sven,

wieso soll Debian keine gute Wahl sein. Auf meinem Raspi läuft Jessie und das mit den neuesten homebrige/homebridge-fhem Versionen.
Welcher Teil der Installation geht denn nicht - das sind ja ein paar...

Gruß auch aus dem hohen Norden,
Stephan
Debian stretch, FHEM 5.9.
HM-CC-RT-DN, HM-ES-PMSw1-Pl, HM-LC-Dim1TPBU-FM, HMUARTLGW, HMLAN, HM-SEC-KEY, HM-SEC-RHS, HM-SEC-SC-2, HM-SEC-SCo, HM-SEC-SD-2, HM-OU-CFM-TW, div. HUEs, Wifilight, Ring Video Pro

Thyraz

Nachdem ja immer wieder mal bei Problemen mit dem Update von Homebridge einfach ein drüber installieren empfohlen wurde,
hab ich das in letzter Zeit einfach immer so gemacht.

Nur diesmal klappt die Installation nicht mehr und Homebridge ist futsch (letztes Update/Installieren war so 3-4 Wochen her schätze ich).

sudo npm install -g homebridge bricht immer beim Erstellen vom Package bignum ab.
Ich denke die ersten Warnings mit der Installation über ein "Temporary Dev Dir" sind normal, das kommt bei den Packages die davor installiert werden auch.
Diese werden aber dann ohne Fehler installiert.

Danach kommen ja aber auch mehrere Fehler und ich bin mir nicht sicher, was genau der Grund des Scheiterns ist.
Mein System (Raspberry mit Jessie auf aktuellem Stand und Node 5.12.0) war bisher kein Problem.
Braucht man plötzlich eine andere Version von Node?



> bignum@0.12.5 install /usr/lib/node_modules/homebridge/node_modules/bignum
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download: https://rvagg-node.s3-us-west-2.amazonaws.com/bignum/v0.12.5/bignum-v0.12.5-node-v47-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for bignum@0.12.5 and node@5.12.0 (node-v47 ABI) (falling back to source compile with node-gyp)
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/homebridge/node_modules/bignum/.node-gyp"
make: Entering directory '/usr/lib/node_modules/homebridge/node_modules/bignum/build'
make: *** No rule to make target '../.node-gyp/5.12.0/include/node/common.gypi', needed by 'Makefile'.  Schluss.
make: Leaving directory '/usr/lib/node_modules/homebridge/node_modules/bignum/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 4.1.19-v7+
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/lib/node_modules/homebridge/node_modules/bignum/binding/bignum.node" "--module_name=bignum" "--module_path=/usr/lib/node_modules/homebridge/node_modules/bignum/binding"
gyp ERR! cwd /usr/lib/node_modules/homebridge/node_modules/bignum
gyp ERR! node -v v5.12.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/homebridge/node_modules/bignum/binding/bignum.node --module_name=bignum --module_path=/usr/lib/node_modules/homebridge/node_modules/bignum/binding' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:100:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:850:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Linux 4.1.19-v7+
node-pre-gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/homebridge/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/homebridge/node_modules/bignum
node-pre-gyp ERR! node -v v5.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/homebridge/node_modules/bignum/binding/bignum.node --module_name=bignum --module_path=/usr/lib/node_modules/homebridge/node_modules/bignum/binding' (1)
/usr/lib
└── (empty)

npm ERR! Linux 4.1.19-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "homebridge"
npm ERR! node v5.12.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE

npm ERR! bignum@0.12.5 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bignum@0.12.5 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bignum package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bignum
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bignum
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/npm-debug.log
npm ERR! code 1

Fhem und MariaDB auf NUC6i5SYH in Proxmox Container (Ubuntu)
Zwave, Conbee II, Hue, Harmony, Solo4k, LaMetric, Echo, Sonos, Roborock S5, Nuki, Prusa Mini, Doorbird, ...

DeeSPe

Zitat von: Thyraz am 25 Juli 2016, 13:54:55
Nachdem ja immer wieder mal bei Problemen mit dem Update von Homebridge einfach ein drüber installieren empfohlen wurde,
hab ich das in letzter Zeit einfach immer so gemacht.

Nur diesmal klappt die Installation nicht mehr und Homebridge ist futsch (letztes Update/Installieren war so 3-4 Wochen her schätze ich).

sudo npm install -g homebridge bricht immer beim Erstellen vom Package bignum ab.
Ich denke die ersten Warnings mit der Installation über ein "Temporary Dev Dir" sind normal, das kommt bei den Packages die davor installiert werden auch.
Diese werden aber dann ohne Fehler installiert.

Danach kommen ja aber auch mehrere Fehler und ich bin mir nicht sicher, was genau der Grund des Scheiterns ist.
Mein System (Raspberry mit Jessie auf aktuellem Stand und Node 5.12.0) war bisher kein Problem.
Braucht man plötzlich eine andere Version von Node?



> bignum@0.12.5 install /usr/lib/node_modules/homebridge/node_modules/bignum
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download: https://rvagg-node.s3-us-west-2.amazonaws.com/bignum/v0.12.5/bignum-v0.12.5-node-v47-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for bignum@0.12.5 and node@5.12.0 (node-v47 ABI) (falling back to source compile with node-gyp)
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/homebridge/node_modules/bignum/.node-gyp"
make: Entering directory '/usr/lib/node_modules/homebridge/node_modules/bignum/build'
make: *** No rule to make target '../.node-gyp/5.12.0/include/node/common.gypi', needed by 'Makefile'.  Schluss.
make: Leaving directory '/usr/lib/node_modules/homebridge/node_modules/bignum/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 4.1.19-v7+
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/lib/node_modules/homebridge/node_modules/bignum/binding/bignum.node" "--module_name=bignum" "--module_path=/usr/lib/node_modules/homebridge/node_modules/bignum/binding"
gyp ERR! cwd /usr/lib/node_modules/homebridge/node_modules/bignum
gyp ERR! node -v v5.12.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/homebridge/node_modules/bignum/binding/bignum.node --module_name=bignum --module_path=/usr/lib/node_modules/homebridge/node_modules/bignum/binding' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:100:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:850:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Linux 4.1.19-v7+
node-pre-gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/homebridge/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/homebridge/node_modules/bignum
node-pre-gyp ERR! node -v v5.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/homebridge/node_modules/bignum/binding/bignum.node --module_name=bignum --module_path=/usr/lib/node_modules/homebridge/node_modules/bignum/binding' (1)
/usr/lib
└── (empty)

npm ERR! Linux 4.1.19-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "homebridge"
npm ERR! node v5.12.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE

npm ERR! bignum@0.12.5 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bignum@0.12.5 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bignum package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bignum
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bignum
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/npm-debug.log
npm ERR! code 1



Au ja, das BigNum Problem scheint öfter zu bestehen!
Schon mal Folgendes probiert?
sudo npm install -g homebridge --unsafe-perm

Gruß
Dan
MAINTAINER: 22_HOMEMODE, 98_Hyperion, 98_FileLogConvert, 98_serviced

Als kleine Unterstützung für meine Programmierungen könnt ihr mir gerne einen Kaffee spendieren: https://buymeacoff.ee/DeeSPe

Thyraz

Das hat geholfen, wunderbar. :)

Und dank diesem Post:

Zitat
Have you tried installing homebridge with the --unsafe-perm option? e.g.

sudo npm install -g --unsafe-perm homebridge
If npm detects it is running as root it drops to a non-privileged user which then doesn't have permissions to write to /root/.node-gyp. The --unsafe-perm option stops it from changing user.

nvm doesn't have this problem when not using sudo because it stores everything under the current users' home directory.
https://github.com/nfarina/homebridge/issues/405

hab ich auch kapiert warum. :)

Allerdings nicht warum es bisher geklappt hat. :P
Fhem und MariaDB auf NUC6i5SYH in Proxmox Container (Ubuntu)
Zwave, Conbee II, Hue, Harmony, Solo4k, LaMetric, Echo, Sonos, Roborock S5, Nuki, Prusa Mini, Doorbird, ...

Thyraz

Hat jemand Fenster- / Türkontakte mit der iOS 10 Beta Home-App am laufen?

Wenn ja wie habt ihr den Kontakt konfiguriert?
Bei mir ist bisher das drin:


genericDeviceType: window
homeBridgeMapping: CurrentDoorState=reportedState,values=closed:CLOSED;open:OPEN


Mit anderen Homekit Apps kann ich Fenster offen und geschlossen sehen, die Beta-Home-App zeigt aber immer geschlossen.
Soweit ich weiß, sind Fenster/Türen in Homekit ja eigentlich für automatisch ansteuerbare (motorisierte) Varianten und nicht nur für Kontakte.

Weiß jemand ob man weitere Characteristics braucht damit es funktioniert?
Fhem und MariaDB auf NUC6i5SYH in Proxmox Container (Ubuntu)
Zwave, Conbee II, Hue, Harmony, Solo4k, LaMetric, Echo, Sonos, Roborock S5, Nuki, Prusa Mini, Doorbird, ...

DeeSPe

Zitat von: Thyraz am 25 Juli 2016, 19:28:06
Hat jemand Fenster- / Türkontakte mit der iOS 10 Beta Home-App am laufen?

Wenn ja wie habt ihr den Kontakt konfiguriert?
Bei mir ist bisher das drin:


genericDeviceType: window
homeBridgeMapping: CurrentDoorState=reportedState,values=closed:CLOSED;open:OPEN


Mit anderen Homekit Apps kann ich Fenster offen und geschlossen sehen, die Beta-Home-App zeigt aber immer geschlossen.
Soweit ich weiß, sind Fenster/Türen in Homekit ja eigentlich für automatisch ansteuerbare (motorisierte) Varianten und nicht nur für Kontakte.

Weiß jemand ob man weitere Characteristics braucht damit es funktioniert?

genericDeviceType sollte contact sein, das ist für nicht motorisierte...

Gruß
Dan
MAINTAINER: 22_HOMEMODE, 98_Hyperion, 98_FileLogConvert, 98_serviced

Als kleine Unterstützung für meine Programmierungen könnt ihr mir gerne einen Kaffee spendieren: https://buymeacoff.ee/DeeSPe

justme1968

wie weiter oben schon mehrfach geschrieben muss man contact bzw. ContactSensor verwenden und dort die ContactSensorState characteristic mappen. zusätzlich kann man CurrentDoorState mappen um siri direkt nach geöffneten türen und denstern fragen zu können und eine leichter interpretierbare anzeige zu bekommen.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968