Integrations

Alarm control panel

Spook adds an action to the alarm control panel integration of Home Assistant that sets the default code of alarm control panels, so a dashboard or automation does not ask for it.

The alarm control panel integration is the one behind every alarm system in Home Assistant. Most of them want a code to arm or disarm, and Home Assistant can keep a default code for those, so a dashboard button or an automation does not have to ask.

Home Assistant offers that setting one alarm panel at a time, in its settings. Spook adds an action that sets it from an automation or a script, on as many alarm panels as you like.

Actions

Spook adds one action to the alarm control panel integration. You find it wherever you add an action, marked with a 👻.

Set default code

Sets the code one or more alarm control panels use when an action gives none.

The same setting as Default code in the settings of an alarm control panel. Set it, and the automation that arms the house when the last person leaves does not need the code written in it.

Home Assistant hands an alarm panel its default code whatever the panel says about codes, so any alarm panel takes one. That includes panels that want a code to arm without saying what it looks like, like many MQTT alarm panels, which cannot be armed from a dashboard without one.

A code is a secret. Spook itself never writes it in a log, never repeats it in an error, and never shows it back to you. Home Assistant does keep it in a few places of its own: see the known limitations. To take a code away, set it again, empty.

How to use it

  1. Open the automation or script that should do this, and select Add action.
  2. Search for default code, and select Alarm control panel: Set default code 👻.
  3. Under Entity, pick the alarm control panels.
  4. Type the code under Default code.
  5. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

Use cases

What people use this for:

  • Arm the alarm from an automation when the last person leaves, without the code in the automation.
  • Set the same code on every alarm panel in one action, instead of opening each one in the UI.

Missing something here?

An action, an entity or a repair this integration should have? Say so. Stuck, or found a bug? There is help.