From 4a693a9b687e668b8869635f166c1eb9a0618884 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Fri, 27 Mar 2026 21:20:45 +0000 Subject: [PATCH] [FIX] color_temp attribute removed - use color_temp_kelvin --- ...A-Z2M_control-light-with-double-press.yaml | 32 +++++++++---------- ...743-E2201-E2213_ZHA-Z2M_control-light.yaml | 26 +++++++-------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/ikea_E1743-E2201-E2213_ZHA-Z2M_control-light-with-double-press.yaml b/ikea_E1743-E2201-E2213_ZHA-Z2M_control-light-with-double-press.yaml index b5ba1fd..e33f440 100644 --- a/ikea_E1743-E2201-E2213_ZHA-Z2M_control-light-with-double-press.yaml +++ b/ikea_E1743-E2201-E2213_ZHA-Z2M_control-light-with-double-press.yaml @@ -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 diff --git a/ikea_E1743-E2201-E2213_ZHA-Z2M_control-light.yaml b/ikea_E1743-E2201-E2213_ZHA-Z2M_control-light.yaml index c145d97..c17688e 100644 --- a/ikea_E1743-E2201-E2213_ZHA-Z2M_control-light.yaml +++ b/ikea_E1743-E2201-E2213_ZHA-Z2M_control-light.yaml @@ -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