Apple Homekit: die Hoffnung stirbt zuletzt

Begonnen von eldrik, 23 Januar 2015, 13:57:07

Vorheriges Thema - Nächstes Thema

PsychoD

Hey,

zunächst auhc von mir noch einmal 1000 Dank! Das ist echt eine Super Sache!!!

Ich habe drei Fragen, und muss etwas ausholen:

1)

Nach meinem Erfolg wollte ich Homebridge bei meinen Eltern auch installieren (Kleine FHEM RPI Installation mit 3x Homematic Thermostaten). Installiert, prinzipiell meine Configs übernommen, gestartet, lief auf Anhieb nach manuellem Start. Dann wollte ich die Homebridge noch in den Autostart stecken wie hier beschrieben https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi . Ab dem Zeitpunkt, egal ob manuell gestartet oder per Script, war die Homebridge nicht mehr erreichbar oder neu einbindbar. Eve findet einfach keine Homebridge. Alle Logs sind sauber gewesen, Fehler gibt es keine. Ich habe das gesamte Troubleshooting durch (https://github.com/cflurin/homebridge-shims/wiki/Minimalist-Homebridge-on-a-Raspberry-Pi) und alles was mir sonst so eingefallen ist, incl. alles 10 Minuten stromlos...

Hat jemand noch eine Idee was ich versuchen könnte?

avahi-browse -t _http._tcp
liefert bei mir im übrigen keine Ergebnisse, das ist jedoch auf meinem funktionierenden System auch so. avahi-browse -at zeigt die Homebridge.

2) Als ich dann frustriert abgebrochen und nach Hause gefahren bin, konnte mein Eve auch keinen Kontakt mehr zu meiner Homebridge herstellen. Einen Neustart des iPhones später hatte Eve meine komplette Homekit Konfiguration vergessen... :( Ich hoffe, das war nur einmalig und vielleicht dem geschuldet, dass ich im Prinzip bei meinen Eltern mit dem gleichen username in der config.json gearbeitet hatte...

Wie kann das sein? Liegt es vielleicht daran, dass ich beide male mit dem gleichen name und username gearbeitet habe?

3) Die beiden LANs sind über ein VPN zwischen unseren Fritzboxen miteinander verbunden, Bonjour sollte darüber aber nicht übertragen werden, so dass es dadurch keine Komplikationen geben sollte, oder?

Danke und viele Grüße
psy

bigdane

Hast du nach Änderungen auch die Mac Adresse in der config.json geändert? Ich muss die immer ändern, damit eve die homebridge findet wenn ich eine Änderung vornehme und neu einrichten will...


Sent from my iPhone using Tapatalk

PsychoD

Hi,

Ja, auch das habe ich versucht.

Viele Grüße
Psy

no_Legend

#1158
Ich hab mich mal an der Installation probiert.
Leider bekomme ich da ne paar Fehlermeldungen:


npm ERR! install Couldn't read dependencies
npm ERR! Linux 3.4.94-sun7i+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! file /home/hs-server-admin/homebridge/package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Trailing comma in object at 29:3
npm ERR!   }
npm ERR!   ^
npm ERR! File: /home/hs-server-admin/homebridge/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR!     /home/hs-server-admin/homebridge/npm-debug.log


Hat jemand eine erklärung dafür oder ne Tip?

Danke und Gruß Robert

Edit:

Glaube ich habe den Fehler gefunden.
vor den Letzten zwei } hatte ich noch ein komma drin.
Die Installation läuft gerade.

Edit2:

Nun bekomme ich folgende Fehler angezeigt:


hs-server-admin@FHEMcubie:~/homebridge$ npm install
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae: Klone in Bare-Repository '/home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae'...
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae: fatal: unable to connect to github.com:
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae: github.com[0: 192.30.252.128]: errno=Die Wartezeit für die Verbindung ist abgelaufen
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-curve25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d: Klone in Bare-Repository '/home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d'...
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-curve25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d: fatal: unable to connect to github.com:
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-curve25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d: github.com[0: 192.30.252.128]: errno=Die Wartezeit für die Verbindung ist abgelaufen
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/ed25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d: Klone in Bare-Repository '/home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d'...
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/ed25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d: fatal: unable to connect to github.com:
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/ed25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d: github.com[0: 192.30.252.128]: errno=Die Wartezeit für die Verbindung ist abgelaufen
npm ERR! Linux 3.4.94-sun7i+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code 128

npm ERR! Command failed: git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae
npm ERR! Klone in Bare-Repository '/home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.128]: errno=Die Wartezeit für die Verbindung ist abgelaufen
npm ERR!
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support re
Docker FHEM immer aktuell,4x HMLAN, CUL443, CUL868 -homekit/siri -tablet ui -homebridge
Device, diverse:
Homematic, Shelly, Tasmota, MQTT, Unifi Network usw.

Mitch

Zitat von: justme1968 am 25 Oktober 2015, 17:52:44bitte nimm mal die version von hier: https://github.com/justme-1968/homebridge/blob/master/platforms/FHEM.js damit sollte es jetzt auch automatisch gehen.

Hallo,

habe gerade diese Version getestet, aber dann startet meine Homebridge gar nicht mehr

SyntaxError: Unexpected token <
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at loadPlatforms (/home/markus/homebridge/app.js:107:30)
    at startup (/home/markus/homebridge/app.js:59:27)
    at Object.<anonymous> (/home/markus/homebridge/app.js:223:1)
    at Module._compile (module.js:456:26)
FHEM im Proxmox Container

justme1968

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

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

justme1968

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

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

Mitch

Habe nur die neue FHEM.js aus dem github kopiert.
FHEM im Proxmox Container

justme1968

und davor steht nichts weiter auf der console?

welche md5 summe hat dein FHEM.js file ?

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

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

Mitch

48e693d4c5d69381354d4104566183e4  FHEM.js

> homebridge@0.1.1 start /home/markus/homebridge
> DEBUG=* node app.js || true

*** 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>
Starting HomeBridge server...
_____________________________________________________________________
IMPORTANT: Homebridge is in the middle of some big changes.
           Read more about it here:
           https://github.com/nfarina/homebridge/wiki/Migration-Guide
_____________________________________________________________________

Loading 2 platforms...
  node-stringprep Cannot load StringPrep-0.7.2 bindings (using fallback). You may need to `npm install node-stringprep` +0ms
  node-stringprep Error: Symbol node_stringprep_module not found.
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at bindings (/home/markus/homebridge/node_modules/node-xmpp-client/node_modules/node-xmpp-core/node_modules/node-stringprep/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/home/markus/homebridge/node_modules/node-xmpp-client/node_modules/node-xmpp-core/node_modules/node-stringprep/index.js:10:39)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12) +3ms
  node-stringprep Cannot load StringPrep-0.7.2 bindings (using fallback). You may need to `npm install node-stringprep` +0ms
  node-stringprep Error: Symbol node_stringprep_module not found.
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at bindings (/home/markus/homebridge/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/node_modules/node-stringprep/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/home/markus/homebridge/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/node_modules/node-stringprep/index.js:10:39)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12) +2ms
[Harmony] Initializing LogitechHarmony platform...
[Harmony] Searching for Logitech Harmony remote hubs...
  harmonyhubjs:discover:explorer Explorer(61991) +0ms
  harmonyhubjs:discover:ping Ping(61991) +3ms
  harmonyhubjs:discover:explorer start() +3ms
  harmonyhubjs:discover:responsecollector ResponseCollector(61991) +1ms
  harmonyhubjs:discover:responsecollector start() +3ms
  harmonyhubjs:discover:ping start() +8ms

/home/markus/homebridge/platforms/FHEM.js:4
<!DOCTYPE html>
^
SyntaxError: Unexpected token <
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at loadPlatforms (/home/markus/homebridge/app.js:107:30)
    at startup (/home/markus/homebridge/app.js:59:27)
    at Object.<anonymous> (/home/markus/homebridge/app.js:223:1)
    at Module._compile (module.js:456:26)
FHEM im Proxmox Container

justme1968

#1165
du hast due html version runtergeladen. du brauchst die raw quelltext version.

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

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

Mitch

Oh mann, sorry, da denke ich nie dran...  :-[
Jetzt startet es wieder auch inkl. der FBDECT im Raum Homekit.
FHEM im Proxmox Container

Posti123

Zitat von: no_Legend am 26 Oktober 2015, 07:51:13

Nun bekomme ich folgende Fehler angezeigt:


hs-server-admin@FHEMcubie:~/homebridge$ npm install
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae: Klone in Bare-Repository '/home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae'...
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae: fatal: unable to connect to github.com:
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae: github.com[0: 192.30.252.128]: errno=Die Wartezeit für die Verbindung ist abgelaufen
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-curve25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d: Klone in Bare-Repository '/home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d'...
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-curve25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d: fatal: unable to connect to github.com:
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-curve25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d: github.com[0: 192.30.252.128]: errno=Die Wartezeit für die Verbindung ist abgelaufen
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/ed25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d: Klone in Bare-Repository '/home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d'...
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/ed25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d: fatal: unable to connect to github.com:
npm ERR! git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/ed25519.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d: github.com[0: 192.30.252.128]: errno=Die Wartezeit für die Verbindung ist abgelaufen
npm ERR! Linux 3.4.94-sun7i+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.1
npm ERR! npm  v2.14.7
npm ERR! code 128

npm ERR! Command failed: git clone --template=/home/hs-server-admin/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae
npm ERR! Klone in Bare-Repository '/home/hs-server-admin/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.128]: errno=Die Wartezeit für die Verbindung ist abgelaufen
npm ERR!
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support re


dein Server hat anscheinend Probleme Github.com zu erreichen
18xHM-CC-RT-DN, 5xHM-TC-IT-WM-W-EU, HMLAN, 2xJeeLink 868, 1xJeeLink433, 1xCUL868, HM-LC-Bl1PBU-FM, HM-LC-Sw2-FM, HM-LC-SW1-FM, HM-LC-Sw1PBU-FM, 5xHM-Sec-SC-2, 2xHM-Sec-SCo, HM-ES-TX-WM, HM-Sen-MDIR-O-2, HM-WDS10-TH-O, 6xTechnoline, 2x PCA301,2xHM-PB-2-WM55-2,2xHM-RC-4-2,2xHM-WDS30-T-O, HM-SEC-WDS-2

no_Legend

Zitat von: Posti123 am 26 Oktober 2015, 09:35:27
dein Server hat anscheinend Probleme Github.com zu erreichen

Ich hab mal kurz meine IPFire deaktiviert.
Dann ging es. Denke das der zugriff auf Github hier nicht über einen Standard Port geschieht.

Danke und Gruß Robert
Docker FHEM immer aktuell,4x HMLAN, CUL443, CUL868 -homekit/siri -tablet ui -homebridge
Device, diverse:
Homematic, Shelly, Tasmota, MQTT, Unifi Network usw.

no_Legend

Die Installation hat nun soweit funktioniert.

Eine Frage hab ich noch:
Ich hab meine FHEM mit einem eingenen Zertifikat per https abgesichert.
Bekomme ich das irgendwie in die Config für Homebridge eingetragen?

Gruß Robert
Docker FHEM immer aktuell,4x HMLAN, CUL443, CUL868 -homekit/siri -tablet ui -homebridge
Device, diverse:
Homematic, Shelly, Tasmota, MQTT, Unifi Network usw.