diff --git a/packages/alarm-panel-esp32-base.yaml b/packages/alarm-panel-esp32-base.yaml index bf33a04..e513281 100644 --- a/packages/alarm-panel-esp32-base.yaml +++ b/packages/alarm-panel-esp32-base.yaml @@ -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" #### diff --git a/packages/alarm-panel-esp8266-base.yaml b/packages/alarm-panel-esp8266-base.yaml index 58a50e9..d931a07 100644 --- a/packages/alarm-panel-esp8266-base.yaml +++ b/packages/alarm-panel-esp8266-base.yaml @@ -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" #### diff --git a/packages/alarm-panel/alarm.yaml b/packages/alarm-panel/alarm.yaml index f6710cb..f44bef8 100644 --- a/packages/alarm-panel/alarm.yaml +++ b/packages/alarm-panel/alarm.yaml @@ -4,7 +4,7 @@ switch: name: Siren pin: number: $alarm - allow_other_uses: true + allow_other_uses: $alarm_shared platform: gpio icon: mdi:bullhorn diff --git a/packages/door-open-chime.yaml b/packages/door-open-chime.yaml new file mode 100644 index 0000000..c065482 --- /dev/null +++ b/packages/door-open-chime.yaml @@ -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" \ No newline at end of file