Gh61 / lovelace-hue-like-light-card

This card provides a Hue-like way to control your lights in Home Assistant.
GNU Lesser General Public License v2.1
161 stars 12 forks source link

Color temperature outside of supported range #61

Closed hvddrift closed 1 year ago

hvddrift commented 1 year ago

I have mostly IKEA lights with temperature and brightness control only. However the temperature control seems buggy. When I slide it to cool or warm temp on the circle control it (bounces or flicks) back.

Thought it may have been computer or user error.

But on the HUE lights I have it works perfectly.

Looking at the attributes could this be the issue?

Hue Bulb min_color_temp_kelvin: 2000 max_color_temp_kelvin: 6535 min_mireds: 153 max_mireds: 500

IKEA Bulb min_color_temp_kelvin: 2202 max_colortemp kelvin: 4000 minmireds: 250 max mireds: 454

The 4000 to 6535 range? The circle for temp range is built for hue so when I slide to the bottom for example it says no, you are 2535 Kevin away and snaps back?

PS. Love your card. Changed my whole dashboard.

Gh61 commented 1 year ago

Hi, thank you for reporting. I think it might be the issue you are suggesting.

I assumed, that when I try to set higher temperature, than the light can handle, that it will be automatically corrected to the nearest possible value. I guess I was wrong.

So I will change this behaviour to do this auto-correct myself.

Just to be sure, when you change the temperature only a little bit (so that the value should be inside you light's supported range), does it work as expected?

hvddrift commented 1 year ago

Its hard to explain, but this might help.

in pairs, warmest color at top. chrome_yvzeS5uUxr

and on HUE card chrome_tUyWUgSAbE

And Coolest chrome_l8YrhLR9wb

chrome_URVeqnowGw 171)

If I pull below the red line it snaps back.

Gh61 commented 1 year ago

Oh, I see, thank you for the details.

Gh61 commented 1 year ago

Fixed. Will be part of the next Release.