Node Red: Drop new messages during delay

Hey guys,

So I have a motion sensor, in to a light, into a delay for 20 seconds, into off.

Now the problem is the senor can flip quite a bit. Is there a way to drop any new messages while the delay runs out?


Use a trigger node in place of the delay node.

Ahh ok, cool.

Thanks for that.

Im not actually home to test, but something like this?