fix: activate doorbell led on button press

This commit is contained in:
Mario Lang 2025-08-16 13:36:45 +00:00
parent 213469defa
commit b4b5898035

View file

@ -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: