Matterbridge security plugin

May 11, 2026 ยท View on GitHub

npm version npm downloads Docker Version Docker Pulls Node.js CI CodeQL codecov styled with prettier linted with eslint TypeScript ESM matterbridge.io

powered by powered by powered by


This plugin allows you to create a security system.

Features

  • Five preconfigured modes: Home, Away, Night, Vacation, Off.
  • Five preconfigured setters: Home, Away, Night, Vacation, Off.
  • Four preconfigured triggers: Home, Away, Night, 24h.
  • Five preconfigured alerts: Home, Away, Night, 24h, Master.

The plugin requires matterbridge v.3.7.2.

Modes

ModeUse
HomeStandard mode when you are at home.
AwayUse when nobody is home (full protection).
NightUse at night (typically perimeter/partial protection).
VacationSame as Away; useful for extended absences and light automations.
OffDisables the security system.

Each mode is exclusive: the other will revert their state.

Mode vacation works exactly like mode away. Is useful to create on the controller some automations that turn on and off internal lights when you are on vacation.

Setters

SetterUse
HomeSets the system mode to Home.
AwaySets the system mode to Away.
NightSets the system mode to Night.
VacationSets the system mode to Vacation.
OffSets the system mode to Off.

Setters will set the corresponding mode and will revert immediately their state.

Is usefull when the controller doesn't allow to lock unlock doors from presence automations. They are enabled by the useSetters config.

Triggers

Triggers are momentary switches you can use in your controller automations to start an alarm.

TriggerUse
HomeTriggers the alarm associated with Home.
AwayTriggers the alarm associated with Away.
NightTriggers the alarm associated with Night.
24hTriggers the alarm associated with 24h.

Triggers will trigger the corresponding alarm and will revert immediately their state.

On your controller you need to create an automation that trigger each trigger.

Alerts

Alerts are the alarm states exposed by the plugin; they stay active for the configured alertTimeout and then reset.

AlertUse
HomeAlert state for Home.
AwayAlert state for Away.
NightAlert state for Night.
24hAlert state for 24h.
MasterGeneral alert state (not tied to a specific mode).