Hallo Leute,
jetzt habe ich mich mal dran gemacht, einen Plugin in Homebridge einzufügen.
Dabei wollte ich mich mit dem Plugin Homebridge-hue ausprobieren.
Ich das ganze also unter config.json eingegeben und wollte das ganze mit Homebridge überprüfen.
Dabei kommt allerdings immer diese Fehlermeldung:
*** 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>
[2018-2-26 20:02:49] Plugin /usr/local/lib/node_modules/homebridge-hue requires Node version of ^8.9.4 which does not satisfy the current Node version of v6.10.0. You may need to upgrade your installation of Node.
[2018-2-26 20:02:51] ====================
[2018-2-26 20:02:51] ERROR LOADING PLUGIN homebridge-hue:
[2018-2-26 20:02:51] /usr/local/lib/node_modules/homebridge-hue/node_modules/homebridge-hue-utils/lib/HueClient.js:49
async isDeconz () {
^^^^^^^^
SyntaxError: Unexpected identifier
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-hue/node_modules/homebridge-hue-utils/index.js:24:14)
at Module._compile (module.js:570:32)
[2018-2-26 20:02:51] ====================
[2018-2-26 20:02:51] No plugins found. See the README for information on installing plugins.
[2018-2-26 20:02:51] There was a problem reading your config.json file.
[2018-2-26 20:02:51] Please try pasting your config.json file here to validate it: http://jsonlint.com
[2018-2-26 20:02:51]
/usr/local/lib/node_modules/homebridge/lib/server.js:207
throw err;
^
SyntaxError: Unexpected token ] in JSON at position 428
at Object.parse (native)
at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:201:19)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:57:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Hier mein config.json:
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"accessories": [
],
"platforms": [
{
"platform": "Hue",
"users": {
"001788FFFExxxxxx": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"001788FFFEyyyyyy": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
},
"lights": true
}
]
}
Vielleicht findet ihr ja den Fehler.
Danke im Voraus!