-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzcl.onoff.control.json
More file actions
47 lines (47 loc) · 1.33 KB
/
zcl.onoff.control.json
File metadata and controls
47 lines (47 loc) · 1.33 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"id": "http://openinterconnect.org/zigbeemapping/schemas/zcl.onoff.control.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "On/Off Cluster - Control",
"definitions": {
"zcl.onoff.control.on": {
"properties": {
"onoff": {
"type": "boolean",
"description": "Turn on the device",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.switch.binary",
"x-from-ocf": [
"if ocf.value = true, zcl.command.onoff::on()."
],
"x-to-ocf": [
"N/A"
]
}
}
}
},
"zcl.onoff.control.off": {
"properties": {
"onoff": {
"type": "boolean",
"description": "Turn off the device",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.switch.binary",
"x-from-ocf": [
"if ocf.value = false, zcl.command.onoff::off()."
],
"x-to-ocf": [
"N/A"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/zcl.onoff.control.on"},
{"$ref": "#/definitions/zcl.onoff.control.off"}
]
}