-
Notifications
You must be signed in to change notification settings - Fork 639
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
Lights: properly divide rgb values for hsv conversion #1902
Conversation
77801f4
to
a95a83e
Compare
With color off ch0-2 mqtt reports With color on results are identical. Also tried controlling ch3-4 (white options are off) and they respond in webui and mqtt, but also no actual output from device. |
But that's how it always was? Web shows value and everything else sends out modified value (value*brightness,value_cct). Only useful change would be to drop "value" part of hsv from displayed properties, leaving only hue and saturation, since we already define brightness. As a baseline, using Home Assistant rgb topic via mqtt. I'll play around with hue and saturation there to make more sense of it No idea about the output, does it break because of a95a83e? |
With color on, ok, but it did the same with color off. Should that be happening?
Are the Value and brightness essentially linked? Setting V should change B, but not the other way.
I will check. |
Channel change was part of #1575 & #1826, as you too had noticed in the issue. So the modes are CCT, Color (brightness affects first 3 channels) and No Color (brightness affects all channels) And I tried using basic LED attached to the wemos pins and I did see it changing brightness. Using this branch, no changes otherwise |
Didn't get to testing this today. If brightness affecting channels when color is off is by design then yes, working well. My understanding as well is that HSV and HSB are just different names for the same thing. I will reflash the device when I have a minute at test. If it's working for you I'd say it's fairly safe to merge. By the numbers it was working in my tests as well, so my lack of output may be a different issue. |
@CrazyIvan359 thank you! I also merged this with the #1901 with updated webui |
Awesome! I haven't had a chance to test further yet, I don't have much time during the week for that. I'll wait for you to push changes before I test again. |
See #1905 |
resolves #1864