move section variables above triggers

This commit is contained in:
2025-12-07 11:20:03 +01:00
parent d9738bec8f
commit 5da0623b72

View File

@@ -13,7 +13,7 @@ blueprint:
description: Konfiguration für den Bosch BTH-RA Radiator description: Konfiguration für den Bosch BTH-RA Radiator
collapsed: false collapsed: false
input: input:
radiator_entity: trv:
name: Thermostat name: Thermostat
description: Thermostat muss ein Bosch BTH-RA sein description: Thermostat muss ein Bosch BTH-RA sein
selector: selector:
@@ -81,31 +81,8 @@ blueprint:
filter: filter:
- domain: switch - 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: variables:
trv: !input radiator_entity trv: !input trv
radiator_schedules: !input radiator_schedules radiator_schedules: !input radiator_schedules
temperature_sensor: !input temperature_sensor temperature_sensor: !input temperature_sensor
remote_temperature_entity: > remote_temperature_entity: >
@@ -143,6 +120,29 @@ variables:
{% endfor %} {% endfor %}
{{ ns.current_temperature }} {{ 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: actions:
- choose: - choose:
- conditions: - conditions: