Smartifying Doorbell Configuration

Hi all,
I recently got an idea for a small project to smartify my dumb apartment doorbell (which I can’t replace).
My doorbell has a LED in the front, which starts to blink as soon as someone rings the bell and continues blinking until you pick up the handset or open the door via the button.

My idea now is to wire an ESP parallel to the LED so I can read if the LED is blinking. This should be achievable via a GPIO Binary input if I’m correct. The only problem I got is how to ignore the blinking of the LED, meaning I don’t want the state to flap ON/OFF constantly, as I would like to set up a push notification on my phone.

Does debouncing work in this scenario?

Yes, you can use a delayed_off on the binary sensor longer than the blink interval.