-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathonem2m.m.alarmspeaker.json
More file actions
57 lines (57 loc) · 1.71 KB
/
onem2m.m.alarmspeaker.json
File metadata and controls
57 lines (57 loc) · 1.71 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
{
"id": "http://openinterconnect.org/onem2mmapping/schemas/onem2m.m.alarmspeaker.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Alarm Speaker",
"definitions": {
"onem2m.m.alarmspeaker": {
"type": "object",
"properties": {
"tone": {
"type": "integer",
"description": "Representing the tones of the alarm",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.audiovolume",
"x-to-ocf": [
"oic.r.audio.volume = tone * 20"
],
"x-from-ocf": [
"tone = oic.r.audio.volume / 20"
]
}
},
"Light": {
"type": "integer",
"description": "Representing the lighting mode of the alarm.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.light.dimming",
"x-to-ocf": [
"oic.r.light.dimming = Light"
],
"x-from-ocf": [
"Light = oic.r.light.dimming"
]
}
},
"alarmStatus": {
"type": "boolean",
"description": "true indicates the alarm start while false indicates the alarm stop.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.switch.binary",
"x-to-ocf": [
"oic.r.switch.binary.value = alarmStatus"
],
"x-from-ocf": [
"alarmStatus = oic.r.switch.binary.value"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/onem2m.m.airqualitysensor"}
],
"required": [ "alarmStatus" ]
}