feat(doorbell): adjust led pattern when ringing

This commit is contained in:
Mario Lang 2025-04-02 19:29:10 +00:00
parent 3844d95619
commit 4259c45947

View file

@ -8,7 +8,6 @@ esp32:
# Enable Home Assistant API
api:
logger:
ota:
- platform: esphome
@ -28,13 +27,24 @@ binary_sensor:
pulldown: True
filters:
- delayed_on: 10ms
- delayed_off: 10ms
- delayed_off: 7.75s
on_press:
then:
- output.turn_on: relay_chime
- light.turn_on:
id: ring
red: 0
green: 1
blue: 0.7
effect: pulse
- delay: 2s
- output.turn_off: relay_chime
on_release:
then:
- output.turn_off: relay_chime
- light.turn_off:
id: ring
transition_length: 1s
output:
- platform: ledc
@ -58,9 +68,9 @@ light:
red: led_red
effects:
- pulse:
transition_length: 250ms
update_interval: 500ms
min_brightness: 10%
transition_length: 600ms
update_interval: 600ms
min_brightness: 40%
max_brightness: 100%
default_transition_length:
milliseconds: 100
milliseconds: 200