FHEM Forum

FHEM - Hausautomations-Systeme => Unterstützende Dienste => Thema gestartet von: sepperl4711 am 23 November 2016, 11:39:52

Titel: homebridge Einrichtung
Beitrag von: sepperl4711 am 23 November 2016, 11:39:52
Hallo, bekomme bei einrichten der Homebridge Schnittstelle eine Fehlermeldung beim starten von 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-compat?s=libdns_sd&e=node&f=DNSServiceRegister>

/usr/local/lib/node_modules/homebridge-fhem/index.js:53
    for( var subscription of FHEM_subscriptions[inform_id] ) {
                          ^^
[Wed Nov 23 2016 11:34:22 GMT+0100 (CET)] ====================
[Wed Nov 23 2016 11:34:22 GMT+0100 (CET)] ERROR LOADING PLUGIN homebridge-fhem:
[Wed Nov 23 2016 11:34:22 GMT+0100 (CET)] SyntaxError: Unexpected identifier
    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 Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:65:22)
    at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:112:14)
    at Array.forEach (native)
    at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:108:22)
[Wed Nov 23 2016 11:34:22 GMT+0100 (CET)] ====================
[Wed Nov 23 2016 11:34:22 GMT+0100 (CET)] No plugins found. See the README for information on installing plugins.
[Wed Nov 23 2016 11:34:22 GMT+0100 (CET)] Loaded config.json with 0 accessories and 1 platforms.
[Wed Nov 23 2016 11:34:22 GMT+0100 (CET)] ---
[Wed Nov 23 2016 11:34:22 GMT+0100 (CET)] Loading 1 platforms...
Error: The requested platform 'FHEM' was not registered by any plugin.
    at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:106:13)
    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:265:45)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:71:36)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    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)
    at Function.Module.runMain (module.js:497:10)

als Node verwende ich Version 0.10.28
ppm verwendet ich in Version 1.4.9
Bin nach der Anleitung im Wiki vorgegangen.
hier noch die angepasste json Datei
{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "123-45-678"
    },

    "platforms": [
        {
            "platform": "FHEM",
            "name": "FHEM",
            "server": "127.0.0.1",
            "port": "8083",
            "filter": "room=Homekit"
        }
     ],

    "accessories": []
}

und das ist die Version von Chen
Latest Revision: 12625

File              Rev   Last Change

fhem.pl           12596 2016-11-17 16:27:57Z rudolfkoenig
90_at.pm          12028 2016-08-21 12:08:28Z rudolfkoenig
98_autocreate.pm  11984 2016-08-19 12:47:50Z rudolfkoenig
00_CUL.pm         12027 2016-08-21 12:05:23Z rudolfkoenig
10_CUL_HM.pm      12603 2016-11-19 19:51:04Z martinp876
98_dummy.pm       12596 2016-11-17 16:27:57Z rudolfkoenig
91_eventTypes.pm  11984 2016-08-19 12:47:50Z rudolfkoenig
01_FHEMWEB.pm     12613 2016-11-21 10:40:20Z rudolfkoenig
92_FileLog.pm     12378 2016-10-18 19:45:22Z rudolfkoenig
98_HMinfo.pm      12552 2016-11-12 19:20:48Z martinp876
91_notify.pm      11984 2016-08-19 12:47:50Z rudolfkoenig
99_SUNRISE_EL.pm  12485 2016-11-01 15:18:51Z rudolfkoenig
00_TCM.pm         12434 2016-10-26 11:10:15Z klaus-schauer
99_Utils.pm       11984 2016-08-19 12:47:50Z rudolfkoenig
98_version.pm     11987 2016-08-19 17:13:41Z markusbloch

Blocking.pm       12521 2016-11-07 14:29:48Z rudolfkoenig
DevIo.pm          12515 2016-11-06 18:22:36Z rudolfkoenig
HMConfig.pm       12561 2016-11-13 13:19:21Z martinp876
HttpUtils.pm      12174 2016-09-19 05:53:59Z rudolfkoenig
RTypes.pm         10476 2016-01-12 21:03:33Z borisneubert
SetExtensions.pm  11513 2016-05-24 17:56:05Z rudolfkoenig
TcpServerUtils.pm 11908 2016-08-06 15:09:55Z rudolfkoenig
Titel: Antw:homebridge Einrichtung
Beitrag von: sepperl4711 am 23 November 2016, 14:04:16
Achso ... ich verwende ein Raspberry PI ... nur für den Fall das auch das von Interesse wäre
Titel: Antw:homebridge Einrichtung
Beitrag von: DeeSPe am 23 November 2016, 14:13:45
Ich glaube Deine Node Version ist zu alt!
Du brauchst (soweit ich mich richtig erinnere) mindestens 0.12.....

Am leichtesten geht die Installation so:
cd ~ && wget http://node-arm.herokuapp.com/node_latest_armhf.deb && sudo dpkg -i node_latest_armhf.deb

Gruß
Dan
Titel: Antw:homebridge Einrichtung
Beitrag von: Heinzmann am 10 März 2017, 22:59:09
Hallo!

Ich hänge mich hier mal ran, weil ich ebenso Probleme bei der Installation habe. Installiert habe ich es nach der FHEM-Wiki-Anleitung.
Folgende Meldung bekomme ich beim Satrt von Homebridge.

Kann damit jemand etwas anfangen und mir einen Tipp geben?

Vielen Dank!

pi@raspberrypi:~ $ homebridge
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
    ^

Error: Module did not self-register.
    at Error (native)
    at Object.Module._extensions..node (module.js:460:18)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
pi@raspberrypi:~ $