Node-red event-state delay?

Hello everyone,

I have a pre-wired door sensor that every so often decide to have a 0ms open/close scenario. Given this is tied into automation it’s a little problematic.

I’m using the event-state node; is it possible in this node to have some kind of delay imposed? IE if under 100ms ignore the state change?

You can throw a delay node right after your event node and have it throttle traffic that way.

Adding a delay I would then also need to add a re-check of the state I guess would then look like this:

event-state > delay (100ms) > current-state > rest of flow