Button to play sample alert tone

This commit is contained in:
2026-05-21 20:42:13 +00:00
parent fd14ff3434
commit cc9af7e824
7 changed files with 7 additions and 72 deletions
+6 -5
View File
@@ -175,16 +175,17 @@ button:
then:
lambda: !lambda |-
id(garage_gate).door_toggle();
- platform: template
id: garage_gate_play_alert
name: "Play Alert"
on_press:
then:
- rtttl.play: "alert:d=8,o=5,b=120:a,p,a,p,a,p,4b,p"
output:
- platform: ledc
pin: GPIO33
id: garage_gate_ledc
- platform: ratgdo
id: garage_gate_beeper
type: beeper
rtttl: garage_gate_rtttl
song: "alert:d=8,o=5,b=120:a,p,a,p,a,p,4b,p"
rtttl:
- id: garage_gate_rtttl