Transform dumb doorbell to smart doorbell and connected to HA

Source: KRDesigns.com blogs, Home-Assistant, Sonoff Mini, AlexxIT SonoffLAN

THE DEVICE

SOFTWARE

Why sonoff mini?

The reason why I used sonoff mini because its cheap, it support pulse mode which allow the switch to be call once and set it back to off using inching settings. Sonoff mini combine with AlexIT SonoffLAN add-on gave me an easy access to the the switch without doing much.

How do I do it:

Combine all the hardware using this schematics
pic 1

The Prototype

This is the prototype before installing the entire project pic 2

Home-Assistant Code

- alias: Notification Doorbell activated
  id: xxxx-xxxx-xxxx
  description: Notification doorbell being pushed
  trigger:
    - platform: state
      entity_id: switch.sonoff_xxxxxxxxxxxxx
      to: 'on'
  action:
    - service: tts.google_translate_say
      <etc>
    - service: camera.snapshot
      <etc>
    - service: notify.telegram
      <etc>

The iOS Demo in action

Final touch sending notification to my iOS with text and snapshot from the CCTV.

Closing

I hope you like this project and please feel free to let me know how you do yours. Furthermore special thanks for those people who contribute at Home-Assistant. Great work and Great projects.