Forwarding door chime

Hey guys.

I’m living in an apartment and would like to use hass with my intercom.

My idea is to grap die pulse from my door chime to trigger a automation in hass.

I was looking for a sensor but didn’t find any suitable sensors.

Thanks.

Maybe somebody knows how i could realize.