feat(doorbell): adjust led pattern when ringing
This commit is contained in:
parent
3844d95619
commit
4259c45947
1 changed files with 16 additions and 6 deletions
|
@ -8,7 +8,6 @@ esp32:
|
||||||
|
|
||||||
# Enable Home Assistant API
|
# Enable Home Assistant API
|
||||||
api:
|
api:
|
||||||
logger:
|
|
||||||
|
|
||||||
ota:
|
ota:
|
||||||
- platform: esphome
|
- platform: esphome
|
||||||
|
@ -28,13 +27,24 @@ binary_sensor:
|
||||||
pulldown: True
|
pulldown: True
|
||||||
filters:
|
filters:
|
||||||
- delayed_on: 10ms
|
- delayed_on: 10ms
|
||||||
- delayed_off: 10ms
|
- delayed_off: 7.75s
|
||||||
on_press:
|
on_press:
|
||||||
then:
|
then:
|
||||||
- output.turn_on: relay_chime
|
- 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:
|
on_release:
|
||||||
then:
|
then:
|
||||||
- output.turn_off: relay_chime
|
- output.turn_off: relay_chime
|
||||||
|
- light.turn_off:
|
||||||
|
id: ring
|
||||||
|
transition_length: 1s
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
|
@ -58,9 +68,9 @@ light:
|
||||||
red: led_red
|
red: led_red
|
||||||
effects:
|
effects:
|
||||||
- pulse:
|
- pulse:
|
||||||
transition_length: 250ms
|
transition_length: 600ms
|
||||||
update_interval: 500ms
|
update_interval: 600ms
|
||||||
min_brightness: 10%
|
min_brightness: 40%
|
||||||
max_brightness: 100%
|
max_brightness: 100%
|
||||||
default_transition_length:
|
default_transition_length:
|
||||||
milliseconds: 100
|
milliseconds: 200
|
||||||
|
|
Loading…
Add table
Reference in a new issue