Alarm

Builds a burglar alarm from the sensors a house already has. It holds the armed state, decides which sensors matter in which mode, runs the entry and exit delays, and drives a siren and notifications.

1.What it does

The block is the alarm's logic. It is tied to an alarm device, which carries the wiring — the arming bits, the sensor contacts, the siren output — while the block decides what happens when.

  • Two armed states: away, which watches everything, and stay, which watches only the perimeter.
  • An exit delay so the customer can leave, and an entry delay so they can disarm on the way in.
  • A panic input that sounds the alarm immediately, armed or not.
  • Siren and notify outputs you wire to whatever should happen — a siren, lights, a message.
This is automation, not a certified security installation. It arms, watches, sounds and notifies, which covers what most homes want — but it is not a graded, monitored, tamper-protected system. Where a customer needs that, fit a certified panel and integrate it.

2.Sensor points

Unlike the other blocks, the alarm's inputs are not fixed — you add one pin per sensor.

  1. Open the block and pick the alarm device.
  2. Press Add motion sensor for each interior detector. Each one adds an input pin Sen1, Sen2, and so on.
  3. Press Add window/door sensor for each contact. Each adds Win1, Win2, …
  4. Wire each physical sensor to its pin.

The split is the whole point: Sen pins are interior motion and Win pins are the perimeter, and that is what makes stay mode possible.

Numbering follows the highest existing pin, so deleting a sensor from the middle of the list never produces two pins with the same name.

3.Inputs

PinLabelDescriptionRange
ArmArm awayPulse arms in away mode — every sensor is watched. Runs the exit delay first.0/1
StayArm stayPulse arms in stay mode — only the Win contacts are watched. Also runs the exit delay.0/1
DisarmDisarmPulse disarms, clears any sounding alarm, and cancels a running entry or exit delay.0/1
PanicPanicPulse raises the alarm immediately — siren and notify — regardless of whether the system is armed, and with no delay.0/1
Sen1…nMotion sensorsInterior detectors. Trigger an alarm in away mode only; in stay mode they are ignored completely.0/1
Win1…nDoor / window contactsPerimeter contacts — 1 means open. Trigger an alarm in both away and stay mode.0/1

4.Outputs

Outputs are only re-sent when they change, so a quiet armed night produces no repeated writes.

PinDescriptionRange
Armed1 whenever the system is armed, in either mode. It stays 0 during the exit delay and only goes to 1 once arming completes.0/1
ArmLevelWhich mode: 0 disarmed, 1 armed stay, 2 armed away. Use it when another flow needs to branch on the mode rather than just "armed or not".0…2
Alarm1 while an alarm is active. Cleared by disarming.0/1
SirenFollows Alarm. Wire it to the siren output.0/1
NotifyFollows Alarm. Wire it to a Notification block, a light, a call — to whatever should tell somebody.0/1

By default Siren and Notify rise with Alarm and run until somebody disarms. Give either one a delay, or cap the siren with Max siren time, to stage the response — see the parameters below.

5.Parameters

ParameterSummaryDescriptionUnitDefault
Exit delayGrace period when armingHow long after arming before the system is really live. Sensor activity during this window is ignored, so walking out of your own front door starts nothing. 0 arms instantly.s30
Entry delayGrace period when a sensor tripsHow long between an armed sensor triggering and the siren sounding — time to reach the keypad. 0 means the siren sounds at once.s0
Siren delayHold the siren backSeconds between the alarm firing and the Siren output rising. 0 raises it with the alarm.s0
Notify delayHold the notification backThe same for Notify, independently of the siren — a quiet warning first, the siren after.s0
Max siren timeNoise cut-offSilences the siren after this long. The system stays armed and Alarm stays 1 — it is a cut-off, not a disarm. 0 sounds until somebody disarms.s0
RemRemanenceWhen on, the system is still armed after a reboot. When off it comes back disarmed.0/10
Rem matters more here than on any other block. With it off, a power cut silently disarms the house — fine while commissioning, wrong for a finished site. Turn it on before handover.

6.Away and stay

Two armed states, differing only in whether interior motion counts.

AwayStay
Armed byArmStay
Motion sensors (Sen)Trigger the alarm.Ignored entirely — the family can move around at night.
Contacts (Win)Trigger the alarm.Trigger the alarm.
Use it forNobody home.Everybody home and in bed, with the perimeter watched.
Put interior detectors on Sen pins and everything on the building's skin — doors, windows, a garage shutter — on Win pins. If a detector covers a hallway the family crosses at night, it belongs on Sen or stay mode will be unusable.

7.Exit delay — arming

What happens between pressing arm and the system being live.

  1. Arm or Stay fires. The exit countdown starts and the Armed output stays 0 — the system is not yet live.
  2. Sensor and contact activity during the countdown is ignored and not queued: nothing fires the moment the delay ends because you walked past a detector on the way out.
  3. When the countdown finishes the system arms, Armed goes to 1 and every watched sensor is live.
  • Pressing arm again during the countdown does not restart it. Repeated commands — a button pressed twice, a status echoed back — are ignored, so the system cannot be kept permanently in the act of arming.
  • Disarm during the countdown cancels it.
  • With an exit delay of 0 the system arms the instant the command arrives.
If a door contact is open when the countdown ends, it will trigger. There is no "arm anyway and ignore what is already open" option — close the house before arming.

8.Entry delay — coming home

What happens between an armed sensor tripping and the siren.

  1. An armed sensor or contact goes active.
  2. With an entry delay of 0 — the default — the siren sounds immediately.
  3. With an entry delay set, the countdown starts. Further sensor activity during it is ignored, so walking from the door to the keypad does not shorten anything.
  4. If nobody disarms before the countdown ends, the alarm fires: Alarm, Siren and Notify all go to 1.
  5. Disarm during the countdown cancels it entirely.
Set the entry delay from the door the customer actually uses, counting at walking pace with shopping in both hands. Too short and the alarm greets them every time; too long and it is an invitation.

9.Panic and disarming

Panic

Panic raises the alarm at once — siren and notify — whether the system is armed or disarmed, with no entry delay and no conditions. It is the one input that works in every state.

Disarming

Disarm does everything at once: it sets the system to disarmed, clears a sounding alarm, drops the siren and notify outputs, and cancels any running entry or exit delay. It is the only way to stop an alarm.

There is no separate "acknowledge" that silences the siren while staying armed. Stopping an alarm always disarms the system, so remember to re-arm afterwards.

10.Driving it from the panel

The customer's buttons reach the block without any wiring on the canvas.

Arm away, arm stay, disarm and panic pressed on the wall panel or in the app are routed straight into the matching pins of every alarm block bound to that device. You do not wire the panel to the block — picking the device on the block is enough.

  • The panel shows the countdown while arming — "Armed in 30 s" — and during an entry delay, because the block publishes its configured delays to the interface.
  • The same commands can come from a scene, so "Leaving home" can arm the house as well as switching the lights off.
  • Arming is also exposed to Apple Home and Google Home when the device is shared with them, with a PIN required to disarm by voice.
The arming bits are a pair — away sets one and clears the other — and the block understands that. A status echo from the second bit will not be mistaken for a disarm.

11.Programming example

A house with three interior detectors, five contacts, a siren and a notification.

  1. Add the block and pick the alarm device.
  2. Add three motion points and five window/door points, then wire each sensor to its pin.
  3. Set Exit delay to 45 — long enough to reach the car — and Entry delay to 20 for the front door.
  4. Wire Siren to the siren device and Notify to a Notification block with a message naming the house.
  5. Optionally wire Alarm into a Lighting Controller's Alarm input so the lights flash as well.
  6. Turn Rem on, then Deploy.
  7. Test properly: arm stay and walk past an interior detector — nothing should happen. Arm away and do the same — the alarm should fire after the entry delay. Then test disarming during the countdown.

12.Not available in this version

Other systems' alarm blocks have these; ours does not, and some matter when quoting a job.

  • Two stages, not six. The siren and the notification can each be delayed independently, which covers most staged escalation, but there is no separate silent / audible / visual / internal / external / remote level. Further stages can be built with Delayed on/off blocks after the outputs.
  • No cause or time of alarm outputs, no count of active sensors, no remaining-time output, and no text listing which window was left open.
  • No acknowledge without disarming, no alarm test mode, no "arm with a contact open" option, and no disable-buttons input.
  • Two sensor categories. Motion and contacts — there is no separate glass-break or generic category, though a glass-break detector works perfectly well on a Win pin.
  • No two-sensor confirmation window — a single detector triggers the alarm.
Staged sirens and an automatic cut-off are the two most commonly asked for. Both are buildable today with Delayed on/off blocks; tell us if they would be better inside the block.
See it in context in the examples library, or go back to all function blocks.