diff --git a/doorbell.yaml b/doorbell.yaml index f948884..9ee0c8a 100644 --- a/doorbell.yaml +++ b/doorbell.yaml @@ -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 + - delay: 0.2s + - switch.turn_off: relay 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: