Skip to content

Security System

José Antonio Jiménez Campos edited this page Jul 19, 2021 · 24 revisions

A Security System, that can be used to trigger an alarm and send notifications. Can be activated with a group of sensors using HomeKit automations.

Type Service Type
55 Security System

The following configuration is available:

Section Key Description
Actions "0", "1" etc. The actions performed by the service
State & Status Inputs "f[n]" & "g[n]" Inputs that manage service state
Service Notifications "m" Notifications to send by another service

Example

{
  "a": [{
    "t": 55,
    "es":[{
      "h": 2,
      "i": 1,
      "1": { "m": [ [ 1, 4 ] ] }
    }]
  }]
}

This is an example of a security system ("t": 55) with a hidden switch used to trigger alarm when security system is activated.

Actions

A stateless button has three actions.

Action Press Description
"0" Single (default)
"1" Double
"2" Long

Service Notifications

The list of notifications "m" supported are as follows:

Value Notification
0 Single press (default)
1 Double press
2 Long press

See the general Service Notifications section for details of how to configure these notifications.

State and Status Inputs

State inputs "f[n]" & Status Inputs "g[n]" are supported by this service. The supported list is:

Key Required State
"f0" Single press
"f1" Double press
"f2" Long press

Refer to State Inputs for more detail and examples.

Clone this wiki locally