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

transform the received dimming value to also fit the 10 to 100 range #57

Merged
merged 2 commits into from
Aug 10, 2021

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