Siren triggered after intrusion

How to create an alarm with the siren triggered during an intrusion

matériel:
a siren
one or more door/window sensors

Setting up triggers with « state change » of the door/window sensors:

Setting up actions with « Get last state » of the door/window sensors:

Setting up another action block « continue only if » with sending a message:

Setting up a third action block with « control a device »:

For the other actions, I set a 20-second wait, then control a device to turn off the siren, then wait 5 seconds and turn the siren back on, and so on.
You can adjust as you like.

Warning: put one action per block otherwise it will not work.
You cannot turn the siren on and at the same time wait 20 seconds and turn it off.

2 Likes