Node-Red two events within time limit help

Hey all!

So, i’ve decided to start playing around with Node-Red to do some automations but having difficulty with trying to figure out how a specific automation should flow…

What i want to do is have it announce a welcome home message on the first motion event in the living room after I arrive home.
Struggling to find out how to put it together. It’s pretty much:
If person arrives home, on first motion event within 5 mins of arrival welcome person home.

Any ideas?

You can do this using the Interval Length node.

1 Like

Would that not output when multiple motion is detected?

This was just a simple example on how to use the interval length node. But a timeout node between the motion detection node and the interval length should do the trick.