-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPushButton.F6_01_01.json
More file actions
37 lines (36 loc) · 1.16 KB
/
PushButton.F6_01_01.json
File metadata and controls
37 lines (36 loc) · 1.16 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
{
"id": "http://openinterconnect.org/enoceanmapping/schemas/PushButton.F6_01_01.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Push Button, EEP F6-01-01",
"definitions": {
"F6_01_01": {
"type": "object",
"properties": {
"PushButton": {
"type": "number",
"description": "Simple Button with Released/Pressed Mechanism",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.button",
"x-to-ocf": [
"if (PushButton == 1):",
" oic.r.button.value = !oic.r.button.value"
],
"x-from-ocf": [
"N/A"
]
}
}
}
}
},
"type": "object",
"allOf": [
{
"$ref": "#/definitions/F6_01_01"
}
],
"required": [
"PushButton"
]
}