-
-
Notifications
You must be signed in to change notification settings - Fork 361
Lock Mechanism
A HomeKit Lock Mechanism.
Type | Device Type |
---|---|
4 | Lock Mechanism |
The following configuration is available for lock mechanisms:
Section | Key | Description |
---|---|---|
Actions | "a" | The actions performed by the accessory |
State Inputs | "f[n]" | Inputs that trigger a fixed event |
Ping State Inputs | "q[n]" | Ping input to set a state |
Accessory Notifications | "m" | Notifications to send to another accessory |
Initial State | "s" | State a lock accessory enters on boot |
{
"c": {
"b": [{ "g": 0, "t": 5 }]
},
"a": [{
"t": 4,
"f0": [{ "g": 0, "t": 1 }],
"f1": [{ "g": 0, "t": 2 }],
}]
}
This is an example of a lock mechanism... ???
A lock mechanism has two actions.
Action | Press | Description |
---|---|---|
"0" | UNLOCK | (default) |
"1" | LOCK |
The Digital Outputs
"r": [{}]
for each should be configured to attain the desired state.
The list of notifications "m"
supported by a lock mechanism are as follows:
Value | Notification |
---|---|
0 | Lock UNLOCK (default) |
1 | Lock LOCK |
Accessory notifications can be included as part of an action definition.
When an action occurs any one of the above notifications can be sent to
another accessory using the "m"
option within the action object.
See the general Accessory Notifications section for details of how to configure these notifications.
State inputs are defined by an "f[n]"
key contained within the accessory
object. Where [n]
is the number of the associated state.
Key | Required State |
---|---|
"f0" | Unlocked |
"f1" | Locked |
Refer to State Inputs for more detail and examples.
ICMP Ping inputs are defined by an "q[n]"
key contained within the accessory
object. Where [n]
is the number of the associated state.
Key | State |
---|---|
"q0" | Set state to On |
"q1" | Set state to Off |
Refer to ICMP Ping Inputs for more detail and examples.
Initial state is defined by the "s"
key contained within the accessory object.
Key | State | Description |
---|---|---|
"s" | 0 | UNLOCKED |
1 | LOCKED (default) | |
4 | Defined by fixed state inputs | |
5 | Last state before restart | |
6 | Opposite to last state before restart |
The initial state that a lock mechanism 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