[FIX] color_temp attribute renamed to color_temp_kelvin

This commit is contained in:
2026-03-27 21:04:19 +00:00
parent a22282ee43
commit b52f10d410
2 changed files with 5 additions and 5 deletions
@@ -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
@@ -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