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