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.
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