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.
wait_for_trigger:
- platform: template
value_template: '{{ is_state(''group.alle_vinduer'', ''off'') }}'
continue_on_timeout: false