Automation concurrency

I’ve got a simple automation where a motion sensor activates a smart plug, to which a pump is connected.

I’m looking for a way to implement: “If motion is detected, run the pump for 5 minutes, but don’t run again until 30 minutes have passed (even if new motion is detected)”

I tried adding a wait action as the last step, but it doesn’t save it. I am also unsure if the automation runs in sequence or concurrent (in which case a wait won’t solve the problem). How do I best implement this case?


hmm, I think I got it working, by turning off the motion sensor, wait 30 minutes, then turn on the motion sensor. That seems to work, as new motions cannot be detected. Will have to test more.