-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLightTemperatureOccupancySensor.A5_08_03.json
More file actions
65 lines (63 loc) · 1.95 KB
/
LightTemperatureOccupancySensor.A5_08_03.json
File metadata and controls
65 lines (63 loc) · 1.95 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"id": "http://openinterconnect.org/enoceanmapping/schemas/LightTemperatureOccupancySensor.A5_08_03.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Light, Temperature and Occupancy Sensor EEP A5-08-03",
"definitions": {
"A5_08_03": {
"type": "object",
"properties": {
"PIR": {
"type": "number",
"description": "Occupancy",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.sensor.presence",
"x-to-ocf": [
"if (PIR==0):",
" oic.r.sensor.presence.value = true",
"else:",
" oic.r.sensor.presence.value = false"
],
"x-from-ocf": [
"N/A"
]
}
},
"lightsensor": {
"type": "number",
"description": "Current Illuminance in Lux",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.sensor.illuminance",
"x-to-ocf": [
"oic.r.sensor.illuminance.illuminance = lightsensor",
"oic.r.sensor.illuminance.range = [0.0, 1530.0]"
],
"x-from-ocf": [
"N/A"
]
}
},
"temperature": {
"type": "number",
"description": "Current Temperature",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.temperature",
"x-to-ocf": [
"oic.r.temperature.temperature = temperature",
"oic.r.temperature.units = C",
"oic.r.temperature.range = [-30.0, 50.0]"
],
"x-from-ocf": [
"N/A"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/A5_08_03"}
],
"required": [ "PIR", "temperature", "lightsensor"]
}