Stop rule running again for x minutes


I have a simple rule that is triggered on motion detection.

If the rule has been triggered in the last 60 minutes i'd like for it to not run again.

I thought of setting it up to use no motion for 60 minutes trigger but that would be invalid as it's the same motion sensor that would trigger the rule.

what would be the easiest way to do this? a boolean (not sure how to do that). any sample someone could provide would be greatly appreciated.

Thank you

The trigger node should be able to do what you want

thank you - how would I do that sorry? add additional conditions?

Did you try it. Maybe set to send original message on first input. Then wait 60 mins, extend if retriggeref, then send nothing.

Show us your flow that you have now and we can add the trigger in there

Can you clarify though - if the Motion is detected within the 60 minutes window - does the window reset and wait for another 60 minutes or does it proceed regardless ?


here's how I have it now:

If no motion for 60 minutes on office motion then if there is motion it should trigger.

Ideally yes if motion is detected in that 60 minute window it should restart the timer.

thank you for your replies

There is a very similar thread to this running on the Node red forum in Home Assistant - might be worthwhile you grabbing the flow from there as it appears to have resolved


i used the wrong trigger node i thought you meant trigger state.

this seems to be working

(10 min as example)

although i think it will send 1 then wait 10mins and send another msg even if there is no additional motion

You may also want to select the extend option for when it gets retriggered part way through

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.