only set scheduled temperatur if available

This commit is contained in:
2025-12-07 17:51:05 +01:00
parent bdefd74801
commit c3daab46cb

View File

@@ -159,11 +159,16 @@ actions:
- service: switch.turn_off
target:
entity_id: "{{ window_detection_entity }}"
- action: climate.set_temperature
target:
entity_id: !input trv
data:
temperature: "{{ scheduled_temperature | float }}"
- if:
- condition: template
value_template: >
{{ scheduled_temperature is not none }}
then:
- action: climate.set_temperature
target:
entity_id: !input trv
data:
temperature: "{{ scheduled_temperature | float }}"
alias: Setze Fenster auf geschlossen
# temperature sensor sync
- choose: