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

ICP-770 Feature/color changes #1951

Merged

Conversation

workingmonk
Copy link
Contributor

@workingmonk workingmonk commented Apr 28, 2017

@workingmonk
Copy link
Contributor Author

@larsfinander for the hue values, do we want the reported value in 0-360 or in 0-100? i don't remember what was finally agreed upon. this mapping will probably affect the OCF mapping too. the zll ones right now have 360 and zigbee ha has 100.

@larsfinander
Copy link
Contributor

@workingmonk We always report in 100, dove/dealer takes care of converting it to 360 for OCF

@tpmanley tpmanley changed the base branch from master to production April 30, 2017 02:54
The attributes used to report Hue and Saturation can have a value of
0-254. We want to translate this to a percentage of 0-100%. The HA
DTHs were dividing by 255 instead of the correct value of 254. Because
the wrong divisor was used the result would be off by a percent about
25% of the time. The ZLL DTHs had the same bug plus they were also
multipling the Hue by 360 instead of 100.
Previous two commands were being used to set Hue and Saturation. Now
a single command is used and a transition time of 0 so the color changes
must faster.
Previously we were configuring the RGB(W) and Color Temperature bulbs
to report any Hue, Saturation and Color Temperature changes. Now we
manually read these attributes any time a command is executed that
changes them.
@workingmonk workingmonk changed the title Feature/color changes ICP-770 Feature/color changes May 1, 2017
@workingmonk workingmonk merged commit e763dde into SmartThingsCommunity:production May 1, 2017
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.

3 participants