diff --git a/doorbell.yaml b/doorbell.yaml index ffca423..180bc9e 100644 --- a/doorbell.yaml +++ b/doorbell.yaml @@ -8,6 +8,8 @@ esp32: # Enable Home Assistant API api: +web_server: +logger: ota: - platform: esphome @@ -19,7 +21,7 @@ wifi: binary_sensor: - platform: gpio - id: button + id: bell_button pin: number: GPIO15 mode: @@ -27,7 +29,7 @@ binary_sensor: pulldown: True filters: - delayed_on: 10ms - - delayed_off: 7.75s + - delayed_off: 8s on_press: then: - light.turn_on: @@ -36,16 +38,11 @@ binary_sensor: green: 1 blue: 0.7 effect: pulse - - output.turn_on: relay_chime - - delay: 0.5s - - output.turn_off: relay_chime - - delay: 0.5s - - output.turn_on: relay_chime - - delay: 0.5s - - output.turn_off: relay_chime + - switch.turn_on: relay_chime + - delay: 0.1s + - switch.turn_off: relay_chime on_release: then: - - output.turn_off: relay_chime - light.turn_off: id: ring transition_length: 1s @@ -60,9 +57,12 @@ output: - platform: ledc pin: GPIO16 id: led_blue + +switch: - platform: gpio - pin: GPIO12 + name: Relay Chime id: relay_chime + pin: GPIO12 light: - platform: rgb