I have an automation with 2 triggers, one of which has below id: temp.
It should only wait in case of that particular trigger and else immediately execute the second action and the rest of the actions sequence. I fear though like this it will simply check if the id triggered, and always continue with the switch.turn_on.
triggers:
- trigger: time
at:
entity_id: input_datetime.alarmclock_wd
offset: -00:30:00
id: time
- trigger: numeric_state
entity_id: sensor.opentherm_dhw_temperature
below: 35
id: temp
[]
actions:
- if:
- condition: trigger
id: temp
then:
- wait_template: >
{{states('sensor.time') > states('input_datetime.alarmclock_wd')}}
# this should fire always, either after the above wait, or, when triggered by the other trigger, directly
- action: switch.turn_on
target:
entity_id: switch.opentherm_dhw_comfort_mode