From 5da0623b72f6d4fb50b71aa3c2186e1a7078a2f6 Mon Sep 17 00:00:00 2001 From: Pierre Eisenbrandt Date: Sun, 7 Dec 2025 11:20:03 +0100 Subject: [PATCH] move section variables above triggers --- Climate/bosch_bth-ra_control_dev.yaml | 50 +++++++++++++-------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/Climate/bosch_bth-ra_control_dev.yaml b/Climate/bosch_bth-ra_control_dev.yaml index f886238..6513e40 100644 --- a/Climate/bosch_bth-ra_control_dev.yaml +++ b/Climate/bosch_bth-ra_control_dev.yaml @@ -13,7 +13,7 @@ blueprint: description: Konfiguration für den Bosch BTH-RA Radiator collapsed: false input: - radiator_entity: + trv: name: Thermostat description: Thermostat muss ein Bosch BTH-RA sein selector: @@ -81,31 +81,8 @@ blueprint: filter: - domain: switch -triggers: - - trigger: state - entity_id: - - !input window_sensor - from: "off" - to: "on" - for: !input window_delay_open - id: FENSTER_OPEN - - trigger: state - entity_id: - - !input window_sensor - from: "on" - to: "off" - for: !input window_delay_close - id: FENSTER_CLOSED - - platform: time_pattern - # Synce Temperatur alle 20 Minuten (Teiler von 60) - minutes: "/20" - id: SYNC_TEMPERATURE - - platform: state - entity_id: !input temperature_sensor - id: TEMP_CHANGED - variables: - trv: !input radiator_entity + trv: !input trv radiator_schedules: !input radiator_schedules temperature_sensor: !input temperature_sensor remote_temperature_entity: > @@ -143,6 +120,29 @@ variables: {% endfor %} {{ ns.current_temperature }} +triggers: + - trigger: state + entity_id: + - !input window_sensor + from: "off" + to: "on" + for: !input window_delay_open + id: FENSTER_OPEN + - trigger: state + entity_id: + - !input window_sensor + from: "on" + to: "off" + for: !input window_delay_close + id: FENSTER_CLOSED + - platform: time_pattern + # Synce Temperatur alle 20 Minuten (Teiler von 60) + minutes: "/20" + id: SYNC_TEMPERATURE + - platform: state + entity_id: "{{ temperature_sensor }}" + id: TEMP_CHANGED + actions: - choose: - conditions: