initial upload
[apps/native/smart-surveillance-camera.git] / smartthings-plugin / manifest / ui.json
1 {
2   "n": "YOUR_DEVICE_NAME",
3   "version": "0.0.1",
4   "vid": "",
5   "mnmn": "",
6   "language": [
7     {
8       "locale": "en_US",
9       "version": "0.0.1",
10       "poCodes": [
11         {
12           "po": "___PO_CODE_POWERSWITCH_ON",
13           "label": "On"
14         },
15         {
16           "po": "___PO_CODE_POWERSWITCH_OFF",
17           "label": "Off"
18         },
19         {
20           "po": "___PO_CODE_POWERSWITCH",
21           "label": "Power"
22         },
23         {
24           "label": "Command",
25           "po": "___PO_CODE_AUDIOVOLUME_COMMAND"
26         },
27         {
28           "label": "Increase",
29           "po": "___PO_CODE_AUDIOVOLUME_INCREASE"
30         },
31         {
32           "label": "Decrease",
33           "po": "___PO_CODE_AUDIOVOLUME_DECREASE"
34         },
35         {
36           "label": "Max",
37           "po": "___PO_CODE_AUDIOVOLUME_MAX"
38         },
39         {
40           "label": "Min",
41           "po": "___PO_CODE_AUDIOVOLUME_MIN"
42         },
43         {
44           "label": "Volume",
45           "po": "___PO_CODE_AUDIOVOLUME_VOLUME"
46         },
47         {
48           "label": "Mute",
49           "po": "___PO_CODE_AUDIOVOLUME_MUTE"
50         },
51         {
52           "label": "Unmute",
53           "po": "___PO_CODE_AUDIOVOLUME_UNMUTE"
54         },
55         {
56           "label": "Volume",
57           "po": "___PO_CODE_AUDIOVOLUME_MUTE_ACTION"
58         },
59         {
60           "label": "Motion sensor",
61           "po": "___PO_CODE_MOTIONSENSOR"
62         },
63         {
64           "label": "No motion",
65           "po": "___PO_CODE_MOTIONSENSOR_NO_MOTION"
66         },
67         {
68           "label": "Motion detected",
69           "po": "___PO_CODE_MOTIONSENSOR_MOTION_DETECTED"
70         },
71         {
72           "label": "Dimmer",
73           "po": "___PO_CODE_SWITCHLEVEL_DIMMING"
74         }
75       ],
76       "mnmn": "",
77       "vid": ""
78     }
79   ],
80   "ma": [
81     {
82       "name": "PowerSwitch",
83       "type": "main",
84       "order": 1,
85       "link": {
86         "href": "/capability/switch/main/0",
87         "if": "oic.if.a",
88         "rt": "x.com.st.powerswitch"
89       },
90       "iconUrl": {
91         "vector": "",
92         "small": "",
93         "large": "",
94         "mid": "icon://ic_function_power_switch"
95       },
96       "property": "power",
97       "controlType": "ToggleSwitch",
98       "alternatives": [
99         {
100           "key": "on",
101           "value": "___PO_CODE_POWERSWITCH_ON"
102         },
103         {
104           "key": "off",
105           "value": "___PO_CODE_POWERSWITCH_OFF",
106           "type": "inactive"
107         }
108       ],
109       "step": 0,
110       "label": {
111         "label": "___PO_CODE_POWERSWITCH"
112       },
113       "emphasis": false
114     }
115   ],
116   "ms": [
117     {
118       "name": "PowerSwitch",
119       "type": "device",
120       "order": 1,
121       "label": {
122         "label": "<var1>",
123         "arguments": [
124           {
125             "n": "var1",
126             "href": "/capability/switch/main/0",
127             "property": "power",
128             "valueType": null,
129             "alternatives": [
130               {
131                 "key": "on",
132                 "value": "___PO_CODE_POWERSWITCH_ON"
133               },
134               {
135                 "key": "off",
136                 "value": "___PO_CODE_POWERSWITCH_OFF",
137                 "type": "inactive"
138               }
139             ]
140           }
141         ]
142       },
143       "emphasis": false
144     }
145   ],
146   "dpInfo": [
147     {
148       "os": "android",
149       "dpType": "vendorPlugIn",
150       "dpUri": "wwst://iot2018"
151     },
152     {
153       "os": "ios",
154       "dpType": "vendorPlugIn",
155       "dpUri": "wwst://iot2018"
156     }
157   ],
158   "dpResources": [
159     {
160       "name": "PowerSwitch",
161       "controllable": true,
162       "order": 1,
163       "link": {
164         "href": "/capability/switch/main/0",
165         "if": "oic.if.a",
166         "rt": "x.com.st.powerswitch"
167       },
168       "iconUrl": {
169         "vector": "",
170         "small": "",
171         "large": "",
172         "mid": "icon://ic_function_power_switch"
173       },
174       "property": "power",
175       "controlType": "ToggleSwitch",
176       "alternatives": [
177         {
178           "key": "on",
179           "value": "___PO_CODE_POWERSWITCH_ON"
180         },
181         {
182           "key": "off",
183           "value": "___PO_CODE_POWERSWITCH_OFF",
184           "type": "inactive"
185         }
186       ],
187       "step": 0,
188       "label": {
189         "label": "___PO_CODE_POWERSWITCH"
190       },
191       "emphasis": true,
192       "ruleEvent": false,
193       "ruleAction": true
194     },
195     {
196       "name": "PowerSwitch",
197       "controllable": true,
198       "order": 2,
199       "link": {
200         "href": "/capability/switch/main/0",
201         "if": "oic.if.a",
202         "rt": "x.com.st.powerswitch"
203       },
204       "iconUrl": {
205         "vector": "",
206         "small": "",
207         "large": "",
208         "mid": "icon://ic_function_power_switch"
209       },
210       "property": "power",
211       "controlType": "ToggleSwitch",
212       "alternatives": [
213         {
214           "key": "on",
215           "value": "___PO_CODE_POWERSWITCH_ON"
216         },
217         {
218           "key": "off",
219           "value": "___PO_CODE_POWERSWITCH_OFF",
220           "type": "inactive"
221         }
222       ],
223       "step": 0,
224       "label": {
225         "label": "___PO_CODE_POWERSWITCH"
226       },
227       "emphasis": true,
228       "ruleEvent": false,
229       "ruleAction": false
230     },
231     {
232       "name": "PowerSwitch",
233       "controllable": true,
234       "order": 3,
235       "link": {
236         "href": "/capability/switch/main/0",
237         "if": "oic.if.a",
238         "rt": "x.com.st.powerswitch"
239       },
240       "iconUrl": {
241         "vector": "",
242         "small": "",
243         "large": "",
244         "mid": "icon://ic_function_power_switch"
245       },
246       "property": "power",
247       "controlType": "ToggleSwitch",
248       "alternatives": [
249         {
250           "key": "on",
251           "value": "___PO_CODE_POWERSWITCH_ON"
252         },
253         {
254           "key": "off",
255           "value": "___PO_CODE_POWERSWITCH_OFF",
256           "type": "inactive"
257         }
258       ],
259       "step": 0,
260       "label": {
261         "label": "___PO_CODE_POWERSWITCH"
262       },
263       "emphasis": true,
264       "ruleEvent": true,
265       "ruleAction": false
266     },
267     {
268       "controlType": "List",
269       "name": "Audio Volume Command",
270       "controllable": true,
271       "property": "command",
272       "emphasis": false,
273       "link": {
274         "rt": "x.com.st.audiovolume",
275         "href": "/capability/audioVolume/main/0",
276         "if": "oic.if.a"
277       },
278       "iconUrl": {
279         "vector": "",
280         "small": "",
281         "large": "",
282         "mid": "icon://ic_function_audio_volume"
283       },
284       "alternatives": [
285         {
286           "value": "___PO_CODE_AUDIOVOLUME_INCREASE",
287           "key": "increase"
288         },
289         {
290           "value": "___PO_CODE_AUDIOVOLUME_DECREASE",
291           "key": "decrease"
292         },
293         {
294           "value": "___PO_CODE_AUDIOVOLUME_MAX",
295           "key": "max"
296         },
297         {
298           "value": "___PO_CODE_AUDIOVOLUME_MIN",
299           "key": "min"
300         }
301       ],
302       "step": 0,
303       "label": {
304         "label": "___PO_CODE_AUDIOVOLUME_COMMAND",
305         "n": "Audio Volume Command"
306       },
307       "ruleEvent": false,
308       "ruleAction": false,
309       "order": 4
310     },
311     {
312       "controlType": "List",
313       "name": "Audio Volume Command",
314       "controllable": true,
315       "property": "command",
316       "emphasis": false,
317       "link": {
318         "rt": "x.com.st.audiovolume",
319         "href": "/capability/audioVolume/main/0",
320         "if": "oic.if.a"
321       },
322       "iconUrl": {
323         "vector": "",
324         "small": "",
325         "large": "",
326         "mid": "icon://ic_function_audio_volume"
327       },
328       "alternatives": [
329         {
330           "value": "___PO_CODE_AUDIOVOLUME_INCREASE",
331           "key": "increase"
332         },
333         {
334           "value": "___PO_CODE_AUDIOVOLUME_DECREASE",
335           "key": "decrease"
336         },
337         {
338           "value": "___PO_CODE_AUDIOVOLUME_MAX",
339           "key": "max"
340         },
341         {
342           "value": "___PO_CODE_AUDIOVOLUME_MIN",
343           "key": "min"
344         }
345       ],
346       "step": 0,
347       "label": {
348         "label": "___PO_CODE_AUDIOVOLUME_COMMAND",
349         "n": "Audio Volume Command"
350       },
351       "ruleEvent": false,
352       "ruleAction": true,
353       "order": 5
354     },
355     {
356       "controlType": "List",
357       "name": "Audio Volume Command",
358       "controllable": true,
359       "property": "command",
360       "emphasis": false,
361       "link": {
362         "rt": "x.com.st.audiovolume",
363         "href": "/capability/audioVolume/main/0",
364         "if": "oic.if.a"
365       },
366       "iconUrl": {
367         "vector": "",
368         "small": "",
369         "large": "",
370         "mid": "icon://ic_function_audio_volume"
371       },
372       "alternatives": [
373         {
374           "value": "___PO_CODE_AUDIOVOLUME_INCREASE",
375           "key": "increase"
376         },
377         {
378           "value": "___PO_CODE_AUDIOVOLUME_DECREASE",
379           "key": "decrease"
380         },
381         {
382           "value": "___PO_CODE_AUDIOVOLUME_MAX",
383           "key": "max"
384         },
385         {
386           "value": "___PO_CODE_AUDIOVOLUME_MIN",
387           "key": "min"
388         }
389       ],
390       "step": 0,
391       "label": {
392         "label": "___PO_CODE_AUDIOVOLUME_COMMAND",
393         "n": "Audio Volume Command"
394       },
395       "ruleEvent": true,
396       "ruleAction": false,
397       "order": 6
398     },
399     {
400       "controlType": "slider",
401       "name": "Audio Volume",
402       "controllable": true,
403       "property": "volume",
404       "emphasis": false,
405       "link": {
406         "rt": "x.com.st.audiovolume",
407         "href": "/capability/audioVolume/main/0",
408         "if": "oic.if.a"
409       },
410       "iconUrl": {
411         "vector": "",
412         "small": "",
413         "large": "",
414         "mid": "icon://ic_function_audio_volume"
415       },
416       "range": [
417         0,
418         100
419       ],
420       "step": 0,
421       "label": {
422         "label": "___PO_CODE_AUDIOVOLUME_VOLUME",
423         "n": "Volume"
424       },
425       "ruleEvent": false,
426       "ruleAction": false,
427       "order": 7
428     },
429     {
430       "controlType": "slider",
431       "name": "Audio Volume",
432       "controllable": true,
433       "property": "volume",
434       "emphasis": false,
435       "link": {
436         "rt": "x.com.st.audiovolume",
437         "href": "/capability/audioVolume/main/0",
438         "if": "oic.if.a"
439       },
440       "iconUrl": {
441         "vector": "",
442         "small": "",
443         "large": "",
444         "mid": "icon://ic_function_audio_volume"
445       },
446       "range": [
447         0,
448         100
449       ],
450       "step": 0,
451       "label": {
452         "label": "___PO_CODE_AUDIOVOLUME_VOLUME",
453         "n": "Volume"
454       },
455       "ruleEvent": false,
456       "ruleAction": true,
457       "order": 8
458     },
459     {
460       "ruleAction": false,
461       "emphasis": false,
462       "controllable": false,
463       "step": 0,
464       "link": {
465         "rt": "oic.r.sensor.motion",
466         "href": "/capability/motionSensor/main/0",
467         "if": "oic.if.r"
468       },
469       "controlType": "List",
470       "name": "Motion Sensor",
471       "label": {
472         "label": "___PO_CODE_MOTIONSENSOR",
473         "n": "ST Motion Sensor resource"
474       },
475       "iconUrl": {
476         "mid": "icon://ic_function_motion_sensor",
477         "large": "",
478         "small": "",
479         "vector": ""
480       },
481       "ruleEvent": false,
482       "alternatives": [
483         {
484           "type": "inactive",
485           "value": "___PO_CODE_MOTIONSENSOR_NO_MOTION",
486           "key": "false"
487         },
488         {
489           "value": "___PO_CODE_MOTIONSENSOR_MOTION_DETECTED",
490           "key": "true"
491         }
492       ],
493       "order": 9,
494       "property": "value"
495     },
496     {
497       "ruleAction": false,
498       "emphasis": false,
499       "controllable": false,
500       "step": 0,
501       "link": {
502         "rt": "oic.r.sensor.motion",
503         "href": "/capability/motionSensor/main/0",
504         "if": "oic.if.r"
505       },
506       "controlType": "List",
507       "name": "Motion Sensor",
508       "label": {
509         "label": "___PO_CODE_MOTIONSENSOR",
510         "n": "ST Motion Sensor resource"
511       },
512       "iconUrl": {
513         "mid": "icon://ic_function_motion_sensor",
514         "large": "",
515         "small": "",
516         "vector": ""
517       },
518       "ruleEvent": true,
519       "alternatives": [
520         {
521           "type": "inactive",
522           "value": "___PO_CODE_MOTIONSENSOR_NO_MOTION",
523           "key": "false"
524         },
525         {
526           "value": "___PO_CODE_MOTIONSENSOR_MOTION_DETECTED",
527           "key": "true"
528         }
529       ],
530       "order": 10,
531       "property": "value"
532     },
533     {
534       "ruleAction": true,
535       "controllable": true,
536       "range": [
537         1,
538         100
539       ],
540       "link": {
541         "rt": "oic.r.light.dimming",
542         "href": "/capability/switchLevel/main/0",
543         "if": "oic.if.a"
544       },
545       "step": 0,
546       "controlType": "List",
547       "name": "Switch Level",
548       "label": {
549         "label": "___PO_CODE_SWITCHLEVEL_DIMMING",
550         "n": "st dimming level resource"
551       },
552       "emphasis": false,
553       "ruleEvent": false,
554       "iconUrl": {
555         "mid": "icon://ic_function_light_dimmer",
556         "large": "",
557         "small": "",
558         "vector": ""
559       },
560       "order": 11,
561       "property": "dimmingSetting"
562     },
563     {
564       "ruleAction": false,
565       "controllable": true,
566       "range": [
567         1,
568         100
569       ],
570       "link": {
571         "rt": "oic.r.light.dimming",
572         "href": "/capability/switchLevel/main/0",
573         "if": "oic.if.a"
574       },
575       "step": 0,
576       "controlType": "List",
577       "name": "Switch Level",
578       "label": {
579         "label": "___PO_CODE_SWITCHLEVEL_DIMMING",
580         "n": "st dimming level resource"
581       },
582       "emphasis": false,
583       "ruleEvent": false,
584       "iconUrl": {
585         "mid": "icon://ic_function_light_dimmer",
586         "large": "",
587         "small": "",
588         "vector": ""
589       },
590       "order": 12,
591       "property": "dimmingSetting"
592     }
593   ]
594 }