From bdefd748010a10319a61df24be1d3045c246d49c Mon Sep 17 00:00:00 2001 From: Pierre Eisenbrandt Date: Sun, 7 Dec 2025 17:43:27 +0100 Subject: [PATCH] use value template instead of state --- Climate/bosch_bth-ra_control_dev.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Climate/bosch_bth-ra_control_dev.yaml b/Climate/bosch_bth-ra_control_dev.yaml index a7cd2e6..e0bf4c3 100644 --- a/Climate/bosch_bth-ra_control_dev.yaml +++ b/Climate/bosch_bth-ra_control_dev.yaml @@ -140,9 +140,9 @@ actions: - condition: trigger id: - FENSTER_OPEN - - condition: state - entity_id: "{{ window_detection_entity }}" - state: "off" + - condition: template + value_template: > + {{ is_state(window_detection_entity, 'off') }} sequence: - service: switch.turn_on target: @@ -152,9 +152,9 @@ actions: - condition: trigger id: - FENSTER_CLOSED - - condition: state - entity_id: "{{ window_detection_entity }}" - state: "on" + - condition: template + value_template: > + {{ is_state(window_detection_entity, 'on') }} sequence: - service: switch.turn_off target: