I have a light that changes color dependent of weather. When the sensor detects motion, I want it to turn off after 3 minutes, since that means I’ve seen the notification. However, if it goes to inactive and back to active within that 3 minutes, the timer resets.
2) What is the expected behaviour?
Light off after 3 minutes from active motion sensor.
3) What is happening/not happening?
Piston restarts timer if motion sensor detects motion again.