Short and long beeps for siren

This commit is contained in:
2024-12-20 17:32:45 +01:00
parent c692bfecc8
commit e2c28f3fc1
2 changed files with 16 additions and 0 deletions
+15
View File
@@ -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
+1
View File
@@ -15,3 +15,4 @@ switch:
pin: GPIO0
name: None
inverted: true
id: relay