k43D/esphome/deurbel.yml
2023-11-26 14:58:19 +01:00

48 lines
792 B
YAML

esphome:
name: deurbelletje
esp8266:
board: d1_mini
# Enable logging
logger:
time:
- platform: homeassistant
id: homeassistant_time
text_sensor:
- platform: version
name: Doorbell ESPHome version
sensor:
- platform: uptime
name: Doorbell Uptime
# Enable Home Assistant API
api:
password: "ncc1701D"
ota:
password: "ncc1701D"
wifi:
ssid: "BARTANIET"
password: "ncc1701D"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Deurbel Fallback Hotspot"
password: "jeXv60iAylaV"
captive_portal:
binary_sensor:
- platform: gpio
pin:
number: D4
mode: INPUT_PULLUP
inverted: true
filters:
- delayed_off: 3000ms # prevents from re-ringing within 3 seconds
name: "deurbelsignaal"