Alarm system BEEP, Chirp sound suggestions

Hi,

Looking for some advice on a device that can make different sounds for the following situation examples… intermittent beeps for when my alarm system has been triggered to give a time period to turn the alarm off if it’s been activated by mistake, also be able to make a kind of chirp similar to what cars do when you unlock and lock them to signify the alarm has been activated or deactivated. I’m mounting the alarm panel using a fire tablet running tileboard.

A perfect option would be able to push the sounds through to all my Alexa devices but I understand this isnt possible ?

I have the Xiaomi Aqara hub which makes all the sounds I’m looking for but it’s the latest model that doesn’t integrate with home assistant and I now use Zigbee2mqtt for my Xiaomi devices anyway

Currently I have the following hassio connectivity options

WiFi
433mhz Tasmota sonoff bridge
Zigbee2mqtt

Thanks

I’m also interested in this sort of thing.

My exact setup. Also subscribing. @3reeman have you found any solution?

No I’m afraid not, its such a shame there isn’t a way to push any sound you like to alexa speakers, this would work great for us because we have them all over

Possibly not the ideal solution given your existing hardware, but I have this set-up using a Node MCU with the Konnected firmware - https://www.home-assistant.io/components/konnected/

You can configure pins on the NodeMCU to control a piezo buzzer with continuous or intermittent beeps for door chimes or pending alarms. I have mine set up with an intermittent beep when the alarm is in the pending state - it switches off when the alarm disarms. You could easily set a similar automation to chirp when a door opens.

In terms of an alarm pending beep, this works for me (I’m using the Manual Alarm):

configuration.yaml

alarm_control_panel:
  - platform: manual
    name: Intruder Alarm
    code: !secret intruder_alarm_code
    delay_time: 30 # beep time
    trigger_time: 60

automations.yaml

- alias: "Beep during alarm pending"
  trigger:
    platform: state
    entity_id: alarm_control_panel.intruder_alarm
    from: "armed_away"
    to: "pending"
  action:
    - service: script.turn_on
      entity_id: script.alarm_pending_loop

scripts.yaml

alarm_pending_loop:
  alias: Alarm Pending Loop
  sequence:
    - condition: state
      entity_id: alarm_control_panel.intruder_alarm
      state: "pending"
    - delay: "00:00:01"
    - service: script.turn_on
      entity_id: script.alarm_pending_sound

alarm_pending_sound:
  alias: Alarm Pending Sound
  sequence:
    - service: media_player.play_media
      data:
        entity_id: media_player.sonos
        media_content_id: !secret pending_beep_url
        media_content_type: "music"
    - delay: "00:00:01"
    - service: media_player.play_media
      data:
        entity_id: media_player.sonos
        media_content_id: !secret pending_beep_url
        media_content_type: "music"
    - service: script.turn_on
      entity_id: script.alarm_pending_loop

pending_beep_url is http://hassio.local:8123/local/pending-beep.wav for me (put pending-beep.wav in www directory).

As for using Alexa to play the beeps instead of Sonos, this custom component may be of interest.

5 Likes

Thanks for your automations… The Alexa devices don’t work using local files but I have mine now saying “Alarm arming” and Alarm on/off" and when it detects and intruder etc

alarm_pending_sound:
  alias: Alarm Pending Sound
  sequence:
    - service: notify.alexa_media
      data:
        target: 
          - media_player.livingroom_dot
        data:
          type: tts
        message: "Garage Arming"
    - delay: "00:00:03"
    - service: notify.alexa_media
      data:
        target: 
          - media_player.livingroom_dot
        data:
          type: tts
        message: "Garage Arming"
    - service: script.turn_on
      entity_id: script.alarm_pending_loop        
    - service: script.turn_on
      entity_id: script.alarm_pending_loop
alarm_pending_loop:
  alias: Alarm Pending Loop
  sequence:
    - condition: state
      entity_id: alarm_control_panel.ha_alarm
      state: "pending"
    - delay: "00:00:01"
    - service: script.turn_on
      entity_id: script.alarm_pending_sound
      
alarm_off_sound:
  alias: Alarm Off Sound
  sequence:
    - service: notify.alexa_media
      data:
        target: 
          - media_player.livingroom_dot
        data:
          type: tts
        message: "Garage Alarm off"
    - delay: "00:00:03"
    - service: notify.alexa_media
      data:
        target: 
          - media_player.livingroom_dot
        data:
          type: tts
        message: "Garage Alarm off"

I have Konnected with Piezo buzzer can you share your config because i want it to beep during pending as well.

configuration.yaml snippet:

##########################
# konnected alarm zones
##########################
konnected:
  access_token: "bcddc2312114"
  devices:
    - id: bcddc2312114
      host: 192.168.0.136
      port: 11219
      switches:
        - pin: 1
        - pin: 2
        - pin: 5
        - pin: 6
        - pin: 8

This creates 5 switches for hassio to turn on/off. I have a buzzer on pin 8 of their development kit board. I have dry contact relays connected to the other pins and can use those to turn anything on or off.

https://konnected.io/collections/in-stock-now/products/konnected-diy-prototyping-kit

I’m working on this same setup… You can add the event part to your tileboard config, and it’ll play right on the fire tablets:

events: [
      /* Example: Play a sound file
       * Include sound_url in the event_data from Home Assistant
       */
      {
        command: 'play_sound',
        action: function(e) {
          playSound(e.sound_url);
        }
      },

    ],

Then create an event caller automation - beeps every 2s (/2) while alarm is pending (as you arm or disarm the state is pending).

- id: '1575674347174'
  alias: Pending Alarm Panel
  description: ''
  trigger:
  - hours: '*'
    minutes: '*'
    platform: time_pattern
    seconds: /2
  condition:
  - condition: state
    entity_id: alarm_control_panel.home_alarm
    state: pending
  action:
  - event: tileboard
    event_data:
      command: play_sound
      sound_url: https://URL_TO_BEEP/beep.wav

This is the main alarm automation that puts the alarm panel in pending before it triggers.

- id: '123123123123'
  alias: Trigger alarm while armed away
  trigger:
  - platform: state
    entity_id: binary_sensor.dining_room_door
    to: 'on'
  - platform: state
    entity_id: binary_sensor.front_door
    to: 'on'
  - platform: state
    entity_id: binary_sensor.patio_door
    to: 'on'
  condition:
  - condition: state
    entity_id: alarm_control_panel.home_alarm
    state: armed_away
  action:
    service: alarm_control_panel.alarm_trigger
    entity_id: alarm_control_panel.home_alarm

Only other thing to do is setup the siren if the alarm panel state goes to triggered. I also trigger a beep when a door gets opened (not on a loop), just for an indication a door was opened.

1 Like

Hi, Is there anyway you can stop the sound playing once it starts, I would like to stop the beeps once the alarm has been disarmed

Not sure this works for you but I have used Spotify to play on my alexa with the custom component for Alexa mentioned above. For example I play this via Node Red below if the alarm is triggered.

{"media_content_id":"police siren 1","media_content_type":"SPOTIFY"}

I have used effects from this below and simililar

1 Like

If your referring to the config I posted above, when the state switches off pending, it’ll stop beeping (providing it’s not a long media file). So when you disarm, it switches states and the repeating automation beeps stop.

Thanks for this, didnt read your automation fully, can see what your doing now
Created a wav file now that last 2.5 secs so works like a dream

Is there much lag when getting a short sound to play on a cloud device? For example, it wouldn’t work well for a click or key press confirmation, would it?

-bp

I use manual alarm as well. I will remove the old alarm system and put a simple buzzer.
Since I use Modbus for my sensors (curtain, door switch etc. ) the transformation is very simple.
Now simply add a buzzer to a DO (Relay Out or Open Darin output depending on the unit) and control the off on duty cycle.
Very simple and the wires are there from the old alarm panel so only put the buzzer flat in the wall and you are done.
I have Google home all around the house but when my daughter is arming the alarm system at 2:00 AM when she is back from her date, I do not want the Google Home to wake me up.