-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzwave.operation.doorlockcommandclass.json
More file actions
33 lines (33 loc) · 1.19 KB
/
zwave.operation.doorlockcommandclass.json
File metadata and controls
33 lines (33 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"id": "http://openinterconnect.org/zwavemapping/schemas/zwave.operation.doorlockcommandclass.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Door Lock Command Class",
"definitions": {
"zwave.operation.doorlockcommandclass": {
"type": "object",
"properties": {
"Door Lock Mode": {
"type" : "integer",
"description": "operation mode of the door lock device",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.lock.status",
"x-to-ocf": [
"if Door Lock Mode = 0x00, ocf.r.lock.status.lockState = UnLocked",
"if Door Lock Mode = 0xFF, ocf.r.lock.status.lockState = Locked"
],
"x-from-ocf": [
"if ocf.r.lock.status.lockState = Unlocked, Door Lock Mode = 0x00",
"if ocf.r.lock.status.lockState = Locked, Door Lock Mode = 0xFF"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/zwave.operation.doorlockcommandclass"}
],
"required": ["Door Lock Mode"]
}