AC Doorbell mit MQTT message

Hi all, I would like to make my front doorbell smart, which means to send a mqtt message as soon as someone has rung the bell. The doorbell is powered by an AC bell transformer (8-24 V).

I was thinking of an ESP8266/Wemos D1. Is there already a tutorial how I could implement something like that? Can I take the supply voltage from the doorbell including a transformer, or can this also work via batteries (with Deep Sleep?).

Best regards!

Lots of options.

Search results for 'Dumb DOORBELL' - Home Assistant Community