Hallo allerseits!
ich bin neu auf den Gebieten RaspberryPi und Homebridge.
Dank euer aller tollen Fragen und Antworten im Forum hatte ich meine Konfiguration hinbekommen,
so das der RaspberryPi 3 mit Homebridge und FritzBox Plugin läuft.
Als ich gestern versucht habe meinen Xiaomi Vaccum per Plugin dazuzufügen habe ich irgendetwas zerschossen.
Vielleicht kann einer von euch mir helfen?
So sieht die config mit dem Xiaomi aus:
Xxxxxxxxxxxxxxxxxxxxxxxxx
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"accessories": [
{
"accessory": "MiRobotVacuum",
"name": "Vacuum Cleaner",
"ip": "habe ich meine IP",
"token": "314837706f6c4c78673659xxxxx$ (den Token habe ich hoffentlich richtig über iPhone Backup, sql ausgelesen und umgerechnet)
}
]
"platforms": [
{
"platform": "Fritz!Box",
"name": "My FritzBox",
"username": "habe ich meinen Benutzer hinterlegt",
"password": "habe ich mein Passwort hinterlegt",
"url": "http://fritz.box",
"interval": 240,
"hide": [ "<ain>"],
"options": {
"strictSSL": false
}
}
]
}
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Selbst ohne den Vermerk im config jsn funktioniert es irgendwie nicht mehr
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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-12-14 12:36:37] Loaded plugin: homebridge-fritz
[2017-12-14 12:36:37] Registering platform 'homebridge-fritz.Fritz!Box'
[2017-12-14 12:36:37] ---
[2017-12-14 12:36:37] Loaded plugin: homebridge-xiaomi-mi-robot-vacuum
[2017-12-14 12:36:37] Registering accessory 'homebridge-xiaomi-mi-robot-vacuum.MiRobotVacuum'
[2017-12-14 12:36:37] ---
[2017-12-14 12:36:37] There was a problem reading your config.json file.
[2017-12-14 12:36:37] Please try pasting your config.json file here to validate it: http://jsonlint.com
[2017-12-14 12:36:37]
/usr/local/lib/node_modules/homebridge/lib/server.js:207
throw err;
^
SyntaxError: Unexpected token } in JSON at position 329
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)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3m
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
wenn ich den Xiaomi aus der config rauslösche kommt folgender Fehler:
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-12-14 14:10:02] Loaded plugin: homebridge-fritz
[2017-12-14 14:10:02] Registering platform 'homebridge-fritz.Fritz!Box'
[2017-12-14 14:10:02] ---
[2017-12-14 14:10:02] Loaded plugin: homebridge-xiaomi-mi-robot-vacuum
[2017-12-14 14:10:02] Registering accessory 'homebridge-xiaomi-mi-robot-vacuum.MiRobotVacuum'
[2017-12-14 14:10:02] ---
[2017-12-14 14:10:02] There was a problem reading your config.json file.
[2017-12-14 14:10:02] Please try pasting your config.json file here to validate it: http://jsonlint.com
[2017-12-14 14:10:02]
/usr/local/lib/node_modules/homebridge/lib/server.js:207
throw err;
^
SyntaxError: Unexpected string in JSON at position 180
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)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
Xxxxxxxxxxxxx
Es wäre toll wenn ihr mir weiterhelfen könntet!
Viele Grüße Sven