Homebridge und Homekit einrichten - Fehler

Begonnen von dape, 15 Dezember 2016, 02:59:56

Vorheriges Thema - Nächstes Thema

dape

So.
ich habe mich also Schritt für Schritt an die Beschreibung im Wiki gehalten, um Homebridge einzurichten.
Es läuft auch soweit immer alles. Aber wenn ich dann eine Teilnehmer zu Fhem in den Raum Homekit hinzufüge erscheint diese Meldung:

Hallo!
ich erhalte folgende Fehlermeldung: Woran kann das liegen?
scheinbar funktioniert Homebridge ja. Es wir test erkannt. Aber in Homekit auf dem iPhone wird nichts gefunden. Danke!

[2016-12-14 23:52:03] [FHEM] got: 1 results
[2016-12-14 23:52:03] [FHEM] test is switch
[2016-12-14 23:52:03] [FHEM] test has
[2016-12-14 23:52:03] [FHEM] On [state;on,off]
2016-12-14 23:52:03 caching: test-state: off
[2016-12-14 23:52:03] [FHEM] caching: On: false (as boolean; from 'off')
[2016-12-14 23:52:03] [FHEM] Initializing platform accessory 'test'...
[2016-12-14 23:52:03] [FHEM] creating services for test
[2016-12-14 23:52:03] [FHEM] information service for test
[2016-12-14 23:52:03] [FHEM] manufacturer, model and serial number characteristics for test
[2016-12-14 23:52:03] [FHEM] Switch service for test
[2016-12-14 23:52:03] [FHEM] On characteristic for test:state
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐
│ 111-22-333 │
└────────────┘

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)

Wer kann mir sagen, wie ich dieses Problem beseitige?

Gruß
Hermann

jarvis121

Welche Node Version hast du? Ich kann mir vorstellen dass du die falsche hast. Geh mal auf die Seite von Node und schau nach welches die aktuelle Version ist. Ich meine 6.9.2

Damit läuft es zumindest bei mir ziemlich stabil.

Wenn du ne andere hast ändere deine Installationsanweisungen entsprechend

VG


Gesendet von iPhone mit Tapatalk

justme1968

das schaut so aus als ob eine homebridge instanz läuft und du versuchst eine zweite zu starten.

hast du die erste angehalten?
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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

TWART016

Hallo,

konntest du das mittlerweile lösen? Ich habe derzeit die gleichen Probleme bzw. die gleichen Fehler.

Homebridge steigt öfters aus. Morgens geht es zu 90%, abends zu 30%. Immer wieder erscheint am iPhone (Home App) keine Antwort.

*** 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>
[10.2.2017, 00:31:12] Loaded plugin: homebridge-fhem
homebridge API version: 2.1
this homebridge-fhem 0.2.71
[10.2.2017, 00:31:12] Registering platform 'homebridge-fhem.FHEM'
[10.2.2017, 00:31:12] ---
[10.2.2017, 00:31:12] Loaded plugin: homebridge-http
[10.2.2017, 00:31:12] Registering accessory 'homebridge-http.Http'
[10.2.2017, 00:31:12] ---
[10.2.2017, 00:31:12] Loaded config.json with 0 accessories and 1 platforms.
[10.2.2017, 00:31:12] ---
[10.2.2017, 00:31:12] Loading 1 platforms...
[10.2.2017, 00:31:12] [FHEM] Initializing FHEM platform...
[10.2.2017, 00:31:12] [FHEM] Checking devices and attributes...
[10.2.2017, 00:31:12] [FHEM]   executing: https://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[10.2.2017, 00:31:12] [FHEM]   executing: https://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE=siri&XHR=1
starting longpoll: https://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1486683072947
[10.2.2017, 00:31:12] [FHEM] Fetching FHEM devices...
[10.2.2017, 00:31:12] [FHEM] fetching: https://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=Homekit&XHR=1
[10.2.2017, 00:31:12] Loading 0 accessories...
Server error: Error: listen EADDRINUSE :::8282
Server listening on: http://<ip>:8283
[10.2.2017, 00:31:13] [FHEM] no siri device found. please define it.
[10.2.2017, 00:31:13] [FHEM] got: 8 results
[10.2.2017, 00:31:13] [FHEM] HD_Receiver_Autostart is switch
[10.2.2017, 00:31:13] [FHEM] HD_Receiver_Autostart has
[10.2.2017, 00:31:13] [FHEM]   On [state;on,off]
  2017-02-10 00:31:13 caching: HD_Receiver_Autostart-state: off
[10.2.2017, 00:31:13] [FHEM]     caching: On: false (as boolean; from 'off')
[10.2.2017, 00:31:13] [FHEM] NichtSchalten is switch
[10.2.2017, 00:31:13] [FHEM] NichtSchalten has
[10.2.2017, 00:31:13] [FHEM]   On [state;on,off]
  2017-02-10 00:31:13 caching: NichtSchalten-state: off
[10.2.2017, 00:31:13] [FHEM]     caching: On: false (as boolean; from 'off')
[10.2.2017, 00:31:13] [FHEM] Rollladen is switch
[10.2.2017, 00:31:13] [FHEM] Rollladen has
[10.2.2017, 00:31:13] [FHEM] Steckdose_Kueche_links is switch
[10.2.2017, 00:31:13] [FHEM] Steckdose_Kueche_links has
[10.2.2017, 00:31:13] [FHEM]   On [state;on,off]
  2017-02-10 00:31:13 caching: Steckdose_Kueche_links-state: off
[10.2.2017, 00:31:13] [FHEM]     caching: On: false (as boolean; from 'off')
[10.2.2017, 00:31:13] [FHEM] Steckdose_Licht_Wohnwand is switch
[10.2.2017, 00:31:13] [FHEM] Steckdose_Licht_Wohnwand has
[10.2.2017, 00:31:13] [FHEM]   On [state;on,off]
  2017-02-10 00:31:13 caching: Steckdose_Licht_Wohnwand-state: off
[10.2.2017, 00:31:13] [FHEM]     caching: On: false (as boolean; from 'off')
[10.2.2017, 00:31:13] [FHEM] homebridgeMapping: clear
On=activity,subtype=heimkommen,valueOn=heimkommen,cmdOn=heimkommen,cmdOff=wählen
On=activity,subtype=aufstehen,valueOn=aufstehen,cmdOn=aufstehen,cmdOff=wählen
On=activity,subtype=Kino,valueOn=Kino,cmdOn=Kino,cmdOff=wählen
On=activity,subtype=alles_aus,valueOn=alles_aus,cmdOn=alles_aus,cmdOff=wählen
On=activity,subtype=schlafen,valueOn=schlafen,cmdOn=schlafen,cmdOff=wählen
On=activity,subtype=Demo,valueOn=Demo,cmdOn=Demo,cmdOff=wählen
On=activity,subtype=einfach_geniessen,valueOn=einfach_geniessen,cmdOn=einfach_geniessen,cmdOff=wählen

[10.2.2017, 00:31:13] [FHEM] Wohnzimmer_Modi is switch
[10.2.2017, 00:31:13] [FHEM] Wohnzimmer_Modi has
[10.2.2017, 00:31:13] [FHEM]   On [activity;heimkommen,wählen]
[10.2.2017, 00:31:13] [FHEM]   On [activity;aufstehen,wählen]
[10.2.2017, 00:31:13] [FHEM]   On [activity;Kino,wählen]
[10.2.2017, 00:31:13] [FHEM]   On [activity;alles_aus,wählen]
[10.2.2017, 00:31:13] [FHEM]   On [activity;schlafen,wählen]
[10.2.2017, 00:31:13] [FHEM]   On [activity;Demo,wählen]
[10.2.2017, 00:31:13] [FHEM]   On [activity;einfach_geniessen,wählen]
[10.2.2017, 00:31:13] [FHEM] dummyHomekit is switch
[10.2.2017, 00:31:13] [FHEM] dummyHomekit has
[10.2.2017, 00:31:13] [FHEM]   On [state;on,off]
  2017-02-10 00:31:13 caching: dummyHomekit-state: off
[10.2.2017, 00:31:13] [FHEM]     caching: On: false (as boolean; from 'off')
[10.2.2017, 00:31:13] [FHEM] testStatus2: no service type detected
[10.2.2017, 00:31:13] [FHEM] no accessory created for testStatus2 (dummy)
[10.2.2017, 00:31:13] [FHEM] Initializing platform accessory 'HD_Receiver_Autostart'...
[10.2.2017, 00:31:13] [FHEM] creating services for HD_Receiver_Autostart
[10.2.2017, 00:31:13] [FHEM]   information service for HD_Receiver_Autostart
[10.2.2017, 00:31:13] [FHEM]     manufacturer, model and serial number characteristics for HD_Receiver_Autostart
[10.2.2017, 00:31:13] [FHEM]   Switch service for HD_Receiver_Autostart
[10.2.2017, 00:31:13] [FHEM]     On characteristic for HD_Receiver_Autostart:state
[10.2.2017, 00:31:13] [FHEM] Initializing platform accessory 'NichtSchalten'...
[10.2.2017, 00:31:13] [FHEM] creating services for NichtSchalten
[10.2.2017, 00:31:13] [FHEM]   information service for NichtSchalten
[10.2.2017, 00:31:13] [FHEM]     manufacturer, model and serial number characteristics for NichtSchalten
[10.2.2017, 00:31:13] [FHEM]   Switch service for NichtSchalten
[10.2.2017, 00:31:13] [FHEM]     On characteristic for NichtSchalten:state
[10.2.2017, 00:31:13] [FHEM] Initializing platform accessory 'Rollladen'...
[10.2.2017, 00:31:13] [FHEM] creating services for Rollladen
[10.2.2017, 00:31:13] [FHEM]   information service for Rollladen
[10.2.2017, 00:31:13] [FHEM]     manufacturer, model and serial number characteristics for Rollladen
[10.2.2017, 00:31:13] [FHEM]   Switch service for Rollladen
[10.2.2017, 00:31:13] [FHEM] Initializing platform accessory 'Steckdose_Kueche_links'...
[10.2.2017, 00:31:13] [FHEM] creating services for Steckdose_Kueche_links
[10.2.2017, 00:31:13] [FHEM]   information service for Steckdose_Kueche_links
[10.2.2017, 00:31:13] [FHEM]     manufacturer, model and serial number characteristics for Steckdose_Kueche_links
[10.2.2017, 00:31:13] [FHEM]   Switch service for Steckdose_Kueche_links
[10.2.2017, 00:31:13] [FHEM]     On characteristic for Steckdose_Kueche_links:state
[10.2.2017, 00:31:13] [FHEM] Initializing platform accessory 'Steckdose_Licht_Wohnwand'...
[10.2.2017, 00:31:13] [FHEM] creating services for Steckdose_Licht_Wohnwand
[10.2.2017, 00:31:13] [FHEM]   information service for Steckdose_Licht_Wohnwand
[10.2.2017, 00:31:13] [FHEM]     manufacturer, model and serial number characteristics for Steckdose_Licht_Wohnwand
[10.2.2017, 00:31:13] [FHEM]   Switch service for Steckdose_Licht_Wohnwand
[10.2.2017, 00:31:13] [FHEM]     On characteristic for Steckdose_Licht_Wohnwand:state
[10.2.2017, 00:31:13] [FHEM] Initializing platform accessory 'Wohnzimmer_Modi'...
[10.2.2017, 00:31:13] [FHEM] creating services for Wohnzimmer_Modi
[10.2.2017, 00:31:13] [FHEM]   information service for Wohnzimmer_Modi
[10.2.2017, 00:31:13] [FHEM]     manufacturer, model and serial number characteristics for Wohnzimmer_Modi
[10.2.2017, 00:31:13] [FHEM]   Switch service for Wohnzimmer_Modi
[10.2.2017, 00:31:13] [FHEM]     On:heimkommen characteristic for Wohnzimmer_Modi:activity
[10.2.2017, 00:31:13] [FHEM]   Switch service for Wohnzimmer_Modi (aufstehen)
[10.2.2017, 00:31:13] [FHEM]     On:aufstehen characteristic for Wohnzimmer_Modi:activity
[10.2.2017, 00:31:13] [FHEM]   Switch service for Wohnzimmer_Modi (Kino)
[10.2.2017, 00:31:13] [FHEM]     On:Kino characteristic for Wohnzimmer_Modi:activity
[10.2.2017, 00:31:13] [FHEM]   Switch service for Wohnzimmer_Modi (alles_aus)
[10.2.2017, 00:31:13] [FHEM]     On:alles_aus characteristic for Wohnzimmer_Modi:activity
[10.2.2017, 00:31:13] [FHEM]   Switch service for Wohnzimmer_Modi (schlafen)
[10.2.2017, 00:31:13] [FHEM]     On:schlafen characteristic for Wohnzimmer_Modi:activity
[10.2.2017, 00:31:13] [FHEM]   Switch service for Wohnzimmer_Modi (Demo)
[10.2.2017, 00:31:13] [FHEM]     On:Demo characteristic for Wohnzimmer_Modi:activity
[10.2.2017, 00:31:13] [FHEM]   Switch service for Wohnzimmer_Modi (einfach_geniessen)
[10.2.2017, 00:31:13] [FHEM]     On:einfach_geniessen characteristic for Wohnzimmer_Modi:activity
[10.2.2017, 00:31:13] [FHEM] Initializing platform accessory 'dummyHomekit'...
[10.2.2017, 00:31:13] [FHEM] creating services for dummyHomekit
[10.2.2017, 00:31:13] [FHEM]   information service for dummyHomekit
[10.2.2017, 00:31:13] [FHEM]     manufacturer, model and serial number characteristics for dummyHomekit
[10.2.2017, 00:31:13] [FHEM]   Switch service for dummyHomekit
[10.2.2017, 00:31:13] [FHEM]     On characteristic for dummyHomekit:state
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 163-26-446 │
    └────────────┘

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::51826
    at Object.exports._errnoException (util.js:870:11)
    at exports._exceptionWithHostPort (util.js:893:20)
    at Server._listen2 (net.js:1237:14)
    at listen (net.js:1273:10)
    at Server.listen (net.js:1369:5)
    at EventedHTTPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:60:19)
    at HAPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:158:20)
    at Bridge.Accessory.publish (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:496:16)
    at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:114:16)
    at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:372:14)


node ist v4.2.6


Gruß
TWART016