-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRockerSwitch2Rocker.F6_02_03.json
More file actions
43 lines (42 loc) · 1.56 KB
/
RockerSwitch2Rocker.F6_02_03.json
File metadata and controls
43 lines (42 loc) · 1.56 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
{
"id": "http://openinterconnect.org/enoceanmapping/schemas/RockerSwitch2Rocker.F6_02_03.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Rocker Switch, 2 Rocker EEP F6-02-03",
"definitions": {
"F6_02_03": {
"type": "object",
"properties": {
"RockerAction": {
"type": "number",
"description": "Action Code of Rocker",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.button",
"x-to-ocf": [
"if (RockerAction == 48):",
" /Button1ResURI/oic.r.button.value = true",
"else if (RockerAction == 16):",
" /Button1ResURI/oic.r.button.value = false",
"else if (RockerAction == 112):",
" /Button2ResURI/oic.r.button.value = true",
"else if (RockerAction == 80):",
" /Button2ResURI/oic.r.button.value = false"
],
"x-from-ocf": [
"N/A"
]
}
}
}
}
},
"type": "object",
"allOf": [
{
"$ref": "#/definitions/F6_02_03"
}
],
"required": [
"RockerAction"
]
}