Hallo, meine homebridge ist auf einem Raspberry Pi 4B eingerichtet. Sie läuft mit dem homebridge-config-ui-x plugin einwandfrei. Sobald das homebridge-alexa plugin installiert ist, stoppt die bridge mit einem SyntaxError. Hier das Fehlerprotokoll:
Dec 04 17:36:46 raspberrypi systemd[1]: Started Node.js HomeKit Server.
Dec 04 17:36:47 raspberrypi homebridge[2537]: [12/4/2019, 17:36:47] Loaded config.json with 0 accessories and 2 platforms.
Dec 04 17:36:47 raspberrypi homebridge[2537]: [12/4/2019, 17:36:47] ---
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] Loaded plugin: homebridge-alexa
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] Registering platform 'homebridge-alexa.Alexa'
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] ---
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] Loaded plugin: homebridge-config-ui-x
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] Registering platform 'homebridge-config-ui-x.config'
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] ---
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] Loading 2 platforms...
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] [Config] Initializing config platform...
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] [Config] Spawning homebridge-config-ui-x with PID 2557
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] [Alexa] Initializing Alexa platform...
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] [Alexa] homebridge-alexa v0.4.43, node v12.13.1, homebridge v0.4.50
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] Loading 0 accessories...
Dec 04 17:36:48 raspberrypi homebridge[2537]: Setup Payload:
Dec 04 17:36:48 raspberrypi homebridge[2537]: X-HM://0023ISYWYEONN
Dec 04 17:36:48 raspberrypi homebridge[2537]: Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
...
Dec 04 17:36:48 raspberrypi homebridge[2537]: Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
Dec 04 17:36:48 raspberrypi homebridge[2537]:
Dec 04 17:36:48 raspberrypi homebridge[2537]: ┌────────────┐
Dec 04 17:36:48 raspberrypi homebridge[2537]: │ 031-45-154 │
Dec 04 17:36:48 raspberrypi homebridge[2537]: └────────────┘
Dec 04 17:36:48 raspberrypi homebridge[2537]:
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] Homebridge is running on port 51826.
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] SyntaxError: Unexpected end of JSON input
Dec 04 17:36:48 raspberrypi homebridge[2537]: at JSON.parse (<anonymous>)
Dec 04 17:36:48 raspberrypi homebridge[2537]: at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-alexa/node_modules/hap-node-client/HAPNodeJSClient.js:445:26)
Dec 04 17:36:48 raspberrypi homebridge[2537]: at Request._callback (/usr/local/lib/node_modules/homebridge-alexa/node_modules/lodash/lodash.js:10050:25)
Dec 04 17:36:48 raspberrypi homebridge[2537]: at Request.requestRetryReply [as reply] (/usr/local/lib/node_modules/homebridge-alexa/node_modules/requestretry/index.js:105:19)
Dec 04 17:36:48 raspberrypi homebridge[2537]: at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-alexa/node_modules/requestretry/index.js:138:10)
Dec 04 17:36:48 raspberrypi homebridge[2537]: at Request.self.callback (/usr/local/lib/node_modules/homebridge-alexa/node_modules/request/request.js:185:22)
Dec 04 17:36:48 raspberrypi homebridge[2537]: at Request.emit (events.js:210:5)
Dec 04 17:36:48 raspberrypi homebridge[2537]: at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-alexa/node_modules/request/request.js:1161:10)
Dec 04 17:36:48 raspberrypi homebridge[2537]: at Request.emit (events.js:210:5)
Dec 04 17:36:48 raspberrypi homebridge[2537]: at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-alexa/node_modules/request/request.js:1083:12)
Dec 04 17:36:48 raspberrypi homebridge[2537]: [12/4/2019, 17:36:48] Got SIGTERM, shutting down Homebridge...
Hier das config.json:
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:40",
"port": 51826,
"pin": "031-45-154"
},
"description": "Home Smart Home",
"platforms": [
{
"platform": "config",
"name": "Config",
"port": 8080,
"auth": "form",
"theme": "red",
"restart": "sudo -n systemctl restart homebridge",
"temp": "/sys/class/thermal/thermal_zone0/temp",
"sudo": true,
"log": {
"method": "custom",
"command": "journalctl -o cat -n 500 -f -u homebridge"
}
},
{
"name": "Alexa",
"username": "xxxxx",
"password": "yyyyy",
"pin": "031-45-154",
"platform": "Alexa"
}
],
"accessories": []
}
Ich komme einfach nicht weiter. Habt ihr eine Idee?