-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzwave.operation.multilevelswitchcommandclass.json
More file actions
34 lines (34 loc) · 1.31 KB
/
zwave.operation.multilevelswitchcommandclass.json
File metadata and controls
34 lines (34 loc) · 1.31 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
{
"id": "http://openinterconnect.org/zwavemapping/schemas/zwave.operation.multilevelswtichcommandclass.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Multilevel Switch Command Class",
"definitions": {
"zwave.operation.multilevelswitchcommandclass": {
"type": "object",
"properties": {
"Value": {
"type" : "integer, boolean",
"description": "multilevel value in a supporting device",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.switch.binary, oic.r.light.dimming",
"x-to-ocf": [
"if value = 0, ocf.rt = oic.r.switch.binary & ocf.r.switch.binary.value = false",
"otherwise: ocf.rt = oic.r.light.dimming; ocf.r.light.dimming.dimmingSetting = value"
],
"x-from-ocf": [
"value = dimmingSetting",
"if ocf.rt = oic.r.switch.binary, value = ocf.r.switch.binary.value",
"if ocf.rt = oic.r.light.dimming, value = dimmingSetting"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/zwave.operation.multilevelswitchcommandclass"}
],
"required": ["Value"]
}