initial upload
[apps/native/smart-surveillance-camera.git] / shared / res / resource.json
1 {
2         "resources": {
3                 "single": [
4                         {
5                                 "uri": "/capability/switch/main/0",
6                                 "types": [
7                                         "x.com.st.powerswitch"
8                                 ],
9                                 "interfaces": [
10                                         "oic.if.a",
11                                         "oic.if.baseline"
12                                 ]
13                         },
14                         {
15                                 "uri": "/capability/motionSensor/main/0",
16                                 "types": [
17                                   "oic.r.sensor.motion"
18                                 ],
19                                 "interfaces": [
20                                   "oic.if.s",
21                                   "oic.if.baseline"
22                                 ]
23                         },
24                         {
25                                 "uri": "/capability/switchLevel/main/0",
26                                 "types": [
27                                   "oic.r.light.dimming"
28                                 ],
29                                 "interfaces": [
30                                   "oic.if.a",
31                                   "oic.if.baseline"
32                                 ]
33                         },
34                         {
35                                 "uri": "/capability/audioVolume/main/0",
36                                 "types": [
37                                         "x.com.st.audiovolume"
38                                 ],
39                                 "interfaces": [
40                                         "oic.if.a",
41                                         "oic.if.baseline"
42                                 ]
43                         }
44                 ]
45         },
46         "resourceTypes": [
47                 {
48                         "type": "x.com.st.powerswitch",
49                         "properties": [
50                                 {
51                                         "key": "power",
52                                         "type": "string",
53                                         "mandatory": true,
54                                         "description": "State of the power switch.",
55                                         "enumDescription": ["on", "off"]
56                                 }
57                         ]
58                 },
59                 {
60                         "type": "oic.r.sensor.motion",
61                         "properties": [
62                                 {
63                                         "key": "value",
64                                         "type": "boolean",
65                                         "mandatory": true,
66                                         "description": "motion detect"
67                                 }
68                         ]
69                 },
70                 {
71                         "type": "oic.r.light.dimming",
72                         "properties": [
73                                 {
74                                 "key": "dimmingSetting",
75                                 "type": "integer",
76                                 "mandatory": true,
77                                 "description": "test dimming value."
78                                 }
79                         ]
80                 },
81                 {
82                         "type": "x.com.st.audiovolume",
83                         "properties": [
84                                 {
85                                         "key": "volume",
86                                         "type": "integer",
87                                         "mandatory": true,
88                                         "description": "Volume setting of an audio rendering device."
89                                 },
90                                 {
91                                         "key": "mute",
92                                         "type": "boolean",
93                                         "mandatory": true,
94                                         "description": "Mute setting of an audio rendering device"
95                                 },
96                                 {
97                                         "key": "command",
98                                         "type": "string",
99                                         "description": "Comand for controlling",
100                                         "enumDescription": ["increase", "decrease", "max", "min"]
101                                 }
102                         ]
103                 }
104         ]
105 }