[FIX] color_temp attribute renamed to color_temp_kelvin
This commit is contained in:
@@ -106,33 +106,33 @@ blueprint:
|
||||
helper_max_temperature:
|
||||
name: Max temperature
|
||||
description: The maximum colour temperature before looping round to the minimum.
|
||||
default: 450
|
||||
default: 4000
|
||||
selector:
|
||||
number:
|
||||
min: 1.0
|
||||
max: 600.0
|
||||
step: 1.0
|
||||
min: 1000
|
||||
max: 5000
|
||||
step: 1
|
||||
mode: slider
|
||||
helper_min_temperature:
|
||||
name: Min temperature
|
||||
description: The minimum colour temperature, set when the maximum has been reached and the temperature is changed.
|
||||
default: 225
|
||||
default: 2225
|
||||
selector:
|
||||
number:
|
||||
min: 1.0
|
||||
max: 600.0
|
||||
step: 1.0
|
||||
min: 1000
|
||||
max: 5000
|
||||
step: 25
|
||||
mode: slider
|
||||
helper_temperature_change_step:
|
||||
name: Temperature change step
|
||||
description:
|
||||
Step value to add to colour temperature for each change.
|
||||
default: 75
|
||||
default: 440
|
||||
selector:
|
||||
number:
|
||||
min: 1.0
|
||||
max: 600.0
|
||||
step: 1.0
|
||||
min: 20
|
||||
max: 5000
|
||||
step: 20
|
||||
mode: slider
|
||||
helper_temperature_transition_time:
|
||||
name: Temperature change transition time
|
||||
@@ -303,7 +303,7 @@ actions:
|
||||
then:
|
||||
- action: light.turn_on
|
||||
data:
|
||||
color_temp: "{% if state_attr(light, 'color_temp')|int >= helper_max_temperature %}{{ helper_min_temperature }}{% else %}{{ state_attr(light, 'color_temp')|int + helper_temperature_change_step }}{% endif %}"
|
||||
color_temp_kelvin: "{% if state_attr(light, 'color_temp_kelvin')|int >= helper_max_temperature %}{{ helper_min_temperature }}{% else %}{{ state_attr(light, 'color_temp_kelvin')|int + helper_temperature_change_step }}{% endif %}"
|
||||
transition: !input helper_temperature_transition_time
|
||||
target:
|
||||
entity_id: !input light
|
||||
|
||||
Reference in New Issue
Block a user