I have a motion sensor in the bathroom and would like ONE automation to do the following:
If no motion is detected:
turn off the lights after 5min
turn off the fan after 20min
It seems like the delay function I can use in the actions block is a root level element and therefore it gets applied to all actions which are defined? Or is this just a limitation of the UI that it gets rendered this way? But looking at the documentation (https://www.home-assistant.io/docs/scripts/#delay) it also looks like it is a root level elementā¦
So I used for: '00:05:00' in the trigger definitionā¦ Which works fine if I donāt want to define 2 actions with different delays. The delay option in the action blocks seems to have the same restriction as I can only specify one which is applied the all actionsā¦
If possible I would like to keep all actions which are triggered by āno_motionā in one actionā¦
Ah thanks, for whatever reason I didnāt thought about the script just being processed sequentially and therefore I can just add the delays as needed in between the different actions.
So exactly also what @Burningstone said I first didnt get