-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Fixed Tradfri whitebulbs handling after #9703 #10040
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
Conversation
if self._light_control.can_set_kelvin: | ||
kelvin_color = self._light_data.kelvin_color_inferred | ||
if kelvin_color is not None: | ||
return color_util.color_temperature_kelvin_to_mired(kelvin_color) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (81 > 79 characters)
Unit tested in my environment and it works. Before this fix, I'm unable to control my TRADFRI bulb E27 W opal 1000lm bulbs properly and also, the computer load was unusually high. |
Why is this required if we're not setting |
It seems that UI is deciding wheter to treat bulb as supporting temperature basing on |
We should not work around bugs in our UI, instead we should open PRs against the UI and fix it 👍 |
Can you point me to code responsible for when temperature slider is shown? Just a rough direction would be appreciated (-: |
@balloob I agree, but just after #9703 has been merged @ggravlingen noticed regression with white lights. We have now some options:
Isn't second option better for users? |
Am I right that I should look at https://github.com/home-assistant/home-assistant-polymer/blob/master/src/more-infos/more-info-light.html ? |
Idea: not hardcode values, but convert min and max mireds here: |
@matemaciek this might be a good place to start: |
After the latest commit, this is what I'm seeing in the UI for white bulbs
@matemaciek has the same bulb, which also returns color temp as a state. Odd behaviour! Could it be different versions of the white bulb? |
I've removed workaround for UI misbehaviour experienced in my installation, maybe it can be merged now? |
No description provided.