-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSmokeDetector.F6_05_02.json
More file actions
34 lines (34 loc) · 1014 Bytes
/
SmokeDetector.F6_05_02.json
File metadata and controls
34 lines (34 loc) · 1014 Bytes
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
{
"id": "http://openinterconnect.org/enoceanmapping/schemas/SmokeDetector.F6_05_02.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2019 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Smoke Detector EEP F6-05-02",
"definitions": {
"F6_05_02": {
"type": "object",
"properties": {
"smokestatus": {
"type": "number",
"description": "Smoke detector",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.sensor.smoke",
"x-to-ocf": [
"if (smokestatus==0):",
" oic.r.sensor.smoke.value = false",
"else if (smokestatus==16):",
" oic.r.sensor.smoke.value = true"
],
"x-from-ocf": [
"N/A"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/F6_05_02"}
],
"required": [ "smokestatus"]
}