Hi,
I’m working on trying to connect my doorbell up to Home Assistant using a wireless doorbell I bought from Amazon and following this guide but cannot get the ESP8266 to read the state of the LED in the chime when it is flashing. I have tried the + and the - side of the LED and so far nothing. When I measure the voltage on the LED when flashing i’m getting roughly 1.8v max; and am beginning to think that is too low for the ESP to register as an input. Is there anything I can do?
-Cheers,
doorbell_receiver.yaml
esphome:
name: doorbell_sensor
platform: ESP8266
board: nodemcuv2
wifi:
ssid: !secret wifi_network
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Doorbell Sensor Fallback Hotspot"
password: !secret api_password
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: !secret api_password
ota:
password: !secret api_password
binary_sensor:
- platform: gpio
name: "Doorbell"
pin:
number: D0
inverted: true
mode: INPUT_PULLDOWN_16
# mode: input_pullup
filters:
- delayed_off: 10ms
switch:
- platform: gpio
pin: D1
name: "Doorbell Chime"
Pin D0 on the esp8266 goes to the + pad on the LED. Pin D1 goes to a 2N222 transistor in-line with the speaker to control the chime. The LEDS blink when the doorbells are pressed.