ebaauw / homebridge-deconz

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

Intermittent TypeError on enabling adaptive lighting on some devices at Homebridge startup. #78

Closed Monofin closed 1 year ago

Monofin commented 1 year ago

Deconz v2.19.1 homebridge-deconz v0.0.23

Am picking up this chain of errors on Homebridge startup, once every few restarts:

[26/10/2022, 15:25:25] [deCONZ] Snug Standard Lamp: adaptive lighting: enabled [26/10/2022, 15:25:25] [deCONZ] Snug Standard Lamp: error: TypeError: Cannot read properties of undefined (reading 'generateControl') at CharacteristicDelegate.getter [as _getter] (/usr/lib/node_modules/homebridge-deconz/lib/DeconzService/Light.js:210:40) at CharacteristicDelegate._onGet (/usr/lib/node_modules/homebridge-deconz/node_modules/homebridge-lib/lib/CharacteristicDelegate.js:354:26) at CharacteristicValueTransitionControl.emit (node:events:513:28) at /usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1592:14 at new Promise () at CharacteristicValueTransitionControl. (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1590:12) at step (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:144:27) at Object.next (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:125:57) at /usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:118:75 at new Promise ()

It doesn't seem to affect functionality much if at all, but makes for a nice set of logs :-)

ebaauw commented 1 year ago

I hope it's fixed in v0.0.25, but it's hard to test for intermittent errors.