-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKeyCardSwitch.F6_04_01.json
More file actions
39 lines (38 loc) · 1.28 KB
/
KeyCardSwitch.F6_04_01.json
File metadata and controls
39 lines (38 loc) · 1.28 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
{
"id": "http://openinterconnect.org/enoceanmapping/schemas/KeyCardSwitch.F6_04_01.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Key Card Switch, EEP F6-04-01",
"definitions": {
"F6_04_01": {
"type": "object",
"properties": {
"KeyCard": {
"type": "number",
"description": "Valid Key Card inserted or Taken out",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.keycardswitch",
"x-to-ocf": [
"if (KeyCard == 112):",
" oic.r.keycardswitch.stateofcard = 'validCardInserted'",
"else:",
" oic.r.keycardswitch.stateofcard = 'validCardNotInserted'"
],
"x-from-ocf": [
"N/A"
]
}
}
}
}
},
"type": "object",
"allOf": [
{
"$ref": "#/definitions/F6_04_01"
}
],
"required": [
"KeyCard"
]
}