Skip to content

Conversation

@xmanu
Copy link
Contributor

@xmanu xmanu commented May 4, 2021

Hello,
this pull request should hopefully fix issue #51.

While testing I found out, that setting the brightness to 1% resulted in the value jumping to 10% in some cases (when reading the value back from the bulb).

So I looked at the code and found the special handling of fitting the range to 10..100 while setting the brightness. While reading this was not "reversed" so I added that. This seems consistent with the Wiz App.

Please consider merging this request as this should fix some value inconsistencies in the Home App.

Best,
Manuel

Unhandled error thrown inside write handler for characteristic: Cannot read property 'state' of undefined.
@kpsuperplane kpsuperplane merged commit 366b41e into kpsuperplane:master Aug 10, 2021
@kpsuperplane
Copy link
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants