Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######## BUZZ ########
- output:
- - platform: ledc
- pin: GPIO32
- id: buzzer
- rtttl:
- output: buzzer
- switch:
- - platform: template
- name: Switch Buzz
- id: Switch_Buzzer
- icon: mdi:volume-high
- optimistic: true
- turn_on_action:
- - while:
- condition:
- switch.is_on: Switch_Buzzer
- then:
- - rtttl.play: "siren:d=8,o=5,b=100:d,e,d,e,d,e,d,e"
- - delay: 3s
- turn_off_action:
- - rtttl.stop
Advertisement
Add Comment
Please, Sign In to add comment