I have a weird problem with the homebridge plugin.
The plugin works fine as long as there is no device added in domoticz, but as soon as I add a device, the plugin crashes with:
Code: Select all
Homebridge is running on port 51826.
Could not register platform accessory! (17)
homebridge[627]: Error: homebridge-edomoticz - eDomoticz attempt to register an accessory that isn't PlatformAccessory!
homebridge[627]: /usr/lib/node_modules/homebridge-edomoticz/index.js:183
homebridge[627]: accessory.platformAccessory.context = {device: device, uuid: uuid, eve: this.eve};
homebridge[627]: ^
homebridge[627]: TypeError: Cannot set property 'context' of undefined
homebridge[627]: at Object.<anonymous>(/usr/lib/node_modules/homebridge-edomoticz/index.js:183:45)
homebridge[627]: at Request._callback (/usr/lib/node_modules/homebridge-edomoticz/lib/domoticz.js:87:9)
homebridge[627]: at Request.self.callback (/usr/lib/node_modules/homebridge-edomoticz/node_modules/request/request.js:186:22)
homebridge[627]: at emitTwo (events.js:87:13)
homebridge[627]: at Request.emit (events.js:172:7)
homebridge[627]: at Request.<anonymous> (/usr/lib/node_modules/homebridge-edomoticz/node_modules/request/request.js:1163:10)
homebridge[627]: at emitOne (events.js:77:13)
homebridge[627]: at Request.emit (events.js:169:7)
homebridge[627]: at IncomingMessage.<anonymous> (/usr/lib/node_modules/homebridge-edomoticz/node_modules/request/request.js:1085:12)
homebridge[627]: at IncomingMessage.g (events.js:260:16)
systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Unit homebridge.service entered failed state.
Can anybody tell me what this error means and/or how it gets triggered?
Thank you very much!!