From 3ce1d58b7cf8471a32273cfb718390343cff2da9 Mon Sep 17 00:00:00 2001 From: Pierre Eisenbrandt Date: Sat, 13 Dec 2025 14:30:22 +0100 Subject: [PATCH] some refactoring --- Climate/bosch_bth-ra_control_dev.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Climate/bosch_bth-ra_control_dev.yaml b/Climate/bosch_bth-ra_control_dev.yaml index 0cb80db..1697183 100644 --- a/Climate/bosch_bth-ra_control_dev.yaml +++ b/Climate/bosch_bth-ra_control_dev.yaml @@ -139,7 +139,7 @@ variables: {% endfor %} {{ ns.current_temperature }} target_temperature: > - {% if alarm_control_panel is defined and is_state(alarm_control_panel, 'armed_away') %} + {% if alarm_control_panel is not none and alarm_control_panel is defined and is_state(alarm_control_panel, 'armed_away') %} {{ away_temperature }} {% else %} {{ scheduled_temperature | default(away_temperature) }} @@ -206,13 +206,13 @@ actions: - if: - condition: template value_template: > - {{ scheduled_temperature is not none and scheduled_temperature | is_number }} + {{ target_temperature is not none and target_temperature | is_number }} then: - - action: climate.set_temperature + - service: climate.set_temperature target: entity_id: !input trv data: - temperature: "{{ scheduled_temperature | float }}" + temperature: "{{ target_temperature | float }}" alias: Setze Fenster auf geschlossen und setze Solltemperatur auf Wert aus Zeitplan (wenn vorhanden) # temperature sensor sync - choose: @@ -244,7 +244,7 @@ actions: value_template: > {{ target_temperature is not none and target_temperature | is_number }} then: - - action: climate.set_temperature + - service: climate.set_temperature target: entity_id: !input trv data: