When attempting to use inverse: true for color temperature of light entity - invalid values calculated and fail to set on entity.
Expected Behavior
Default behaviour for color_temp is min=min_mireds and max=max_mireds (153 -> 500 for this light)
Setting inverse: true should invert and set valid color_temp.
(trying inverse as I would like to show the user an ascending kelvin scale and not mireds)
Alternatively - could add enhancement for setting color_temp_kelvin as kelvin in addition to mireds.
Current Behavior
When attempting to use
inverse: true
for color temperature of light entity - invalid values calculated and fail to set on entity.Expected Behavior
Default behaviour for
color_temp
is min=min_mireds and max=max_mireds (153 -> 500 for this light) Settinginverse: true
should invert and set valid color_temp. (trying inverse as I would like to show the user an ascending kelvin scale and not mireds)Alternatively - could add enhancement for setting
color_temp_kelvin
as kelvin in addition to mireds.Steps To Reproduce
Using this basic config:
Try to slide to either extent of the slider - error message will appear:
Failed to perform the action light/turn_on. value must be at least one for dictionary value @ data['color_temp']
Attributes for this entity:
Environment
Anything else?
No response