NODE JS Problem mit Homebridge

  • Hallo,

    Ich habe mir vor nicht allzu langer Zeit den Pi besorgt und dank der Anleitungen Homebridge selber eingerichtet. Bisher habe ich das nur für meine Netatmo Wetterstation und die Netatmo Aussenkamera benutzt und bin zufrieden damit.


    Der Pi wird ständig aktuell gehalten und alles funktioniert wie es soll.

    Als Node Version benutze Ich die 4.7.2


    Da Ich jetzt aber gern meinen Xiaomi Bodensauger und den Xiaomi Luftreiniger mit einbinden möchte gehen die Probleme los. Beide Plugins benötigen zwingend Node ab Version 6. Und genau darin liegt das Problem. Egal welche Node Version ab 6 ich installiere, funktioniert meine Homebridge nicht mehr.


    Woran kann das liegen?

  • Das sind eindeutig zu wenig Informationen. Was meinst du mit,dann läuft Homebridge nicht mehr? Wie machst du denn ein Update auf eine andere Nodeversion?

  • Ich installiere die Node Versionen mit sudo n 6.0.0 zum Beispiel, und dann startet Homebridge einfach nicht mehr. Kann später mal einen Screenshot mit der Fehlermeldung machen.

  • Bin nochmal genau nach Anleitung durchgegangen. Jetzt hat es funktioniert. Einige Fehler werden aber noch angezeigt.


    pi@raspberrypi:~ $ homebridge

    *** 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-compa…node&f=DNSServiceRegister>

    [2017-7-23 20:25:10] Loaded plugin: homebridge-netatmo

    [2017-7-23 20:25:10] Registering platform 'homebridge-netatmo.netatmo'

    [2017-7-23 20:25:10] ---

    [2017-7-23 20:25:10] Loaded config.json with 0 accessories and 1 platforms.

    [2017-7-23 20:25:10] ---

    [2017-7-23 20:25:10] Loading 1 platforms...

    [2017-7-23 20:25:10] [netatmo platform] Initializing netatmo platform...

    [2017-7-23 20:25:10] Loading 0 accessories...

    [2017-7-23 20:25:11] [netatmo platform] Initializing platform accessory 'Vek's Wetta Unten'...

    [2017-7-23 20:25:11] [netatmo platform] Initializing platform accessory 'Vek's Wetta Outdoor'...

    [2017-7-23 20:25:11] [netatmo platform] Initializing platform accessory 'Vek's Wetta Oben'...

    [2017-7-23 20:25:11] [netatmo platform] Initializing platform accessory 'Zu Hause'...

    Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ??????????????

    ? 031-45-154 ?

    ??????????????

    events.js:182

    throw er; // Unhandled 'error' event

    ^


    Error: listen EADDRINUSE :::51826

    at Object.exports._errnoException (util.js:1024:11)

    at exports._exceptionWithHostPort (util.js:1047:20)

    at Server.setupListenHandle [as _listen2] (net.js:1319:14)

    at listenInCluster (net.js:1367:12)

    at Server.listen (net.js:1467:7)

    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:486: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)

  • Die Xiaomi Plugins werden jetzt auch Fehlerfrei geladen. Muss dann nur noch die config.json anpassen.


    pi@raspberrypi:~ $ homebridge

    *** 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-compa…node&f=DNSServiceRegister>

    [2017-7-23 20:29:00] Loaded plugin: homebridge-mi-air-purifier

    [2017-7-23 20:29:00] Registering accessory 'homebridge-mi-air-purifier.MiAirPurifier'

    [2017-7-23 20:29:00] ---

    [2017-7-23 20:29:01] Loaded plugin: homebridge-netatmo

    [2017-7-23 20:29:01] Registering platform 'homebridge-netatmo.netatmo'

    [2017-7-23 20:29:01] ---

    [2017-7-23 20:29:01] Loaded plugin: homebridge-xiaomi-mi-robot-vacuum

    [2017-7-23 20:29:01] Registering accessory 'homebridge-xiaomi-mi-robot-vacuum.MiRobotVacuum'

    [2017-7-23 20:29:01] ---

    [2017-7-23 20:29:01] Loaded config.json with 0 accessories and 1 platforms.

    [2017-7-23 20:29:01] ---

    [2017-7-23 20:29:01] Loading 1 platforms...

    [2017-7-23 20:29:01] [netatmo platform] Initializing netatmo platform...

    [2017-7-23 20:29:01] Loading 0 accessories...

    [2017-7-23 20:29:02] [netatmo platform] Initializing platform accessory 'Vek's Wetta Unten'...

    [2017-7-23 20:29:02] [netatmo platform] Initializing platform accessory 'Vek's Wetta Outdoor'...

    [2017-7-23 20:29:02] [netatmo platform] Initializing platform accessory 'Vek's Wetta Oben'...

    [2017-7-23 20:29:02] [netatmo platform] Initializing platform accessory 'Zu Hause'...

    Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ??????????????

    ? 031-45-154 ?

    ??????????????

    events.js:182

    throw er; // Unhandled 'error' event

    ^


    Error: listen EADDRINUSE :::51826

    at Object.exports._errnoException (util.js:1024:11)

    at exports._exceptionWithHostPort (util.js:1047:20)

    at Server.setupListenHandle [as _listen2] (net.js:1319:14)

    at listenInCluster (net.js:1367:12)

    at Server.listen (net.js:1467:7)

    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:486: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)