Repository navigation
Actions
github-actions[bot] edited this page Nov 25, 2026
·
5 revisions
| Action | Target | Fields | What it does |
|---|---|---|---|
protege_wx.arm |
alarm panel |
mode (required): away, stay or instant. force: true or false (default false). code: a PIN |
Arm in one of the controller's own modes, optionally forcing it (open zones are left out until disarmed). force can't be used with stay
|
protege_wx.arm_when_ready |
alarm panel |
mode: away, home or night (default away). minutes: 1 to 240 (default from the options, 30). code: a PIN |
Arm as soon as every zone is closed, or give up after minutes. See Arm when ready
|
protege_wx.unlock_door |
lock |
hold_open: true or false (default false). code: a PIN, needed only when unlocking needs one |
Unlock for the door's programmed unlock time, after which the controller locks it again. hold_open: true latches it unlocked until something locks it |
protege_wx.visitor_unlock |
lock |
minutes: 1 to 240 (default from the options, 15). code: as above |
Hold unlocked for minutes, then Home Assistant locks it |
protege_wx.bypass |
zone sensor |
mode (required): none, temporary (until disarmed) or permanent. code: a PIN |
With PINs set up, bypassing a zone in an armed area needs a code from a user who can disarm |
protege_wx.pulse_output |
output switch |
seconds (required): 1 to 65535 |
On for seconds, timed by the controller |
protege_wx.lockdown |
none: every door on every controller | none | Lock every door, for an emergency or a night routine. See Lockdown |
protege_wx.set_user_enabled |
alarm panel |
user (required): the user's name. enabled (required): true or false |
Turn a user's PIN on or off without opening the options, for example a cleaner's PIN only on cleaning days |
The two arm actions take different words on purpose, and each accepts only its own:
-
protege_wx.armtakes the controller's modes:away,stay(the controller's partial arm, leaving stay-type zones out) andinstant(no entry delay). -
protege_wx.arm_when_readytakes Home Assistant's modes, the same as the alarm panel's buttons:away,home(arms the controller instay) andnight(arms whatever Night is set to for that area in the options:instantby default, orstay).
So mode: home is refused by protege_wx.arm, and mode: stay is refused by protege_wx.arm_when_ready.
protege_wx.lockdown sends each door's normal lock command, one door after another. It also locks doors that are held open or unlocked by a schedule, and cancels any visitor unlock.
- Admins only. A Home Assistant user who isn't an administrator is refused. Automations and scripts can run it.
- No PIN. Locking only makes the site more secure, so, as with locking one door, it never asks for a PIN, even with "Require a PIN to unlock doors" on.
- Logged. The logbook and the Home Assistant log say who ran it and how many doors locked, and the controller's own event log shows each door locked by the integration's operator.
- A door that doesn't lock doesn't stop the rest. The action then fails with the names of the doors that didn't lock.
- It isn't the controller's lockdown mode. The web interface has no lockdown command, so cards, keypads, exit buttons and schedules still work as normal, and a door schedule can unlock a door again at its next change. There's no "end lockdown": unlock the doors you want as usual.
There's no lockdown button, because a button can't check who pressed it: put the action in a script if you want one on a dashboard, and only admins can run it from there.
The standard alarm_control_panel.* and lock.* actions work too.
# Force-arm away at night, even if a window was left open
action: protege_wx.arm
target:
entity_id: alarm_control_panel.alarm
data:
mode: away
force: true# Let the cleaner in for an hour
action: protege_wx.visitor_unlock
target:
entity_id: lock.front_door
data:
minutes: 60# Leave the garage window out of tonight's arm
action: protege_wx.bypass
target:
entity_id: binary_sensor.garage_window
data:
mode: temporary# Open the gate: pulse its output for 2 seconds
action: protege_wx.pulse_output
target:
entity_id: switch.gate
data:
seconds: 2# Arm in stay mode as soon as everything is closed, waiting up to 10 minutes
action: protege_wx.arm_when_ready
target:
entity_id: alarm_control_panel.alarm
data:
mode: home
minutes: 10
code: "1234"# Hold the front door unlocked until someone locks it
action: protege_wx.unlock_door
target:
entity_id: lock.front_door
data:
hold_open: true# Lock every door when the panic button is pressed
action: protege_wx.lockdown# Turn the cleaner's PIN off
action: protege_wx.set_user_enabled
target:
entity_id: alarm_control_panel.alarm
data:
user: Cleaner
enabled: falseEdit these pages in docs/ on GitHub. The wiki is rebuilt from there.
Getting started
Using it
Behind the scenes