fix: doorbell muting

This commit is contained in:
Mario 2025-06-14 13:34:11 +00:00
parent cf00ce2272
commit b26d01d387

View file

@ -37,8 +37,6 @@ switch:
id: relay id: relay
internal: True internal: True
pin: GPIO12 pin: GPIO12
- platform: restart
name: Restart
- platform: template - platform: template
id: chime_active id: chime_active
name: Chime Active name: Chime Active
@ -73,10 +71,6 @@ binary_sensor:
green: 1 green: 1
blue: 0.7 blue: 0.7
effect: pulse effect: pulse
- if:
condition:
- switch.is_on: chime_active
then:
- button.press: chime_button - button.press: chime_button
on_release: on_release:
then: then:
@ -92,10 +86,16 @@ button:
name: Ring name: Ring
icon: mdi:bell icon: mdi:bell
on_press: on_press:
then:
- if:
condition:
- switch.is_on: chime_active
then: then:
- switch.turn_on: relay - switch.turn_on: relay
- delay: 0.3s - delay: 0.3s
- switch.turn_off: relay - switch.turn_off: relay
- platform: restart
name: Restart
output: output:
- platform: ledc - platform: ledc