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
|
- switch.is_on: chime_active
|
||||||
then:
|
then:
|
||||||
- switch.turn_on: relay
|
- switch.turn_on: relay
|
||||||
- light.turn_on:
|
- delay: 0.2s
|
||||||
id: ring
|
- switch.turn_off: relay
|
||||||
red: 0
|
|
||||||
green: 1
|
|
||||||
blue: 0.7
|
|
||||||
effect: pulse
|
|
||||||
- delay: 0.2s
|
|
||||||
- switch.turn_off: relay
|
|
||||||
- delay: 5s
|
|
||||||
- light.turn_off: ring
|
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
- id: should_ring
|
- id: should_ring
|
||||||
|
@ -88,6 +80,18 @@ binary_sensor:
|
||||||
filters:
|
filters:
|
||||||
- delayed_on: 20ms
|
- delayed_on: 20ms
|
||||||
- delayed_off: 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:
|
on_multi_click:
|
||||||
# Single Short Click
|
# Single Short Click
|
||||||
- timing:
|
- timing:
|
||||||
|
|
Loading…
Add table
Reference in a new issue