set scheduled temp when closing window

This commit is contained in:
2025-12-07 17:34:06 +01:00
parent 5e15b77f75
commit 2ce92eb995

View File

@@ -140,6 +140,9 @@ actions:
- condition: trigger
id:
- FENSTER_OPEN
- condition: state
entity_id: "{{ window_detection_entity }}"
state: "off"
sequence:
- service: switch.turn_on
target:
@@ -149,10 +152,18 @@ actions:
- condition: trigger
id:
- FENSTER_CLOSED
- condition: state
entity_id: "{{ window_detection_entity }}"
state: "on"
sequence:
- service: switch.turn_off
target:
entity_id: "{{ window_detection_entity }}"
- action: climate.set_temperature
target:
entity_id: !input trv
data:
temperature: "{{ scheduled_temperature | float }}"
alias: Setze Fenster auf geschlossen
# temperature sensor sync
- choose: