fix: activate doorbell led on button press
This commit is contained in:
parent
213469defa
commit
b4b5898035
1 changed files with 14 additions and 10 deletions
|
@ -38,16 +38,8 @@ event:
|
|||
- switch.is_on: chime_active
|
||||
then:
|
||||
- switch.turn_on: relay
|
||||
- light.turn_on:
|
||||
id: ring
|
||||
red: 0
|
||||
green: 1
|
||||
blue: 0.7
|
||||
effect: pulse
|
||||
- delay: 0.2s
|
||||
- switch.turn_off: relay
|
||||
- delay: 5s
|
||||
- light.turn_off: ring
|
||||
|
||||
globals:
|
||||
- id: should_ring
|
||||
|
@ -88,6 +80,18 @@ binary_sensor:
|
|||
filters:
|
||||
- delayed_on: 20ms
|
||||
- delayed_off: 20ms
|
||||
on_press:
|
||||
then:
|
||||
- light.turn_on:
|
||||
id: ring
|
||||
red: 0
|
||||
green: 1
|
||||
blue: 0.7
|
||||
effect: pulse
|
||||
on_release:
|
||||
then:
|
||||
- delay: 5s
|
||||
- light.turn_off: ring
|
||||
on_multi_click:
|
||||
# Single Short Click
|
||||
- timing:
|
||||
|
|
Loading…
Add table
Reference in a new issue