Button to play sample alert tone
This commit is contained in:
+6
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user