Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add door-open-chime.yaml and add option to set alarm output shared as false #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/alarm-panel-esp32-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ substitutions:
warning_beep_pause_time: 130ms
warning_beep_internal_only: "false"
warning_beep_shared: "false"
alarm_shared: "true"
blink_on_state: "true"

####
Expand Down
1 change: 1 addition & 0 deletions packages/alarm-panel-esp8266-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ substitutions:
warning_beep_pause_time: 130ms
warning_beep_internal_only: "false"
warning_beep_shared: "true"
alarm_shared: "true"
blink_on_state: "true"

####
Expand Down
2 changes: 1 addition & 1 deletion packages/alarm-panel/alarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ switch:
name: Siren
pin:
number: $alarm
allow_other_uses: true
allow_other_uses: $alarm_shared
platform: gpio
icon: mdi:bullhorn

Expand Down
25 changes: 25 additions & 0 deletions packages/door-open-chime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
output:
- id: 'chime_pin'
platform: gpio
pin:
number: $warning_beep_pin
allow_other_uses: $warning_beep_shared


button:
- platform: template
id: buzzer
name: Buzzer
on_press:
- repeat:
count: $buzzer_repeat
then:
- output.turn_on: chime_pin
- delay: $buzzer_pulse
- output.turn_off: chime_pin
- delay: $buzzer_pause

substitutions:
buzzer_pulse: 24ms
buzzer_pause: 54ms
buzzer_repeat: "6"