From 02a68509091c51d7f1253fd0b02aa4a8c3cfcd1f Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Sun, 26 Nov 2023 14:58:19 +0100 Subject: [PATCH] Deurbel: Naar D4 --- esphome/deurbel.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/esphome/deurbel.yml b/esphome/deurbel.yml index 989656a..71c9b00 100644 --- a/esphome/deurbel.yml +++ b/esphome/deurbel.yml @@ -1,5 +1,5 @@ esphome: - name: deurbel + name: deurbelletje esp8266: board: d1_mini @@ -7,6 +7,17 @@ esp8266: # 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" @@ -27,6 +38,10 @@ captive_portal: binary_sensor: - platform: gpio - pin: D3 + pin: + number: D4 + mode: INPUT_PULLUP + inverted: true + filters: + - delayed_off: 3000ms # prevents from re-ringing within 3 seconds name: "deurbelsignaal" - device_class: opening