Transfer Bosch alarm to siren. how to interrupt

Hi there,

I have a Bosch alarm system, this is also integrated into HA.
Now I would like another siren to be activated in the event of an alarm.
I also achieved this with the following automation:

alias: Alarm von Bosch auf Sirene übertragen für 30 Sekunden
description: ''
trigger:
  - platform: device
    device_id: 4fef1ba0a2a1fab9467beec906afbbeb
    domain: alarm_control_panel
    entity_id: alarm_control_panel.intrusion_detection_system
    type: triggered
    id: bosch
condition: []
action:
  - type: turn_on
    device_id: 7159db04b9b005aa7cfe485affa009ea
    entity_id: light.sirene_kuche_mr04_modul_relais_ewelink_zb_sw01_on_off
    domain: light
  - delay:
      hours: 0
      minutes: 0
      seconds: 30
      milliseconds: 0
  - type: turn_off
    device_id: 7159db04b9b005aa7cfe485affa009ea
    entity_id: light.sirene_kuche_mr04_modul_relais_ewelink_zb_sw01_on_off
    domain: light
mode: single

Problem:
If the Bosch alarm system is deactivated during an alarm, the second siren continues to run.
How can I ensure that my siren off goingwhen the alarm system is deactivated?
So far, this runs through 30 seconds.

Greetings Werner

Create another automation that turns off your siren when the alarm state changes to disarmed.

1 Like

Thank you… :+1: