My problem is: The fan is switched on but not switched of. Also I need to implement that if the motion is triggered again during the time the Fan is on, the fan stops and the automation timer is starting again. Any suggestions what to do?
There might be someone who can advise on why the wait_template isn’t working, but for what it’s worth in a couple of automations, I use “delay” instead. Haven’t had any problems so far.
Ah ok. I used the Frontend to put the automation together. And “Wait” made more sense. I think it was just a language thing here thanks a lot. Will try to edit it in yaml and replace “waiting_template” with “delay”
Just create another automation that turns the fan off if there is motion.
You might need to change the “mode:” of the original automation from “single” tho.
I’ve rarely used any of the different modes but I think the mode needs to be “restart” in case the motion starts and then stops within the 2 minute delay period.