Wait for trigger when group is off

I want my heating to turn on only when all windows are closed,
It work when one(or more) windows are open and I close them.
But dont work if all windows are closed when the automation runs
I can set a timeout , but then my heating will starts when my window is open.

  - platform: template
    value_template: '{{ is_state(''group.alle_vinduer'', ''off'') }}'
continue_on_timeout: false

Triggers in Wait actions are the same as initial Triggers there must be a change to make them fire.

There are a few different methods to get what you are trying to acheive, but the simplest is just to switch to a Wait Template action instead of a Wait for Trigger:

  - wait_template: "{{ is_state('group.alle_vinduer', 'off') }}"
    timeout: "00:01:00"
1 Like