Closed MFuell2 closed 2 years ago
Let me check this. But I'm sure that the status will not be rested after changing from color to color temp.
I have this issue as well I believe.
Comparing it to another bulb I have (TP-Link Kasa bulb), the behavior there is:
In other words, between the color and temperature picker, the last one you interacted with will be what displays when you open the dialog back up. This aligns with what behavior I would expect as well.
However, with the Wiz bulb, I had touched the color picker at one point and now it doesn't matter what I interacted with last, it always shows the color picker when I open up the light dialog window.
Also if I do choose a color and then change the temperature, the color picker still shows the previous color as selected and the bulb icon is that color as well.
These issues also apply to light groups, including ones with non-Wiz bulbs.
@sbidy Also want to say thanks for your work on this project!
I'm having the same issue. I think it has to do with the "color_mode" state attribute. Notice in MFuell2's screenshots, the color mode starts as "color_temp" and changes to "hs" when the color is changed. This is correct so far. The problem is, when the light is changed back to white via the temperature slider, the color_mode stays as "hs." Instead, color_mode should change back to "color_temp." I believe this is what drives the UI behavior.
I've done the same test on my Kasa bulb for comparison, and the color_mode correctly changes back and forth whereas the wiz bulb gets stuck in "hs" and never changes back.
Should be fixed in 0.4.5
Tested and looks like it's working now. Great work!
This can be closed as its confirmed fixed in the core version
Loving this so far!! (using ~18 RGB + tunable white bulbs) Setting the bulb to say, green will change the bulb to green, and then using the white slider will change the bulb to a given white temp, but the icon stays green, and the color mode of the bulb stays
hs
instead of changing back tocolor_temp
.The bulb correctly updates to the new colors and to the temps, at least to my eye, and the Wiz app shows that it is a white temperature, however the color wheel/white slider menu does not behave as it should.
Steps to replicate:
Changing the bulbs to a white, and then restarting HASS fixes it temporarily until another color is used.
Thanks!!
Also mentioned here, but not directly acknowledged or properly explained: https://github.com/sbidy/wiz_light/issues/145#issuecomment-920214795 https://github.com/sbidy/wiz_light/issues/80#issuecomment-835880109
Starting point: bulb is starting in white mode
Changing to Green:
Changing to Red:
Changing to white:
Clicking off the card, and back onto the card brings the color wheel up: