Suppress door sensor outputs for 30 seconds

Hi there,
I am quite new to Node Red, so bear with me...

I have a Xiaomi Doorsensor which sends Open: FALSE or TRUE whenever the door is openend or not.
However when somebody quickly opens the door to grab something from the outside it should not trigger. Only if the state change holds longer then lets say 30seconds.

I already set the Output of the node to only fire if the State Changed.

Is there something available or do I have to program this myself?

Thanks in advance

You can use a trigger node like this

If you don't want to receive another closed message - you can add an rbe node to the flow

image

1 Like

Thank you so much! That was exactly what I need, especially the "Send latest msg" part does the trick!