Dominevo
ReferenceDevice capabilities

alarm-panel

Alarm-panel cap.

Alarm-panel cap. Models HA alarm_control_panel.* on DeviceType.AlarmPanel. State follows HA's canonical lifecycle across disarmed / armed_(home|away|night|vacation|custom_bypass) / arming / pending / triggered / disarming.

Many panels require a PIN code on arm / disarm — the optional code field on the methods passes it through to the upstream service; it's NEVER persisted in the runtime slice or any event payload. Whether a code is required is the slice's codeRequired (#459): null when the provider cannot tell.

availableModes mirrors HA's supported_features-derived arm mode list — the UI renders only the buttons the panel accepts.

At a glance

Capabilityalarm-panel
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typesalarm-panel
Sourcepackages/types/src/capabilities/alarm-panel.cap.ts

Methods

Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.

MethodKindRequired of a providerAccess
triggermutationyesprotected
disarmmutationyesprotected
armmutationyesprotected

trigger

mutation

Force the panel into the triggered state — used by HA automations to surface external sensor events through the panel (e.g. a Reolink camera intrusion event firing the security system). Provider rejects when the panel hardware doesn't support a software-initiated trigger.

Input

No fields besides deviceId.

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
alarm.triggerTrigger alarm

disarm

mutation

Input

FieldTypeRequiredDescription
codestringno

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
alarm.disarmDisarmstate = "disarmed"

arm

mutation

Input

FieldTypeRequiredDescription
mode"home" | "away" | "night" | "vacation" | "custom_bypass"yes
codestringnoOptional PIN code. Required when codeRequired === true. Passed through to the upstream service; never persisted.

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
alarm.arm.homeArm homestate = "armed_home"
alarm.arm.awayArm awaystate = "armed_away"
alarm.arm.nightArm nightstate = "armed_night"
alarm.arm.vacationArm vacationstate = "armed_vacation"
alarm.arm.custom_bypassArm custom bypassstate = "armed_custom_bypass"

Runtime state

The state Dominevo keeps for each device with this capability, readable without calling the provider.

Runtime-state slice — mirrored by the kernel. UI panel reads the full slice; renders an arm button per availableModes entry and a PIN field iff codeRequired === true.

FieldTypeRequiredDescription
state"disarmed" | "armed_home" | "armed_away" | "armed_night" | "armed_vacation" | "armed_custom_bypass" | "arming" | "disarming" | "pending" | "triggered"yesCurrent lifecycle state.
targetMode"home" | "away" | "night" | "vacation" | "custom_bypass" | nullnoThe arm mode the machine belongs to under transitional words (arming / pending / triggered / disarming). null when disarmed or when a provider cannot name one. .optional() so a restored pre-field slice still parses; exporters treat absent the same as null (no remembered mode).
availableModes("home" | "away" | "night" | "vacation" | "custom_bypass")[]yesSubset of arm modes the panel accepts. UI renders one button per mode in this list.
codeRequiredboolean | nullyesWhether the panel requires a PIN on arm / disarm (#459; the field was requiresCode, and the alarm-pin-required device feature is gone). null = the provider cannot tell, never false. A slice restored from before the rename is upgraded at boot by restoredFieldRenames.
lastChangedAtnumberyesMs epoch when the slice was last updated.