Revert Hue color state to be xy-based#14154
Conversation
|
Funny you should ask...I installed the 0.68 final and then deleted the custom component you created. I noticed that kitchen lights were displaying correctly but living room went back to green for some reason. I checked the hue debug and colormode was actually xy this time. Also noticed that kitchen lights now switched to ct for colormode....I'm a bit baffelled by this so not sure what the issue is anymore. I added back the custom component and both were displaying correctly...I'll try this one shortly and let you know. |
|
How do I test this? I noticed 2 files hue.py and test hue. Which ones do I copy to the custom component folder? |
|
Only hue.py |
|
This one works as well to fix all my groups. The older one also fixed all 3 but I guess it was not merged into 0.68 final? |
|
I'd be fine with this myself. 👍 |
|
I also reported the issue on the hue developer site. I'm no developer but it seems odd that colormode would act so randomly and couldn't find any indication on how the bridge determines this. |
|
All right, I have added those two PRs to the 0.68.1 milestone and that should finally get us back to how things worked before the big hue/sat cleanup. |
|
You have to update to 0.68.1 for this fix, you don't need the separate file in custom components if you have this version. |
|
Yes, thanks, I am on .68 so hope to do so when Hassio comes back... (btw thanks @omrastia, missed your replay before, sorry) Still, my question was wether we need the CC Hue.py or not ? |
|
Remove the hue.py file from custom_components. |
thanks, I have done so, and updated to .68.1 Hue still behaving oddly, disconnecting and connecting randomly, showing the unavailable more than desired... but that's another thread I suppose. xy-related: which is your preferred xy-rgb calculator ? thanks! |
|
Please move the discussion to an issue. |
Description:
Apparently, the colormode of Hue lights cannot be trusted (see #14119). This PR reverts to always use the xy attribute for colors, like we did before the hue/sat conversion.
For reference, the pre-hue/sat implementation is here: https://github.com/home-assistant/home-assistant/blob/0.65.6/homeassistant/components/light/hue.py#L250-L255
Related issue (if applicable): fixes #14119
Checklist:
tox.