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