ebaauw / homebridge-deconz

Homebridge plugin for deCONZ
Apache License 2.0
135 stars 7 forks source link

Error in Homebridge #104

Closed mfw2010 closed 1 year ago

mfw2010 commented 1 year ago

I keep getting this error in HB, don't think it causes any issues but it just colours the logs red...any ideas?

**[03/02/2023, 09:54:54] [deCONZ] Bee: error: SyntaxError: params.computedConsumptionDelegate: missing params.computedConsumptionDelegate at new History (/usr/lib/node_modules/homebridge-deconz/node_modules/homebridge-lib/lib/ServiceDelegate/History.js:425:19) at new Light (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Light.js:88:27) at Gateway.addAccessory (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:612:25) at Gateway.analyseFullState (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:1068:20) at Gateway.poll (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:903:18) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Gateway.heartbeat (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:339:9) **

ebaauw commented 1 year ago

Could you please attach the dump file?

mfw2010 commented 1 year ago

homebridge-hue.json.zip

Attached, thanks

ebaauw commented 1 year ago

That's a dump file by Homebridge Hue, not by Homebridge deCONZ?

ebaauw commented 1 year ago

Luckily it also contains the full system state from deCONZ. The CentraLite3 200-Sgb has a ZHAPower sensor, but no ZHAConsumption. I don't have such device myself, so that branch of code remained untested. Above commit should fix the error. Also note that message is wrong, it should read SyntaxError: params.computedConsumptionDelegate: missing params.powerDelegate at new History.

mfw2010 commented 1 year ago

Thanks, I could not find the download dump option from Deconz settings in Homebridge UI! How do I get this update from homebridge-lib? Will this eventually roll into a Deconz plugin update?

ebaauw commented 1 year ago

It it's just a patch-level update, re-installing Homebridge deCONZ will pickup the latest homebridge-lib version. For minor and major updates, a new version of Homebridge deCONZ will bump the dependency.

mfw2010 commented 1 year ago

Thank you

ebaauw commented 1 year ago

In v0.1.3.

sirinveen commented 1 year ago

For your info I have the same error with a plug in version 0.1.2. Fix with the new release 0.1.3.