Short and long beeps for siren
This commit is contained in:
@@ -8,3 +8,18 @@ esphome:
|
||||
|
||||
packages:
|
||||
device_base: !include templates/esp01s.yaml
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: "Short beep"
|
||||
on_press:
|
||||
- switch.turn_on: relay
|
||||
- delay: 1ms
|
||||
- switch.turn_off: relay
|
||||
|
||||
- platform: template
|
||||
name: "Beep"
|
||||
on_press:
|
||||
- switch.turn_on: relay
|
||||
- delay: 200ms
|
||||
- switch.turn_off: relay
|
||||
|
||||
@@ -15,3 +15,4 @@ switch:
|
||||
pin: GPIO0
|
||||
name: None
|
||||
inverted: true
|
||||
id: relay
|
||||
|
||||
Reference in New Issue
Block a user