-
-
Notifications
You must be signed in to change notification settings - Fork 360
Security System
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 |
---|---|---|
Modes | "n" | Customize modes to use |
Actions | "0", "1" etc. | The actions performed by the service |
Service Notifications | "m" | Notifications to send by another service |
Initial State | "s" | State an service enters on boot |
Actions on Boot | "xa" | Enable / Disable execution of service actions on boot |
{
"a": [{
"t": 55,
"s": 5,
"es":[{
"i": 1,
"1": { "m": [ [ 1, 4 ] ] }
}]
}]
}
This is an example of a security system ("t": 55
) with a switch used
to trigger alarm when security system is activated. If you want to use a hidden
switch not visible in Apple Home App, add "h":2
to switch service.
Key | Default | Description |
---|---|---|
"n" | [ 0, 1, 2, 3 ] | (default) |
Standard HomeKit Security System has 4 modes (Descriptions by @Unteins):
-
0
At Home. People at home, ignore some sensors like your front door sensor and your motion sensors because you’re coming and going through the house -
1
Away from Home. No one at home, listen to ALL the sensors and sound alarms. -
2
Night. everyone should be inside, ignore motion sensors in the house because we might get a glass of water in the middle of the night but all door and window sensors should trigger alarms because no one should be going on and out. -
3
Off. self explanatory.
You can override those modes and select your own combination declaring "n":[...]
array with modes that you want. For example, to have only 2 states: "n":[1,3]
IMPORTANT: Order must be from lower to higher.
Some modes combinations could not work in HomeKit.
Key | Action | Description |
---|---|---|
"0" | Stay at Home mode selected | (default) |
"1" | Away from Home mode selected | |
"2" | Night mode selected | |
"3" | OFF mode selected | |
"4" | Alarm triggered | |
"5" | Alarm triggered when Stay at Home mode selected | |
"6" | Alarm triggered when Away from Home mode selected | |
"7" | Alarm triggered when Night mode selected | |
"8" | Alarm is stopped |
The list of notifications "m"
supported are as follows:
Value | Notification |
---|---|
0 | Set Stay at Home mode |
1 | Set Away from Home mode |
2 | Set Night mode |
3 | Set OFF mode |
4 | Trigger alarm |
5 | Trigger alarm if Stay at Home mode selected |
6 | Trigger alarm if Away from Home mode selected |
7 | Trigger alarm if Night mode selected |
8 | Stop alarm |
10 | Set Stay at Home mode status only |
11 | Set Away from Home mode status only |
12 | Set Night mode status only |
13 | Set OFF mode status only |
Setting status only will not exec any associated action.
See the general Service Notifications section for details of how to configure these notifications.
Initial state is defined by the "s"
key contained within the accessory object.
Key | State | Description |
---|---|---|
"s" | 0 | At Home |
1 | Away from Home | |
2 | Night | |
3 | OFF (default) | |
5 | Last state before restart |
The initial state that a service enters on boot can be set using the "s"
option.
Home Accessory Architect
Home Accessory
Installation
Setup Mode
HAA Home Manager App
Configuration
About
General
| GPIOs Configuration
Accessory
| Actions
Service Types
Air Quality
Battery
Data History
Fan
Free Monitor
Garage Door
HAA iAirZoning
Heater Cooler
Humidifier
Light Sensor
Lightbulb
Lock Mechanism
Sensors
Power Measure
Security System
Stateless Button & Doorbell
Switch & Outlet
Temperature & Humidity
TV
Water Valve
Window Covering