[Bug]: inverse not working with light temperature #63
Labels
bug
Something isn't working
priority high
This should be looked at before issues marked with lower priorities
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)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.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
The text was updated successfully, but these errors were encountered: