Dumb to Smart Doorbell

I am struggling with the electronics of this hook up could someone shed some light – I have everything else ready to go except for detecting the current. Even if I have to run another wire to the box and intercept the switch first NP.

But I am lost…

  • Hoping to use ACS712 (amazon.ca)
  • Wife wont approve the reed mag sensor
  • I dont have zwave, so dry contact is out. and they burn out.
  • Dont want to replace switch, buzzer, box etc.

I am able…

  • to fish wire
  • handle all automation after the fact
  • use interfacing like esphome/konnected/tasmota/mqtt/etc

Attached pictures

It isn’t particularly clear what you want to do. I assume you want a sensor in home assistant that activates when someone rings the doorbell?

The current measuring device at amazon says (in the reviews) that it handles AC - tick.

It should be able to be connected to an esp8266 or esp32 - so you can use esphome - tick.

I would just wire it in series anywhere.

I would use a bridge rectifier to get a DC voltage from the incoming 16Vac and then use one of these (you can get them on AliExpress etc as well) step-down regulators to create 5Vdc to run a Wemos D1 mini or similar and code it with ESPhome. Use the current sensor you linked as an input to the Wemos.

You are right I dont really say what the problem is but more or less it wasn’t working.the ACS712 required alot of tweaking and still is not exact.

I ended up using and esp8266 with a seperate 5v USB. It has VIN and GND which are the 5V out rails that pull directly from usb.

So with no load it was floating around 0.71V to 0.73V. In esphome I offset the value by 0.722, that way I got values around 0 but never under. I plugged in the ACS712 just like in the picture above (except remove multimeter). Then I set up an automation for when the value of the sensor drops below 0 to trigger the camera snapshot and notify my android.I’m guessing the voltage drops and the sensor sees this. I changed the polling to 60ms (to theoretically match 60Hz, and removed the sensor from recorder and history.

All works well!!!

Only thing that doesn’t work is <1ms rings on the bell but most people ring longer than that so I think that creating a problem that isn’t there.

ESPHOME Code:

esphome:
  name: nodemcu_doorbellmonitor
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: "BELL830"
  password: --
    
  manual_ip:
    static_ip: 192.168.1.208
    gateway: 192.168.1.1
    subnet: 255.255.255.0

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: --

ota:
  password: --
sensor:  
  - platform: adc
    pin: A0
    name: "Doorbell"
    update_interval: 60ms
    filters:
      - offset: -0.722
    on_value_range:
      below: 0
      then:
        #do something here

HASS Automation:

- id: '1564506607332'
  alias: Notify_Doorbell
  trigger:
  - below: '0'
    entity_id: sensor.living_room_brightness
    platform: numeric_state
  condition: []
  action:
  - alias: ''
    data:
      entity_id: camera.front_door_camera
      filename: /config/www/tmp/fdc.jpg
    service: camera.snapshot
  - delay: 00:00:01
  - data_template:
      data:
        image: https://hass.domain.com/local/tmp/fdc.jpg?{{now().second}}
      message: Door Bell!
    service: notify.vapidnotify_mikesa8
  - data: {}
    service: media_player.media_pause
1 Like

I’d like to see someone press the doorbell for less than 1ms.

I was thinking about this and another way to interface with a higher voltage device is an optocoupler. There are plenty of sites on the net will explain that if you are unfamiliar.

Anyway, you have it working, good to hear.