Skip to content

Commit 8bc89d3

Browse files
marktrayerData Model Work Group Chair
authored andcommitted
Approved: ZWave-Derived-Cleveland
1 parent c764d73 commit 8bc89d3

10 files changed

+669
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"id": "http://openinterconnect.org/zwavemapping/schemas/zwave.operation.batterycommandclass.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Battery Command Class",
6+
"definitions": {
7+
"zwave.operation.batterycommandclass": {
8+
"type": "object",
9+
"properties": {
10+
"Battery Level": {
11+
"type": [
12+
"if Battery Level = 255, string",
13+
"if Battery Level != 255, integer"
14+
],
15+
"description": "percentage indicating the battery level or low battery warning",
16+
"x-ocf-conversion": {
17+
"x-ocf-alias": "oic.r.energy.battery",
18+
"x-to-ocf": [
19+
"if Battery Level = 255, ocf.r.energy.battery.lowbattery = true; ocf.r.energy.battery.charge = 0.",
20+
"if Battery Level != 255, ocf.r.energy.battery.charge = Battery Level."
21+
],
22+
"x-from-ocf": [
23+
"N/A"
24+
]
25+
}
26+
}
27+
}
28+
}
29+
},
30+
"type": "object",
31+
"allOf": [
32+
{"$ref": "#/definitions/zwave.operation.batterycommandclass"}
33+
],
34+
"required": ["Battery Level"]
35+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"id": "http://openinterconnect.org/zwavemapping/schemas/zwave.operation.binaryswitchcommandclass.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Binary Switch Command Classs",
6+
"definitions": {
7+
"zwave.operation.binaryswitchcommandclass": {
8+
"type": "object",
9+
"properties": {
10+
"Value": {
11+
"type" : "boolean",
12+
"description": "On/Off state at the receiving node",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.switch.binary",
15+
"x-to-ocf": [
16+
"if Value = 255, ocf.r.switch.binary.value = true.",
17+
"if Value != 255, ocf.r.switch.binary.value = false."
18+
],
19+
"x-from-ocf": [
20+
"if ocf.r.switch.binary.value = false, Value = 0",
21+
"if ocf.r.switch.binary.value = true, Value = 255"
22+
23+
]
24+
}
25+
}
26+
}
27+
}
28+
},
29+
"type": "object",
30+
"allOf": [
31+
{"$ref": "#/definitions/zwave.operation.binaryswitchcommandclass"}
32+
],
33+
"required": ["Value"]
34+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"id": "http://openinterconnect.org/zwavemapping/schemas/zwave.operation.doorlockcommandclass.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Door Lock Command Class",
6+
"definitions": {
7+
"zwave.operation.doorlockcommandclass": {
8+
"type": "object",
9+
"properties": {
10+
"Door Lock Mode": {
11+
"type" : "integer",
12+
"description": "operation mode of the door lock device",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.lock.status",
15+
"x-to-ocf": [
16+
"if Door Lock Mode = 0x00, ocf.r.lock.status.lockState = UnLocked",
17+
"if Door Lock Mode = 0xFF, ocf.r.lock.status.lockState = Locked"
18+
],
19+
"x-from-ocf": [
20+
"if ocf.r.lock.status.lockState = Unlocked, Door Lock Mode = 0x00",
21+
"if ocf.r.lock.status.lockState = Locked, Door Lock Mode = 0xFF"
22+
]
23+
}
24+
}
25+
}
26+
}
27+
},
28+
"type": "object",
29+
"allOf": [
30+
{"$ref": "#/definitions/zwave.operation.doorlockcommandclass"}
31+
],
32+
"required": ["Door Lock Mode"]
33+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"id": "http://openinterconnect.org/zwavemapping/schemas/zwave.operation.multilevelsensorcommandclasscarbondioxide.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Multilevel Sensor Command Class Carbon Dioxide",
6+
"definitions": {
7+
"zwave.operation.multilevelsensorcommandclasscarbondioxide": {
8+
"type": "object",
9+
"properties": {
10+
"Sensor Type": {
11+
"type" : "Integer",
12+
"description": " specify the carbon dioxide sensor type of the actual sensor reading ",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.sensor.carbondioxide",
15+
"x-to-ocf": [
16+
"if Sensor Type = Carbon dioxide CO2-level, ocf.rt = oic.r.sensor.carbondioxide."
17+
],
18+
"x-from-ocf": [
19+
"N/A"
20+
]
21+
}
22+
},
23+
"Precision": {
24+
"type" : "Number",
25+
"description": " indicate how many decimal places are included the Sensor Value field ",
26+
"x-ocf-conversion": {
27+
"x-ocf-alias": "oic.r.sensor.carbondioxide",
28+
"x-to-ocf": [
29+
"ocf.r.sensor.carbondioxide.precision = Precision"
30+
],
31+
"x-from-ocf": [
32+
"N/A"
33+
]
34+
}
35+
},
36+
"Scale": {
37+
"type" : "Integer",
38+
"description": " indicate what scale is used for the actual sensor reading ",
39+
"x-ocf-conversion": {
40+
"x-ocf-alias": "oic.r.sensor.carbondioxide",
41+
"x-to-ocf": [
42+
"N/A"
43+
],
44+
"x-from-ocf": [
45+
"Scale = ppm (0x00)"
46+
]
47+
}
48+
},
49+
"Size": {
50+
"type" : "enum",
51+
"description": " indicate the length in bytes of the Sensor Value field ",
52+
"x-ocf-conversion": {
53+
"x-ocf-alias": "oic.r.sensor.carbondioxide",
54+
"x-to-ocf": [
55+
"N/A"
56+
],
57+
"x-from-ocf": [
58+
"N/A"
59+
]
60+
}
61+
},
62+
"Sensor Value": {
63+
"type" : "array",
64+
"description": " specify the value of the actual sensor reading ",
65+
"x-ocf-conversion": {
66+
"x-ocf-alias": "oic.r.sensor.carbondioxide",
67+
"x-to-ocf": [
68+
"ocf.r.sensor.carbondioxide.value = true",
69+
"ocf.r.sensor.carbondioxide.measurement = Sensor Value"
70+
],
71+
"x-from-ocf": [
72+
"N/A"
73+
]
74+
}
75+
}
76+
}
77+
}
78+
},
79+
"type": "object",
80+
"allOf": [
81+
{"$ref": "#/definitions/zwave.operation.multilevelsensorcommandclasscarbondioxide"}
82+
],
83+
"required": ["Sensor Type", "Precision", "Scale", "Size", "Sensor Value"]
84+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"id": "http://openinterconnect.org/zwavemapping/schemas/zwave.operation.multilevelsensorcommandclasscarbonmonoxide.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Multilevel Sensor Command Class Carbon Monoxide",
6+
"definitions": {
7+
"zwave.operation.multilevelsensorcommandclasscarbonmonoxide": {
8+
"type": "object",
9+
"properties": {
10+
"Sensor Type": {
11+
"type" : "Integer",
12+
"description": " specify the carbon monoxidesensor type of the actual sensor reading ",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.sensor.carbonmonoxide",
15+
"x-to-ocf": [
16+
"if Sensor Type = Carbon monoxide (CO) level, ocf.rt = oic.r.sensor.carbonmonoxide."
17+
],
18+
"x-from-ocf": [
19+
"N/A"
20+
]
21+
}
22+
},
23+
"Precision": {
24+
"type" : "Number",
25+
"description": " indicate how many decimal places are included the Sensor Value field ",
26+
"x-ocf-conversion": {
27+
"x-ocf-alias": "oic.r.sensor.carbonmonoxide",
28+
"x-to-ocf": [
29+
"ocf.r.sensor.carbonmonoxide.precision = Precision"
30+
],
31+
"x-from-ocf": [
32+
"N/A"
33+
]
34+
}
35+
},
36+
"Scale": {
37+
"type" : "Integer",
38+
"description": " indicate what scale is used for the actual sensor reading ",
39+
"x-ocf-conversion": {
40+
"x-ocf-alias": "oic.r.sensor.carbonmonoxide",
41+
"x-to-ocf": [
42+
"N/A"
43+
],
44+
"x-from-ocf": [
45+
"Scale = ppm (0x01)"
46+
]
47+
}
48+
},
49+
"Size": {
50+
"type" : "enum",
51+
"description": " indicate the length in bytes of the Sensor Value field ",
52+
"x-ocf-conversion": {
53+
"x-ocf-alias": "oic.r.sensor.carbonmonoxide",
54+
"x-to-ocf": [
55+
"N/A"
56+
],
57+
"x-from-ocf": [
58+
"N/A"
59+
]
60+
}
61+
},
62+
"Sensor Value": {
63+
"type" : "array",
64+
"description": " specify the value of the actual sensor reading ",
65+
"x-ocf-conversion": {
66+
"x-ocf-alias": "oic.r.sensor.carbonmonoxide",
67+
"x-to-ocf": [
68+
"ocf.r.sensor.carbonmonoxide.value = true",
69+
"ocf.r.sensor.carbonmonoxide.measurement = Sensor Value"
70+
],
71+
"x-from-ocf": [
72+
"N/A"
73+
]
74+
}
75+
}
76+
}
77+
}
78+
},
79+
"type": "object",
80+
"allOf": [
81+
{"$ref": "#/definitions/zwave.operation.multilevelsensorcommandclasscarbonmonoxide"}
82+
],
83+
"required": ["Sensor Type", "Precision", "Scale", "Size", "Sensor Value"]
84+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"id": "http://openinterconnect.org/zwavemapping/schemas/zwave.operation.multilevelsensorcommandclasssmokedensity.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
5+
"title": "Multilevel Sensor Command Class Smoke Density",
6+
"definitions": {
7+
"zwave.operation.multilevelsensorcommandclasssmokedensity": {
8+
"type": "object",
9+
"properties": {
10+
"Sensor Type": {
11+
"type" : "Integer",
12+
"description": " specify the smoke density sensor type of the actual sensor reading ",
13+
"x-ocf-conversion": {
14+
"x-ocf-alias": "oic.r.sensor.smoke",
15+
"x-to-ocf": [
16+
"if Sensor Type = Smoke density, ocf.rt = oic.r.sensor.smoke."
17+
],
18+
"x-from-ocf": [
19+
"N/A"
20+
]
21+
}
22+
},
23+
"Precision": {
24+
"type" : "Number",
25+
"description": " indicate how many decimal places are included the Sensor Value field ",
26+
"x-ocf-conversion": {
27+
"x-ocf-alias": "oic.r.sensor.smoke",
28+
"x-to-ocf": [
29+
"ocf.r.sensor.smoke.precision = Precision"
30+
],
31+
"x-from-ocf": [
32+
"N/A"
33+
]
34+
}
35+
},
36+
"Scale": {
37+
"type" : "Integer",
38+
"description": " indicate what scale is used for the actual sensor reading ",
39+
"x-ocf-conversion": {
40+
"x-ocf-alias": "oic.r.sensor.smoke",
41+
"x-to-ocf": [
42+
"N/A"
43+
],
44+
"x-from-ocf": [
45+
"Scale = percent (0x00)"
46+
]
47+
}
48+
},
49+
"Size": {
50+
"type" : "enum",
51+
"description": " indicate the length in bytes of the Sensor Value field ",
52+
"x-ocf-conversion": {
53+
"x-ocf-alias": "oic.r.sensor.smoke",
54+
"x-to-ocf": [
55+
"N/A"
56+
],
57+
"x-from-ocf": [
58+
"N/A"
59+
]
60+
}
61+
},
62+
"Sensor Value": {
63+
"type" : "array",
64+
"description": " specify the value of the actual sensor reading ",
65+
"x-ocf-conversion": {
66+
"x-ocf-alias": "oic.r.sensor.smoke",
67+
"x-to-ocf": [
68+
"ocf.r.sensor.smoke.value = true",
69+
"ocf.r.sensor.smoke.measurement = Sensor Value"
70+
],
71+
"x-from-ocf": [
72+
"N/A"
73+
]
74+
}
75+
}
76+
}
77+
}
78+
},
79+
"type": "object",
80+
"allOf": [
81+
{"$ref": "#/definitions/zwave.operation.multilevelsensorcommandclasssmokedensity"}
82+
],
83+
"required": ["Sensor Type", "Precision", "Scale", "Size", "Sensor Value"]
84+
}

0 commit comments

Comments
 (0)