It all started with the question “How to determine someone pressed the doorbell?”.
My main requirements was that I did not want to mess with the existing setup or be dependant on extra components. I have seen several solutions, but sofar none of them met this requirement.
Once the doorbell-button is pressed, the “signal” is send to the Wemos. The Wemos is connected to MQTT via the local Wi-Fi. Home Assistant picks up the signal from MQTT. From there it’s up to your imagination what you want to do with the input. For now I send a message to a Slack-bot to notify me.
This presentation describes how I created the first version of my smart doorbell.
The 1.2 version:
The setup for this version was inspired by an article in the German c’t magazine (2017/17). In the German magazine an optocoupler is used to separate the doorbell from a Raspberry Pi.