ebaauw / homebridge-deconz

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

Friends of Hue button errors in 0.0.18 build #62

Closed ctj99git closed 2 years ago

ctj99git commented 2 years ago

I just installed the 0.0.18 build and got these errors in the console:

[8/8/2022, 9:51:56 AM] [deCONZ] FoH Master Bedroom: error: TypeError: Cannot read properties of undefined (reading 'lastUpdated') at Switch.updateState (/usr/lib/node_modules/homebridge-deconz/lib/DeconzService/Switch.js:62:24) at Switch.update (/usr/lib/node_modules/homebridge-deconz/lib/DeconzService/index.js:93:12) at Sensor.<anonymous> (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/index.js:81:21) at Sensor.emit (node:events:527:28) at Sensor.emit (/usr/lib/node_modules/homebridge-deconz/node_modules/homebridge-lib/lib/Delegate.js:174:13) at Gateway.analyseFullState (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:880:34) at Gateway.poll (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:733:18) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Gateway.heartbeat (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:276:9) [8/8/2022, 9:51:56 AM] [deCONZ] FoH Ian: error: TypeError: Cannot read properties of undefined (reading 'lastUpdated') at Switch.updateState (/usr/lib/node_modules/homebridge-deconz/lib/DeconzService/Switch.js:62:24) at Switch.update (/usr/lib/node_modules/homebridge-deconz/lib/DeconzService/index.js:93:12) at Sensor.<anonymous> (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/index.js:81:21) at Sensor.emit (node:events:527:28) at Sensor.emit (/usr/lib/node_modules/homebridge-deconz/node_modules/homebridge-lib/lib/Delegate.js:174:13) at Gateway.analyseFullState (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:880:34) at Gateway.poll (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:733:18) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Gateway.heartbeat (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:276:9) [8/8/2022, 9:51:56 AM] [deCONZ] FoH Eli and Ki: error: TypeError: Cannot read properties of undefined (reading 'lastUpdated') at Switch.updateState (/usr/lib/node_modules/homebridge-deconz/lib/DeconzService/Switch.js:62:24) at Switch.update (/usr/lib/node_modules/homebridge-deconz/lib/DeconzService/index.js:93:12) at Sensor.<anonymous> (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/index.js:81:21) at Sensor.emit (node:events:527:28) at Sensor.emit (/usr/lib/node_modules/homebridge-deconz/node_modules/homebridge-lib/lib/Delegate.js:174:13) at Gateway.analyseFullState (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:880:34) at Gateway.poll (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:733:18) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Gateway.heartbeat (/usr/lib/node_modules/homebridge-deconz/lib/DeconzAccessory/Gateway.js:276:9)

I rolled back to 0.0.17 and those errors went away. I don't know any more than that, but I can try to give you any other info you need. Thanks for all of your work on this.

ebaauw commented 2 years ago

Yeah, just noticed this bug myself. It was introduced with the support for the Hue tap dial switch and fixed in https://github.com/ebaauw/homebridge-deconz/commit/bf997469c3d1d84bdff77e3768b44b0df3788bf8. I’ll see if I can publish a new version tonight or tomorrow.

ebaauw commented 2 years ago

v0.0.19.

ctj99git commented 2 years ago

v0.0.19.

Confirmed goodness. Thanks!