-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzcl.occupancysensing.info.json
More file actions
32 lines (32 loc) · 1.13 KB
/
zcl.occupancysensing.info.json
File metadata and controls
32 lines (32 loc) · 1.13 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
{
"id": "http://openinterconnect.org/zigbeemapping/schemas/zcl.occupancysensing.info.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Occupancy Sensing Cluster - Information",
"definitions": {
"zcl.occupancysensing.info": {
"type": "object",
"properties": {
"occupancy": {
"type": "number",
"description": " x is a variable. Data type of occupancy in Zigbee is 8 bitmap (xxxxxxxx) while data type of value in OCF is boolean type i.e., true=occupied, false=unoccupied",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.sensor.presence",
"x-to-ocf": [
"if occupancy =xxxxxxx0, then ocf.value = false",
"if occupancy =xxxxxxx1, then ocf.value = true"
],
"x-from-ocf": [
"N/A"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/zcl.occupancysensing.info"}
],
"required": [ "occupancy"]
}