Stopping a Timed Rule

I have created a rule where a motion detector looks for inactivity and then waits 30 minutes before turning off a 3D printer. What I can't get to work is if activity is detected during that 30 minutes, the rule stops and starts over again.

That's what I thought I setup with the Stop Actions option, but it does not work. The printer is shutdown regardless of any new activity. I have tried this as a regular rule and a triggered rule - same behavior.

Help!

See the attached screenshot of the rule (its set 1 minute for testing).

You need a Cancel

39%20PM

Truth change is just that... when the Rule goes from true to false or false to true due to an Event. So in your example, When motion occurs WITHIN the 1 min delay, the rule would go false and THAT would cause the 1 min delay to be cancelled. The next time your Rule goes true, the 1 min timer starts again.

AKA.. the OFF occurs 1 min AFTER the last motion has been detected

Be careful though, some Motion sensors recycle only every minute... most allow you to set that above a certain price level.

How are you getting what you have illustrated here? I can't seem to find these options anywhere.

Never mind, found it. Will test...

Don't use Stop, that has a completely different function.

You don't need the False part. On the True part, use Delayed Off with Cancel on Truth Change, instead of Delayed Off.

That way, if the Printer Motion goes active again, your rule becomes false, and that cancels the action for true, which is to turn the printer off. Then, when the motion goes inactive, that will start another 30 minute timer.

1 Like

Right got it. Thanks for the help!