-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoneM2M.m.filterinfo.json
More file actions
58 lines (58 loc) · 1.82 KB
/
oneM2M.m.filterinfo.json
File metadata and controls
58 lines (58 loc) · 1.82 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
{
"id": "http://openinterconnect.org/onem2mmapping/schemas/onem2m.m.filterinfo.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Filter Info",
"definitions": {
"onem2m.m.filterinfo": {
"type": "object",
"properties": {
"usedTime": {
"type": "integer",
"description": "Cumulative used time in second of a filter.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.consumable",
"x-to-ocf": [
"oic.r.consumable.typeofconsumable = \"water filter\"",
"oic.r.consumable.usedtime = usedTime"
],
"x-from-ocf": [
"usedTime = oic.r.consumable.usedtime"
]
}
},
"needsReplacement": {
"type": "boolean",
"description": "This value indicates that the filter needs to be replaced.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.sensor",
"x-to-ocf": [
"oic.r.sensor.value = needsReplacement"
],
"x-from-ocf": [
"needsReplacement = oic.r.sensor.value"
]
}
},
"filterLifetime": {
"type": "integer",
"description": "Percentage life time remaining for the water filter.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.consumable",
"x-to-ocf": [
"oic.r.consumable.remaining = filterLifetime"
],
"x-from-ocf": [
"filterLifetime = oic.r.consumable.remaining"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/onem2m.m.filterinfo"}
],
"required": [ "usedTime" ]
}