Hi guten Abend,
habe ein richtig doofes Problem ich möchte meine Hue-Bridge in die laufende Konfiguration einbinden, wenn ich den Part einbinde erhalte ich beim Start eine Fehlermeldung. Was mache ich denn falsch ?
Der Onlinevalidator wirft für mich mehr Fragen auf als Antworten. Würde mich sehr freuen wenn sich das mal jemand anschauen könnte und den Code berichtigen könnte :
Fehlermeldung:
Nov 29 20:26:59 raspberrypi systemd[1]: Started Node.js HomeKit Server.
Nov 29 20:27:00 raspberrypi systemd[1]: Stopping Node.js HomeKit Server...
Nov 29 20:27:00 raspberrypi systemd[1]: homebridge.service: Main process exited, code=killed, status=15/TERM
Nov 29 20:27:00 raspberrypi systemd[1]: homebridge.service: Succeeded.
Nov 29 20:27:00 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.
Nov 29 20:27:00 raspberrypi systemd[1]: homebridge.service: Found left-over process 10692 (sh) in control group while starting unit. Ignoring.
Nov 29 20:27:00 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Nov 29 20:27:00 raspberrypi systemd[1]: homebridge.service: Found left-over process 10693 (node) in control group while starting unit. Ignoring.
Nov 29 20:27:00 raspberrypi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Nov 29 20:27:00 raspberrypi systemd[1]: Started Node.js HomeKit Server.
Nov 29 20:27:01 raspberrypi homebridge[10707]: [11/29/2019, 8:27:01 PM] There was a problem reading your config.json file.
Nov 29 20:27:01 raspberrypi homebridge[10707]: [11/29/2019, 8:27:01 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com
Nov 29 20:27:01 raspberrypi homebridge[10707]: [11/29/2019, 8:27:01 PM]
Nov 29 20:27:01 raspberrypi homebridge[10707]: /usr/local/lib/node_modules/homebridge/lib/server.js:218
Nov 29 20:27:01 raspberrypi homebridge[10707]: throw err;
Nov 29 20:27:01 raspberrypi homebridge[10707]: ^
Nov 29 20:27:01 raspberrypi homebridge[10707]: SyntaxError: Unexpected token ] in JSON at position 2994
Nov 29 20:27:01 raspberrypi homebridge[10707]: at JSON.parse (<anonymous>)
Nov 29 20:27:01 raspberrypi homebridge[10707]: at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:212:19)
Nov 29 20:27:01 raspberrypi homebridge[10707]: at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:56:38)
Nov 29 20:27:01 raspberrypi homebridge[10707]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:32:16)
Nov 29 20:27:01 raspberrypi homebridge[10707]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
Nov 29 20:27:01 raspberrypi homebridge[10707]: at Module._compile (internal/modules/cjs/loader.js:778:30)
Nov 29 20:27:01 raspberrypi homebridge[10707]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
Nov 29 20:27:01 raspberrypi homebridge[10707]: at Module.load (internal/modules/cjs/loader.js:653:32)
Nov 29 20:27:01 raspberrypi homebridge[10707]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
Nov 29 20:27:01 raspberrypi homebridge[10707]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)
Nov 29 20:27:01 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 20:27:01 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
Meine Konfiguration :
{
"bridge": {
"username": "CD:22:3D:E3:CE:72",
"name": "Homebridge",
"pin": "031-45-676",
"port": 51826
},
"accessories": [
{
"accessory": "RFOutlet",
"name": "Schalter 1",
"type": "Switch",
"manufacturer": "Silvercrest (brennenstuhl)",
"model": "RCR DP3 3711-A",
"serial": "dd4a931513aa",
"rf_on": 1394001,
"rf_off": 1394004,
"pulselength": "355",
"protocol": "4"
},
{
"accessory": "RFOutlet",
"name": "Schalter 2",
"type": "Switch",
"manufacturer": "Silvercrest (brennenstuhl)",
"model": "RCR DP3 3711-A",
"serial": "dd4a931513aa",
"rf_on": 1397073,
"rf_off": 1397076,
"pulselength": "355",
"protocol": "4"
},
{
"accessory": "RFOutlet",
"name": "Schalter 3",
"type": "Switch",
"manufacturer": "Silvercrest (brennenstuhl)",
"model": "RCR DP3 3711-A",
"serial": "dd4a931513aa",
"rf_on": 1397841,
"rf_off": 1397844,
"pulselength": "355",
"protocol": "4"
},
{
"accessory": "RFOutlet",
"name": "Schalter 5",
"type": "Light",
"manufacturer": "Silvercrest (brennenstuhl)",
"model": "RCR DP3 3711-A",
"serial": "dd4a931513aa",
"rf_on": 4539729,
"rf_off": 4539732,
"pulselength": "355",
"protocol": "4"
},
{
"accessory": "YamahaMC",
"name": "Yamaha RX-V865",
"host": "192.168.178.55",
"zone": "main",
"maxvol":161
}
],
"platforms": [{
"platform": "Fritz!Box",
"name": "Fritz!Box",
"url": "http://192.168.178.1",
"username": "User",
"password": "Passwort",
"interval": 60,
"hide": [
"<ain>"
],
"concurent": false,
"options": {
"strictSSL": false
},
{
"platform": "Hue",
"host": "192.168.178.47,
"lights": true,
"hueMotionTemperatureHistory": true,
"users": {
"": ""
},
],