-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRockerSwitch4Rocker.F6_03_02.json
More file actions
51 lines (50 loc) · 2.05 KB
/
RockerSwitch4Rocker.F6_03_02.json
File metadata and controls
51 lines (50 loc) · 2.05 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
48
49
50
51
{
"id": "http://openinterconnect.org/enoceanmapping/schemas/RockerSwitch4Rocker.F6_03_02.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Rocker Switch, 4 Rocker EEP F6-03-02",
"definitions": {
"F6_03_02": {
"type": "object",
"properties": {
"Rocker1stAction": {
"type": "number",
"description": "1st action of Rocker",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.button",
"x-to-ocf": [
"if (Rocker1stAction == 0):",
" /Button1ResURI/oic.r.button.value = true",
"else if (Rocker1stAction == 1):",
" /Button1ResURI/oic.r.button.value = false",
"else if (Rocker1stAction == 2):",
" /Button2ResURI/oic.r.button.value = true",
"else if (Rocker1stAction == 3):",
" /Button2ResURI/oic.r.button.value = false",
"else if (Rocker1stAction == 4):",
" /Button3ResURI/oic.r.button.value = true",
"else if (Rocker1stAction == 5):",
" /Button3ResURI/oic.r.button.value = false",
"else if (Rocker1stAction == 6):",
" /Button4ResURI/oic.r.button.value = true",
"else if (Rocker1stAction == 7):",
" /Button4ResURI/oic.r.button.value = false"
],
"x-from-ocf": [
"N/A"
]
}
}
}
}
},
"type": "object",
"allOf": [
{
"$ref": "#/definitions/F6_03_02"
}
],
"required": [
"Rocker1stAction"
]
}