-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathonem2m.m.openlevel.json
More file actions
70 lines (70 loc) · 2.39 KB
/
onem2m.m.openlevel.json
File metadata and controls
70 lines (70 loc) · 2.39 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
66
67
68
69
70
{
"id": "http://openinterconnect.org/onem2mmapping/schemas/onem2m.m.openlevel.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Open Level",
"definitions": {
"onem2m.m.openlevel": {
"type": "object",
"properties": {
"openLevel": {
"type": "integer",
"description": "The rounded percentage of the current open level of entity in the range of [0, 100]. 0 percentage shall mean the entity is closed.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.openlevel",
"x-to-ocf": [
"oic.r.openlevel.openLevel = openLevel"
],
"x-from-ocf": [
"openLevel = oic.r.openlevel.openLevel"
]
}
},
"stepValue": {
"type": "integer",
"description": "The step value used by the \"open\" and \"close\" actions.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.openlevel",
"x-to-ocf": [
"oic.r.openlevel.increment = stepValue"
],
"x-from-ocf": [
"stepValue = oic.r.openlevel.increment"
]
}
},
"minLevel": {
"type": "integer",
"description": "The minimum value allowed for the \"openLevel\" status. The default value is 0, which means fully closed.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.openlevel",
"x-to-ocf": [
"oic.r.openlevel.range[0] = minLevel"
],
"x-from-ocf": [
"minLevel = oic.r.openlevel.range[0]"
]
}
},
"maxLevel": {
"type": "integer",
"description": "The maximum value allowed for the \"openLevel\" status. The default value is 100, which means fully opened.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.openlevel",
"x-to-ocf": [
"oic.r.openlevel.range[1] = maxLevel"
],
"x-from-ocf": [
"maxLevel = oic.r.openlevel.range[1]"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/onem2m.m.openlevel"}
],
"required": [ "openLevel" ]
}