Hello,
I have a little problem with my climate automation. Basically, if an open window is detected, it should turn the heater off and then wait for the window to be closed again before turning the heater on again.
It works fine until the “wait for trigger” action. Even when the window is closed again, it doesn’t trigger. What do I have to put into the entity_id?
- id: '1636659488289'
alias: Tado Fenster offen
trigger:
- platform: state
entity_id:
- binary_sensor.badezimmer_open_window
- binary_sensor.buro_open_window
- binary_sensor.flur_open_window
- binary_sensor.kuche_open_window
- binary_sensor.zimmer_1_open_window
- binary_sensor.zimmer_2_open_window
from: 'off'
to: 'on'
action:
- service: climate.set_hvac_mode
target:
entity_id: climate.{{trigger.to_state.entity_id|replace('_open_window','')|replace('binary_sensor.','')}}
data:
hvac_mode: 'off'
- wait_for_trigger:
- platform: state
entity_id: trigger.entity_id
from: "on"
to: "off"
- service: climate.set_hvac_mode
target:
entity_id: climate.{{trigger.to_state_entity_id|replace('_open_window','')|replace('binary_sensor.','')}}
data:
hvac_mode: 'auto'
mode: parallel