Skip to content

Commit 6b5a2d4

Browse files
joochleeData Model Work Group Chair
authored andcommitted
Approved: CR2994 - Derived Models for EnOcean Bridging
1 parent 719dfa6 commit 6b5a2d4

File tree

52 files changed

+1986
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1986
-0
lines changed

BarometricSensor.A5_05_01.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"id": "http://openinterconnect.org/enoceanmapping/schemas/BarometricSensor.A5_05_01.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Barometric Sensor EEP A5-05-01",
6+
"definitions": {
7+
"A5_05_01": {
8+
"type": "object",
9+
"properties": {
10+
"barometer": {
11+
"type": "number",
12+
"description": "Current Pressure",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.sensor.atmosphericpressure",
15+
"x-to-ocf": [
16+
"oic.r.sensor.atmosphericpressure.atmosphericPressure = barometer",
17+
"oic.r.sensor.atmosphericpressure.range = [500.0, 1150.0]"
18+
],
19+
"x-from-ocf": [
20+
"N/A"
21+
]
22+
}
23+
}
24+
}
25+
}
26+
},
27+
"type": "object",
28+
"allOf": [
29+
{"$ref": "#/definitions/A5_05_01"}
30+
],
31+
"required": [ "barometer"]
32+
}

KeyCardSwitch.F6_04_01.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"id": "http://openinterconnect.org/enoceanmapping/schemas/KeyCardSwitch.F6_04_01.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description": "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Key Card Switch, EEP F6-04-01",
6+
"definitions": {
7+
"F6_04_01": {
8+
"type": "object",
9+
"properties": {
10+
"KeyCard": {
11+
"type": "number",
12+
"description": "Valid Key Card inserted or Taken out",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.keycardswitch",
15+
"x-to-ocf": [
16+
"if (KeyCard == 112):",
17+
" oic.r.keycardswitch.stateofcard = 'validCardInserted'",
18+
"else:",
19+
" oic.r.keycardswitch.stateofcard = 'validCardNotInserted'"
20+
],
21+
"x-from-ocf": [
22+
"N/A"
23+
]
24+
}
25+
}
26+
27+
}
28+
}
29+
},
30+
"type": "object",
31+
"allOf": [
32+
{
33+
"$ref": "#/definitions/F6_04_01"
34+
}
35+
],
36+
"required": [
37+
"KeyCard"
38+
]
39+
}

KeyCardSwitch.F6_04_02.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"id": "http://openinterconnect.org/enoceanmapping/schemas/KeyCardSwitch.F6_04_02.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description": "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Key Card Switch, EEP F6-04-02",
6+
"definitions": {
7+
"F6_04_02": {
8+
"type": "object",
9+
"properties": {
10+
"StateOfCard": {
11+
"type": "number",
12+
"description": "Valid Key Card inserted or Taken out",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.keycardswitch",
15+
"x-to-ocf": [
16+
"if (StateOfCard == 1):",
17+
" oic.r.keycardswitch.stateofcard = 'validCardInserted'",
18+
"else:",
19+
" oic.r.keycardswitch.stateofcard = 'validCardNotInserted'"
20+
],
21+
"x-from-ocf": [
22+
"N/A"
23+
]
24+
}
25+
}
26+
27+
}
28+
}
29+
},
30+
"type": "object",
31+
"allOf": [
32+
{
33+
"$ref": "#/definitions/F6_04_02"
34+
}
35+
],
36+
"required": [
37+
"StateOfCard"
38+
]
39+
}

LightSensor.A5_06_01.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"id": "http://openinterconnect.org/enoceanmapping/schemas/LightSensor.A5_06_01.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Light Sensor EEP A5-06-01",
6+
"definitions": {
7+
"A5_06_01": {
8+
"type": "object",
9+
"properties": {
10+
"lightsensor": {
11+
"type": "number",
12+
"description": "Current Illuminance in Lux",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.sensor.illuminance",
15+
"x-to-ocf": [
16+
"oic.r.sensor.illuminance.illuminance = lightsensor",
17+
"oic.r.sensor.illuminance.range = [300.0, 60000.0]"
18+
],
19+
"x-from-ocf": [
20+
"N/A"
21+
]
22+
}
23+
}
24+
}
25+
}
26+
},
27+
"type": "object",
28+
"allOf": [
29+
{"$ref": "#/definitions/A5_06_01"}
30+
],
31+
"required": [ "lightsensor"]
32+
}

LightSensor.A5_06_02.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"id": "http://openinterconnect.org/enoceanmapping/schemas/LightSensor.A5_06_02.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Light Sensor EEP A5-06-02",
6+
"definitions": {
7+
"A5_06_02": {
8+
"type": "object",
9+
"properties": {
10+
"lightsensor": {
11+
"type": "number",
12+
"description": "Current Illuminance in Lux",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.sensor.illuminance",
15+
"x-to-ocf": [
16+
"oic.r.sensor.illuminance.illuminance = lightsensor",
17+
"oic.r.sensor.illuminance.range = [0.0, 1020.0]"
18+
],
19+
"x-from-ocf": [
20+
"N/A"
21+
]
22+
}
23+
}
24+
}
25+
}
26+
},
27+
"type": "object",
28+
"allOf": [
29+
{"$ref": "#/definitions/A5_06_02"}
30+
],
31+
"required": [ "lightsensor"]
32+
}

LightSensor.A5_06_03.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"id": "http://openinterconnect.org/enoceanmapping/schemas/LightSensor.A5_06_03.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Light Sensor EEP A5-06-03",
6+
"definitions": {
7+
"A5_06_03": {
8+
"type": "object",
9+
"properties": {
10+
"lightsensor": {
11+
"type": "number",
12+
"description": "Current Illuminance in Lux",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.sensor.illuminance",
15+
"x-to-ocf": [
16+
"oic.r.sensor.illuminance.illuminance = lightsensor",
17+
"oic.r.sensor.illuminance.range = [0.0, 1000.0]"
18+
19+
],
20+
"x-from-ocf": [
21+
"N/A"
22+
]
23+
}
24+
}
25+
}
26+
}
27+
},
28+
"type": "object",
29+
"allOf": [
30+
{"$ref": "#/definitions/A5_06_03"}
31+
],
32+
"required": [ "lightsensor"]
33+
}

LightSensor.A5_06_04.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"id": "http://openinterconnect.org/enoceanmapping/schemas/LightSensor.A5_06_04.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Light Sensor EEP A5-06-04",
6+
"definitions": {
7+
"A5_06_04": {
8+
"type": "object",
9+
"properties": {
10+
"lightsensor": {
11+
"type": "number",
12+
"description": "Current Illuminance in Lux",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.sensor.illuminance",
15+
"x-to-ocf": [
16+
"oic.r.sensor.illuminance.illuminance = lightsensor",
17+
"oic.r.sensor.illuminance.range = [0.0, 65535.0]"
18+
19+
20+
],
21+
"x-from-ocf": [
22+
"N/A"
23+
]
24+
}
25+
}
26+
}
27+
}
28+
},
29+
"type": "object",
30+
"allOf": [
31+
{"$ref": "#/definitions/A5_06_04"}
32+
],
33+
"required": [ "lightsensor"]
34+
}

LightSensor.A5_06_05.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"id": "http://openinterconnect.org/enoceanmapping/schemas/LightSensor.A5_06_05.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Light Sensor EEP A5-06-05",
6+
"definitions": {
7+
"A5_06_05": {
8+
"type": "object",
9+
"properties": {
10+
"lightsensor": {
11+
"type": "number",
12+
"description": "Current Illuminance in Lux",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.sensor.illuminance",
15+
"x-to-ocf": [
16+
"oic.r.sensor.illuminance.illuminance = lightsensor",
17+
"oic.r.sensor.illuminance.range = [0.0, 10200.0]"
18+
19+
],
20+
"x-from-ocf": [
21+
"N/A"
22+
]
23+
}
24+
}
25+
}
26+
}
27+
},
28+
"type": "object",
29+
"allOf": [
30+
{"$ref": "#/definitions/A5_06_05"}
31+
],
32+
"required": [ "lightsensor"]
33+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"id": "http://openinterconnect.org/enoceanmapping/schemas/LightTemperatureOccupancySensor.A5_08_01.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Light, Temperature and Occupancy Sensor EEP A5-08-01",
6+
"definitions": {
7+
"A5_08_01": {
8+
"type": "object",
9+
"properties": {
10+
"PIR": {
11+
"type": "number",
12+
"description": "Occupancy",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.sensor.presence",
15+
"x-to-ocf": [
16+
"if (PIR==0):",
17+
" oic.r.sensor.presence.value = true",
18+
"else:",
19+
" oic.r.sensor.presence.value = false"
20+
],
21+
"x-from-ocf": [
22+
"N/A"
23+
]
24+
}
25+
},
26+
"lightsensor": {
27+
"type": "number",
28+
"description": "Current Illuminance in Lux",
29+
"x-ocf-conversion": {
30+
"x-ocf-alias": "oic.r.sensor.illuminance",
31+
"x-to-ocf": [
32+
"oic.r.sensor.illuminance.illuminance = lightsensor",
33+
"oic.r.sensor.illuminance.range = [0.0, 510.0]"
34+
],
35+
"x-from-ocf": [
36+
"N/A"
37+
]
38+
}
39+
},
40+
"temperature": {
41+
"type": "number",
42+
"description": "Current Temperature",
43+
"x-ocf-conversion": {
44+
"x-ocf-alias": "oic.r.temperature",
45+
"x-to-ocf": [
46+
"oic.r.temperature.temperature = temperature",
47+
"oic.r.temperature.units = C",
48+
"oic.r.temperature.range = [0.0, 51.0]"
49+
],
50+
"x-from-ocf": [
51+
"N/A"
52+
]
53+
}
54+
}
55+
56+
}
57+
}
58+
},
59+
"type": "object",
60+
"allOf": [
61+
{"$ref": "#/definitions/A5_08_01"}
62+
],
63+
"required": [ "PIR", "temperature", "lightsensor"]
64+
}

0 commit comments

Comments
 (0)