Door and Window Sensor - bouncing

Hi there,

I have an Aqara Door and Window Sensor that is working via Zigbee2Mqtt. The sensor itself is working but toggles twice when closing. This is due to the fact that the garage door is physically bouncing. I would like to setup some kind of delay but have no clue how or where.
The sensor is called: binary_sensor.door
I do not have any automation or trigger regarding this sensor.

Maybe this could also be done in Zigbee2mqtt?
I mostly use it in a logbook so maybe filter there?

Thanks for leading the way.

Zigbee2MQTT has a feature called “debouncing” under the settings for the device.