Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'sat') #19

Closed
b2un0 opened this issue Feb 18, 2022 · 2 comments
Closed

Cannot read properties of undefined (reading 'sat') #19

b2un0 opened this issue Feb 18, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@b2un0
Copy link

b2un0 commented Feb 18, 2022

Device LIDL Livarno Lux HG06467 Christmas Stripe

homebridge-deconz v0.0.13

[2/18/2022, 4:32:34 PM] [deCONZ] Eingang Treppe: error: TypeError: Cannot read properties of undefined (reading 'sat')
    at CharacteristicDelegate.<anonymous> (/homebridge/node_modules/homebridge-deconz/lib/DeconzService/Light.js:154:42)
    at CharacteristicDelegate.emit (node:events:520:28)
    at CharacteristicDelegate.emit (/homebridge/node_modules/homebridge-deconz/node_modules/homebridge-lib/lib/Delegate.js:174:13)
    at CharacteristicDelegate._onSet (/homebridge/node_modules/homebridge-deconz/node_modules/homebridge-lib/lib/CharacteristicDelegate.js:441:10)
    at Saturation.emit (node:events:520:28)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1725:16
    at new Promise (<anonymous>)
    at Saturation.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1723:14)
    at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
    at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
@ebaauw ebaauw added the bug Something isn't working label Feb 18, 2022
@ebaauw
Copy link
Owner

ebaauw commented Feb 18, 2022

That's a bug alright.

Also note that I haven't yet added support for setting speed and colours for the special effects.

ebaauw added a commit that referenced this issue Feb 18, 2022
Bug fix: TypeError on colour lights that don't support `xy`, see #19.
@ebaauw
Copy link
Owner

ebaauw commented Mar 13, 2022

In v0.0.14

@ebaauw ebaauw closed this as completed Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants