How to get timer to restart with motion sensor


#1

1) Give a description of the problem
I want a simple timer piston that restarts the time after an event

So I have a piston that sets an alarm/variable. then once it does that it starts a timer. if a motion sensor is not sensed, the timer does something. but if the motion sensor goes off, the timer should restart. right now it’s not.

I know it’s some sort of trick with the Never Cancel or Allow Multiple Schedules… I cannot figure it out


#2

An example piston showing what you have so far would help.

Also more detail would help:

piston sets alarm / variable - what alarm, what variable, what purpose?

Try going back to basics:

If motion sensor is active
THEN
wait 30 seconds
Do something 1
ELSE
DO something 2.

Every time motion occurs the 30 seconds will cancel and ‘something 2’ will trigger. Every time motion ends the 30 seconds will start at the top, of that time elapses without motion then ‘something 1’ will trigger.