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