A simple schematic to detect a doorbell signal, with esphome (esp8266) based software to send the doorbell status to homeassistant.