1) Give a description of the problem
The lights are not turning off
2) What is the expected behaviour?
When motion is sensed the lights turn on and dim to a set level based on time. Then after 10 minutes of no motion, they turn off
3) What is happening/not happening?
The lights come on but don’t turn off
4) Post a Green Snapshot of the piston
(UPLOAD YOUR IMAGE HERE)
Hi there,
It’s not turning OFF because your TCP (task cancellation Policy) is not set to NEVER… (Line 32)
and your trigger IF CHANGES TO INACTIVE is only TRUE for 2 seconds. Once it’s no longer true the piston stops and never sees WAIT.
you can read this for TCP
And in your case I would recommend not using WAIT but instead do this,
IF motion sensor stays INACTIVE 10 minutes.
Then
Do this do that