[FIX] color_temp attribute removed - use color_temp_kelvin

This commit is contained in:
2026-03-27 21:20:45 +00:00
parent a22282ee43
commit 4a693a9b68
2 changed files with 29 additions and 29 deletions
@@ -105,33 +105,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
@@ -406,7 +406,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
@@ -449,7 +449,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
@@ -476,7 +476,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
@@ -503,7 +503,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
@@ -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