Alarmo with sirens?

So, I’ve got a question relating to the use of Alarmo and sirens.

Am I correct in saying I need to add an active for both switching the siren ON when activated and then another one to switch the siren OFF when disarmed?

I created a Siren trigger even which worked but did not turn off when disarmed.

This seems a bit weird that I need to create 2 separate functions for the siren to simply turn on and off, so I just thought I would confirm.

Thanks

Yes.

I recently did something similar using Alexa’s in the house as sirens but posted code to show the principle of the script. The script is called in Alarmo. Once triggered it will stay active until Alarmo is disarmed and then will silence the sirens. It could be modified to turn an external siren or relay on and keep the same loop method. I also set the volumes to levels higher than normal.

alias: Alarmo Siren Alexa
sequence:
  - service: media_player.volume_set
    target:
      entity_id:
        - media_player.bedroomalexa
    data:
      volume_level: 0.3
  - service: media_player.volume_set
    target:
      entity_id:
        - media_player.cinemaalexa
        - media_player.kitchenalexa
    data:
      volume_level: 1
  - repeat:
      sequence:
        - service: media_player.play_media
          data:
            media_content_id: amzn_sfx_scifi_alarm_04
            media_content_type: sound
          target:
            entity_id:
              - media_player.cinemaalexa
              - media_player.kitchenalexa
              - media_player.bedroomalexa
        - delay:
            hours: 0
            minutes: 0
            seconds: 5
            milliseconds: 0
      until:
        - condition: state
          entity_id: alarm_control_panel.security
          state: disarmed
  - service: media_player.volume_set
    target:
      entity_id:
        - media_player.cinemaalexa
        - media_player.kitchenalexa
        - media_player.bedroomalexa
    data:
      volume_level: 0.3
mode: single
icon: mdi:bullhorn-variant

1 Like