Skip to main content

Alarm Logic

What This Page Covers

This page explains how the Security and Alarm Capability evaluates zone events, manages arm mode transitions, applies entry and exit delays, fires alarms and activates sirens. It describes the partition state machine and the rules that determine when a zone detection becomes a full alarm event.


Arm Mode Transitions

A partition is always in exactly one arm mode:

ModeDescription
DISARMEDNo zones are monitored
HOMEPartial arming — perimeter zones active, interior zones bypassed
AWAYFull arming — all zones monitored
ENVIRONMENTPerimeter or environmental arming
MAINTENANCEMaintenance mode — alarm triggers bypassed

Arming

Transitioning from DISARMED to any armed mode requires an authenticated security session. The user provides a valid PIN (or uses quick-arm via key fob if enabled), and the partition moves to the target arm mode.

When arming begins, an exit delay starts. During this window the occupant can move through exit zones without triggering the alarm. Once the exit delay expires the partition is fully armed and all applicable zones are monitored.

If quickArm is enabled on the partition, arming can be initiated from a key fob or automation rule without PIN entry.

Disarming

Transitioning from any armed mode to DISARMED also requires a valid PIN via a security session. If a disarm command is received during an active entry delay, the partition disarms and no alarm fires.

Always-Armed Partitions

When alwaysArmed is set on a partition, disarming is not permitted. The partition remains in its armed mode regardless of user commands.


Zone Monitoring by Arm Mode

Not all zones are monitored in every arm mode. The zone type determines when the alarm logic evaluates that zone:

Zone TypeDISARMEDHOMEAWAYENVIRONMENTMAINTENANCE
InteriorMonitored
PerimeterMonitoredMonitoredMonitored
PanicMonitoredMonitoredMonitoredMonitoredMonitored
SilentMonitoredMonitoredMonitored
SafetyMonitoredMonitoredMonitoredMonitoredMonitored
TamperMonitoredMonitoredMonitoredMonitoredMonitored

Key implications:

  • Interior zones are only active in AWAY mode. In HOME mode they are bypassed automatically, allowing occupants to move freely inside.
  • Perimeter zones are active in both HOME and AWAY, protecting the building shell.
  • Panic, Safety and Tamper zones are always active regardless of arm mode — they are 24-hour zones.
  • Maintenance mode bypasses all alarm triggers except Panic, Safety and Tamper.

Exit Delay

The exit delay gives the occupant time to leave after arming. The sequence:

  1. User issues arm command (e.g. DISARMEDAWAY).
  2. Partition sets exitStarted = true and records exitFrom (start) and exitUntil (deadline).
  3. During the exit delay, zones marked as zoneExit = true do not trigger the alarm — the occupant can open the exit door and pass through without consequence.
  4. Non-exit zones that trip during the exit delay trigger an immediate alarm (there is no reason for movement in non-exit areas during arming).
  5. When the exit delay expires, all applicable zones become fully monitored.

Exit Delay Configuration

The exit delay duration is configured at the partition level:

  • exitDelay — seconds for AWAY mode
  • homeExitDelay — seconds for HOME mode

Individual zones can override the partition-level exit delay with a per-zone exitDelay value.


Entry Delay

The entry delay gives the occupant time to disarm after entering through a designated entry point. The sequence:

  1. The partition is armed and an entry zone (zoneEntry = true) trips.
  2. Instead of firing immediately, the partition sets entryStarted = true, records entryFrom / entryUntil and stores entryZone — the zone that initiated the delay.
  3. The entry delay countdown begins.
  4. If the user disarms within the entry delay window, no alarm fires.
  5. If the entry delay expires without a valid disarm, the alarm fires.

Entry Delay Configuration

  • entryDelay — seconds for AWAY mode (partition-level)
  • homeEntryDelay — seconds for HOME mode (partition-level)

Individual zones can override the partition-level entry delay with per-zone entryDelay and homeEntryDelay values.

Follower Zones

A zone marked as zoneFollower = true inherits the entry delay when one is already active:

  • Normally, only the primary entry zone (zoneEntry = true) starts the entry delay countdown. A non-entry interior zone that trips while armed would fire the alarm immediately.
  • A follower zone is the exception: if it trips while an entry delay is already running, it is treated as if it were part of the entry path — it does not fire the alarm. The occupant walking past it on the way to the keypad does not trigger an immediate alarm.
  • If no entry delay is active (i.e. the follower zone trips on its own without a preceding entry zone trip), it behaves like a normal zone and triggers the alarm immediately.

This models the common scenario where the occupant opens the front door (entry zone starts the delay) and then walks through a hallway (follower zone) to reach the keypad. Without the follower flag, the hallway motion sensor would fire instantly.


Trip and Alarm Firing

When a zone detects activity while the partition is armed and no delay window applies, the alarm fires.

Trip State

When a zone triggers, the partition state is updated:

FieldValue
trippedtrue
tripTypeALARM, TAMPER or similar depending on zone type
trippedByReference to the zone that caused the trip
tripSensorStateSensor state at the moment of the trip

The tripped state coexists with the arm mode. A partition can be AWAY and tripped = true simultaneously — the arm mode does not change when an alarm fires.

Immediate Triggers

Some zone types bypass all delays and fire the alarm immediately:

  • Panic zones — immediate alarm on any state change, regardless of arm mode.
  • Safety zones — fire, gas or smoke detection triggers immediately with no delay.
  • Tamper zones — sensor tamper triggers immediately.

Standard Trigger Sequence (Non-Entry Zone)

  1. Partition is armed.
  2. A monitored zone (not an entry zone) detects activity.
  3. Alarm fires immediately — no delay.
  4. Sirens activate after sirenDelay seconds (if configured; otherwise immediate).
  5. Notifications are sent through all configured channels.
  6. Event is logged with needAck = true if acknowledgement is required.

Entry Zone Trigger Sequence

  1. Partition is armed.
  2. An entry zone detects activity.
  3. Entry delay begins — siren is silent, no notifications yet.
  4. If disarmed within entry delay → partition disarmed, no alarm.
  5. If entry delay expires without disarm → alarm fires, sirens and notifications activate.

Siren Behaviour

When an alarm fires, the partition activates all devices in its sirens list. Configuration controls the timing:

SettingDescription
sirenDelaySeconds after the alarm fires before the siren activates — allows a brief window for the occupant to realize they forgot to disarm
sirenTimeSeconds the siren stays active before automatically silencing

Per-zone sirenDelay overrides allow different zones to have different response times — for example, a longer siren delay on the entry door and a shorter one on a window.

Silent Alarm

When silentAlarm is enabled on a partition, the alarm fires silently — notifications are sent but no sirens activate. This is used in scenarios where alerting the intruder is undesirable.

Squawk Devices

Squawk devices (squawks list) provide audible confirmation of arm and disarm actions — a brief chirp when the partition arms or disarms. They do not activate during an alarm.


Cross-Zoning

Cross-zoning is a false-alarm reduction mechanism. When enabled on a partition:

  1. A single zone trip does not immediately fire the alarm.
  2. A second zone within the same crossZoneGroup must trip within crossZoningTime seconds.
  3. Only when the second zone confirms the first does the alarm fire.

This prevents single-sensor false positives (e.g. a pet triggering one motion sensor) from causing a full alarm. Zones are grouped via the crossZoneGroup field — only zones in the same group confirm each other.

Configuration

SettingLevelDescription
crossZoningPartitionEnable or disable cross-zoning
crossZoningTimePartitionTime window (seconds) within which a second zone must trip
crossZoneGroupZoneGroup assignment — zones confirm others in the same group

Health Care Mode

When healthCareMode is enabled on a partition, the alarm logic inverts: instead of detecting intrusion (unexpected activity), it detects inactivity (absence of expected activity).

If no motion is detected within mobilityTime seconds, the partition fires an alert. This is designed for monitoring elderly or vulnerable occupants — silence means something may be wrong.

Health care mode uses the same zone infrastructure but interprets sensor data differently. Interior motion sensors that normally detect intrusion instead serve as activity indicators.


Zone Bypass

Zones can be bypassed before arming. A bypassed zone is excluded from monitoring — its state changes do not trigger the partition's alarm logic.

Bypass behaviour:

  • Only zones with bypassable = true can be bypassed.
  • Users must have the PRIV_BYPASS permission on the partition.
  • When removeZoneBypass = true on a zone, the bypass is automatically removed after the partition is armed — it applies only to the arming cycle during which it was set.
  • Bypassed zones have bypassed = true in their zone state.

Zone Readiness

Before arming, the system checks whether all zones are ready. A zone is ready when its bound sensor is in its normal (non-tripped) state and the sensor device is online.

Zone readiness state:

FieldMeaning
readySensor is in normal state
sensorOfflineSensor device is not responding

If a zone is not ready (sensor tripped or offline), arming may be blocked unless that zone is bypassed.


Chime

Zones with chime = true trigger a chime sound when tripped while the partition is disarmed. This provides awareness of entry and exit activity (e.g. a door opening) without requiring the partition to be armed. Chime is independent of the alarm logic and does not affect arming, delays or alarm state.


State Machine Summary

The partition state machine has five distinct states. Transitions are triggered by user commands, timer expiry or zone events.

States

StateKey FieldsDescription
DisarmedarmMode = DISARMEDNo zones monitored, system inactive
ExitingarmMode = armed, exitStarted = trueExit delay countdown active; exit zones suppressed
ArmedarmMode = armed, tripped = falseAll applicable zones monitored, waiting for events
Entry DelayarmMode = armed, entryStarted = trueEntry delay countdown active; awaiting disarm
AlarmarmMode = armed, tripped = trueAlarm fired; sirens active, notifications sent

Transitions

#FromTriggerToDetail
1DisarmedArm command (PIN or quick-arm)ExitingExit delay countdown begins
2ExitingExit delay expiresArmedAll applicable zones now monitored
3ExitingDisarm command (PIN)DisarmedArming cancelled before completion
4ExitingNon-exit zone tripsAlarmNo valid reason for non-exit activity during exit
5ArmedEntry zone tripsEntry DelayEntry delay countdown starts
6ArmedNon-entry zone tripsAlarmNo delay — immediate alarm
7ArmedPanic / Safety / Tamper zone tripsAlarm24-hour zones — immediate, regardless of configuration
8ArmedDisarm command (PIN)DisarmedNormal disarm, no alarm
9Entry DelayDisarm command (PIN)DisarmedSuccessful disarm within window — no alarm
10Entry DelayFollower zone tripsEntry DelayFollower inherits active delay — no alarm yet
11Entry DelayNon-follower zone tripsAlarmNon-follower zone has no delay protection
12Entry DelayDelay expiresAlarmOccupant failed to disarm in time
13AlarmDisarm command (PIN)DisarmedAlarm acknowledged, sirens silenced

Diagram

Notes

  • The arm mode (HOME, AWAY, ENVIRONMENT) persists through Entry Delay and Alarm states — it does not revert until an explicit disarm command.
  • Cross-zoning (when enabled) adds an intermediate confirmation step between the initial zone trip and the transition to Alarm: the first trip starts a timer and only escalates if a second zone in the same group trips within crossZoningTime seconds.
  • MAINTENANCE mode follows the same state structure but suppresses transitions to Alarm for all zone types except Panic, Safety and Tamper.
  • The Alarm state is not self-clearing — it requires an explicit disarm to return to Disarmed. Sirens auto-silence after sirenTime but the tripped state remains.

Where to Continue

GoalPage
Understand partition and zone configuration in detailPartitions and Zones
Configure notification channels and contactsNotifications
Return to the Security and Alarm overviewSecurity and Alarm Overview
Understand the normalized device model that feeds zonesDevice Normalization