Pause/Sleep flow for a set duration after first trigger

Hi all,

I have a Node Red flow for some lights and animatronics for Halloween that are triggered by a Motion Sensor in my Foyer. It works as is, but I’d like for the first instance of motion to pass the msg on immediately and then any additional motion msgs to be ignored/dropped until a timer expires. That way if someone walks through the foyer several times over the course of 15 minutes or so, the rest of the flow only triggers once. After the 15 minute timer is up, the next instance of motion would trigger the rest of the flow and the process would start over again.

I tried a delay, but that only delays the messages, and doesn’t drop them. A function might work, but I’m not sure how to do that.

Any help would be much appreciated.

Thanks,
Dave

In the delay node, try changing the drop down to “rate limit” and then drop intermediate messages

1 Like

Thank you so much!!! That worked perfect.