My Wait does not work


#1

Here is my piston. The Turn ON, wait 5 minutes, Turn Off is not working. What am I missing?

Here’s the log showing it scheduled for 5 minutes later and then when the motion goes inactive.

I’m thinking because I am using a Trigger instead of condition?


#2

You need to set TCP (Task Cancellation Policy) to Never.
This means the tasks will not cancel. If there is motion again the timer does stop and rstarts when it goes inactive again.
In edit mode, click on the with and then the settings cog at the bottom.
Set TCP to never. Should work as you want it.


#3

Thanks… forgot about that. forgot where that was or how to enable it.


#4

Alternatively if you find this solution to become a nuisance because the light keeps turning off even though you are still moving around 5 minutes later you can set up two if statements.

You have the first already you would just need to take out the wait and turn off commands.

The second would be all the same as the first except now you want the trigger to be changes to inactive. Then you add the wait and turn off commands into that if statement.

Now when there is motion the light turns on. When there has been no motion for the wait time it turns off. But it will cancel the tasks if the motion changes back to active.

Lastly if you decide to go this route, make sure you reset the TCP so that it can cancel these tasks.


#5

you mean like this?


#6

Correct