source: branches/UI5Update/D_DenonReceiver1.json @ 36

Revision 36, 15.2 KB checked in by zoot1612, 11 years ago (diff)

This will probably break things
Changes: -
Moved Volume and Mute to:Service: urn:upnp-org:serviceId:RenderingControl
Moved Input 1-10 to :urn:micasaverde-com:serviceId:InputSelection1
Changed naming to main zone that once initial setup is done you can change the name and it will stick, if the setup is run again this name will be reset.

Line 
1        {
2            "flashicon": "icons/music_audio.png",
3            "iconText": "1",
4            "imgIconBody": "",
5            "imgIconDimmable": "",
6            "imgIconTurnable": "",
7            "imgIconMin": "",
8            "imgIconMax": "",
9            "halloIconsDir": "pics/hallo",
10            "inScene": "1",
11            "DisplayStatus": {
12                "Style": "numeric",
13                "Service": "urn:upnp-org:serviceId:RenderingControl1",
14                "Variable": "Volume",
15                "MinValue": "0",
16                "MaxValue": "98"
17            },
18            "doc_url": {
19                "doc_language": 1,
20                "doc_manual": 1,
21                "doc_version": 1,
22                "doc_platform": 0,
23                "doc_page": "devices"
24            },
25            "ToggleButton": 1,
26            "Tabs": [{
27                "Label": {
28                    "lang_tag": "tabname_control",
29                    "text": "Volume/Inputs"
30                },
31                "Position": "0",
32                "TabType": "flash",
33                "SceneGroup": [
34                    {
35                        "id": "1",
36                        "top": "1.5",
37                        "left": "0"
38                    }, {
39                        "id": "2",
40                        "top": "0.5",
41                        "left": "0"
42                    }, {
43                        "id": "3",
44                        "top": "2.75",
45                        "left": "0"
46                    }
47                ],
48                "ControlGroup": [{
49                    "id": "1",
50                    "isSingle": "1",
51                    "scenegroup": "1"
52                }, {
53                    "id": "2",
54                    "isSingle": "1",
55                    "scenegroup": "1"
56                }, {
57                    "id": "3",
58                    "isSingle": "1",
59                    "scenegroup": "2"
60                }, {
61                    "id": "4",
62                    "isSingle": "1",
63                    "scenegroup": "2"
64                }, {
65                    "id": "5",
66                    "scenegroup": "3"
67                }],
68                "Control": [{
69                    "ControlGroup": "1",
70                    "ControlType": "button",
71                    "Label": {
72                        "lang_tag": "cmd_off",
73                        "text": "Off"
74                    },
75                    "top": "0",
76                    "left": "0",
77                    "Display": {
78                        "Service": "urn:upnp-org:serviceId:SwitchPower1",
79                        "Variable": "Status",
80                        "Value": "0",
81                        "Top": 40,
82                        "Left": 10,
83                        "Width": 70,
84                        "Height": 20
85                    },
86                    "Command": {
87                        "Service": "urn:upnp-org:serviceId:SwitchPower1",
88                        "Action": "SetTarget",
89                        "Parameters": [{
90                            "Name": "newTargetValue",
91                            "Value": "0"
92                        }]
93                    }
94                }, {
95                    "ControlGroup": "2",
96                    "ControlType": "button",
97                    "Label": {
98                        "lang_tag": "cmd_on",
99                        "text": "On"
100                    },
101                    "top": "0",
102                    "left": "1",
103                    "Display": {
104                        "Service": "urn:upnp-org:serviceId:SwitchPower1",
105                        "Variable": "Status",
106                        "Value": "1",
107                        "Top": 40,
108                        "Left": 100,
109                        "Width": 70,
110                        "Height": 20
111                    },
112                    "Command": {
113                        "Service": "urn:upnp-org:serviceId:SwitchPower1",
114                        "Action": "SetTarget",
115                        "Parameters": [{
116                            "Name": "newTargetValue",
117                            "Value": "1"
118                        }]
119                    }
120                }, {
121                    "ControlGroup": "3",
122                    "ControlType": "button",
123                    "Label": {
124                        "lang_tag": "cmd_off",
125                        "text": "Standby"
126                    },
127                    "top": "0",
128                    "left": "0",
129                    "Display": {
130                        "Service": "urn:denon-com:serviceId:Receiver1",
131                        "Variable": "PowerStatus",
132                        "Value": "0",
133                        "Top": 10,
134                        "Left": 10,
135                        "Width": 70,
136                        "Height": 20
137                    },
138                    "Command": {
139                        "Service": "urn:micasaverde-com:serviceId:DiscretePower1",
140                        "Action": "Off",
141                        "Parameters": [{
142                            "Name": "Off",
143                            "Value": "0"
144                        }]
145                    }
146                }, {
147                    "ControlGroup": "4",
148                    "ControlType": "button",
149                    "Label": {
150                        "lang_tag": "cmd_on",
151                        "text": "Main On"
152                    },
153                    "top": "0",
154                    "left": "1",
155                    "Display": {
156                        "Service": "urn:denon-com:serviceId:Receiver1",
157                        "Variable": "PowerStatus",
158                        "Value": "1",
159                        "Top": 10,
160                        "Left": 100,
161                        "Width": 70,
162                        "Height": 20
163                    },
164                    "Command": {
165                        "Service": "urn:micasaverde-com:serviceId:DiscretePower1",
166                        "Action": "On",
167                        "Parameters": [{
168                            "Name": "On",
169                            "Value": "1"
170                        }]
171                    }
172                }, {
173                    "ControlGroup": "5",
174                    "ControlType": "slider",
175                    "top": "0",
176                    "left": "0",
177                    "ControlHeader": "1",
178                    "ID": "newTargetValue",
179                    "Style": "numeric",
180                    "Display": {
181                        "Service": "urn:upnp-org:serviceId:RenderingControl1",
182                        "Variable": "Volume",
183                        "MinValue": "0",
184                        "MaxValue": "98",
185                        "Top": 70,
186                        "Left": 10,
187                        "Width": 200,
188                        "Height": 20
189                    },
190                    "Command": {
191                        "Service": "urn:upnp-org:serviceId:RenderingControl1",
192                        "Action": "SetVolume",
193                        "Parameters": [{
194                            "Name": "DesiredVolume",
195                            "ID": "DesiredVolume"
196                        }]
197                    }
198                }, {
199                    "ControlType": "label",
200                    "Label": {
201                        "lang_tag": "lblMsg",
202                        "text": "Input:",
203                        "text_align": "left"
204                    },
205                    "Display": {
206                        "Top": 160,
207                        "Left": 10,
208                        "Width": 75,
209                        "Height": 20
210                    }
211                }, {
212                    "ControlType": "variable",
213                    "Display": {
214                        "Service": "urn:denon-com:serviceId:Receiver1",
215                        "Variable": "Input",
216                        "Top": 160,
217                        "Left": 120,
218                        "Width": 70,
219                        "Height": 20
220                    }
221                }, {
222                    "ControlType": "label",
223                    "Label": {
224                        "lang_tag": "lblMsg",
225                        "text": "Source:",
226                        "text_align": "left"
227                    },
228                    "Display": {
229                        "Top": 180,
230                        "Left": 10,
231                        "Width": 75,
232                        "Height": 20
233                    }
234                }, {
235                    "ControlType": "variable",
236                    "Display": {
237                        "Service": "urn:denon-com:serviceId:Receiver1",
238                        "Variable": "Source",
239                        "Top": 180,
240                        "Left": 120,
241                        "Width": 70,
242                        "Height": 20
243                    }
244                }, {
245                    "ControlType": "label",
246                    "Label": {
247                        "lang_tag": "lblMsg",
248                        "text": "Surround Mode:",
249                        "text_align": "left"
250                    },
251                    "Display": {
252                        "Top": 200,
253                        "Left": 10,
254                        "Width": 75,
255                        "Height": 20
256                    }
257                }, {
258                    "ControlType": "variable",
259                    "Display": {
260                        "Service": "urn:denon-com:serviceId:Receiver1",
261                        "Variable": "Surround",
262                        "Top": 200,
263                        "Left": 120,
264                        "Width": 70,
265                        "Height": 20
266                    }
267                }, {
268                    "ControlType": "label",
269                    "Label": {
270                        "lang_tag": "lblMsg",
271                        "text": "Video:",
272                        "text_align": "left"
273                    },
274                    "Display": {
275                        "Top": 220,
276                        "Left": 10,
277                        "Width": 75,
278                        "Height": 20
279                    }
280                }, {
281                    "ControlType": "variable",
282                    "Display": {
283                        "Service": "urn:denon-com:serviceId:Receiver1",
284                        "Variable": "Video",
285                        "Top": 220,
286                        "Left": 120,
287                        "Width": 100,
288                        "Height": 20
289                    }
290                }, {
291                    "ControlType": "label",
292                    "Label": {
293                        "lang_tag": "lblMsg",
294                        "text": "Volume:",
295                        "text_align": "left"
296                    },
297                    "Display": {
298                        "Top": 240,
299                        "Left": 10,
300                        "Width": 75,
301                        "Height": 20
302                    }
303                }, {
304                    "ControlType": "variable",
305                    "Display": {
306                        "Service": "urn:upnp-org:serviceId:RenderingControl1",
307                        "Variable": "Volume",
308                        "Top": 240,
309                        "Left": 120,
310                        "Width": 100,
311                        "Height": 20
312                    }
313                }, {
314                    "ControlType": "button",
315                    "Label": {
316                        "lang_tag": "volume_down",
317                        "text": "- Volume"
318                    },
319                    "Display": {
320                        "Top": 130,
321                        "Left": 10,
322                        "Width": 70,
323                        "Height": 20
324                    },
325                    "Command": {
326                        "Service": "urn:micasaverde-com:serviceId:Volume1",
327                        "Action": "Down",
328                        "Parameters": []
329                    }
330                }, {
331                    "ControlType": "button",
332                    "Label": {
333                        "lang_tag": "volume_up",
334                        "text": "+ Volume"
335                    },
336                    "Display": {
337                        "Top": 100,
338                        "Left": 10,
339                        "Width": 70,
340                        "Height": 20
341                    },
342                    "Command": {
343                        "Service": "urn:micasaverde-com:serviceId:Volume1",
344                        "Action": "Up",
345                        "Parameters": []
346                    }
347                }, {
348                    "ControlType": "button",
349                    "Label": {
350                        "lang_tag": "unmute",
351                        "text": "Unmute"
352                    },
353                    "Display": {
354                        "Service": "urn:upnp-org:serviceId:RenderingControl1",
355                        "Variable": "Mute",
356                        "Value": "0",
357                        "Top": 100,
358                        "Left": 100,
359                        "Width": 70,
360                        "Height": 20
361                    },
362                    "Command": {
363                        "Service": "urn:upnp-org:serviceId:RenderingControl1",
364                        "Action": "SetMute",
365                        "Parameters": [{
366                            "Name": "DesiredMute",
367                            "Value": "0"
368                        }]
369                    }
370                }, {
371                    "ControlType": "button",
372                    "Label": {
373                        "lang_tag": "mute",
374                        "text": "mute"
375                    },
376                    "Display": {
377                        "Service": "urn:upnp-org:serviceId:RenderingControl1",
378                        "Variable": "Mute",
379                        "Value": "1",
380                        "Top": 130,
381                        "Left": 100,
382                        "Width": 70,
383                        "Height": 20
384                    },
385                    "Command": {
386                        "Service": "urn:upnp-org:serviceId:RenderingControl1",
387                        "Action": "SetMute",
388                        "Parameters": [{
389                            "Name": "DesiredMute",
390                            "Value": "1"
391                        }]
392                    }
393                },
394        {
395            "ControlType": "button",
396            "Label": {
397                "lang_tag": "Input1",
398                "text": "CD"
399            },
400            "Display": {
401                "Service": "urn:denon-com:serviceId:Receiver1",
402                "Variable": "Input",
403                "Value": "CD",
404                "Top": 30,
405                "Left": 385,
406                "Width": "70",
407                "Height": "20"
408            },          "Command": {
409                "Service": "urn:denon-com:serviceId:Receiver1",
410                "Action": "Input1"
411            }
412    },
413        {
414            "ControlType": "button",
415            "Label": {
416                "lang_tag": "Input2",
417                "text": "DVD"
418            },
419            "Display": {
420                "Service": "urn:denon-com:serviceId:Receiver1",
421                "Variable": "Input",
422                "Value": "DVD",
423                "Top": 30,
424                "Left": 465,
425                "Width": "70",
426                "Height": "20"
427            },          "Command": {
428                "Service": "urn:denon-com:serviceId:Receiver1",
429                "Action": "Input2"
430            }
431    },
432        {
433            "ControlType": "button",
434            "Label": {
435                "lang_tag": "Input3",
436                "text": "PLEX"
437            },
438            "Display": {
439                "Service": "urn:denon-com:serviceId:Receiver1",
440                "Variable": "Input",
441                "Value": "HDP",
442                "Top": 30,
443                "Left": 545,
444                "Width": "70",
445                "Height": "20"
446            },          "Command": {
447                "Service": "urn:denon-com:serviceId:Receiver1",
448                "Action": "Input3"
449            }
450    },
451        {
452            "ControlType": "button",
453            "Label": {
454                "lang_tag": "Input4",
455                "text": "PVR"
456            },
457            "Display": {
458                "Service": "urn:denon-com:serviceId:Receiver1",
459                "Variable": "Input",
460                "Value": "TV/CBL",
461                "Top": 60,
462                "Left": 385,
463                "Width": "70",
464                "Height": "20"
465            },          "Command": {
466                "Service": "urn:denon-com:serviceId:Receiver1",
467                "Action": "Input4"
468            }
469    },
470        {
471            "ControlType": "button",
472            "Label": {
473                "lang_tag": "Input5",
474                "text": "SAT"
475            },
476            "Display": {
477                "Service": "urn:denon-com:serviceId:Receiver1",
478                "Variable": "Input",
479                "Value": "SAT",
480                "Top": 60,
481                "Left": 465,
482                "Width": "70",
483                "Height": "20"
484            },          "Command": {
485                "Service": "urn:denon-com:serviceId:Receiver1",
486                "Action": "Input5"
487            }
488    },
489        {
490            "ControlType": "button",
491            "Label": {
492                "lang_tag": "Input6",
493                "text": "VCR/iPod"
494            },
495            "Display": {
496                "Service": "urn:denon-com:serviceId:Receiver1",
497                "Variable": "Input",
498                "Value": "VCR",
499                "Top": 60,
500                "Left": 545,
501                "Width": "70",
502                "Height": "20"
503            },          "Command": {
504                "Service": "urn:denon-com:serviceId:Receiver1",
505                "Action": "Input6"
506            }
507    },
508        {
509            "ControlType": "button",
510            "Label": {
511                "lang_tag": "Input7",
512                "text": "PS3"
513            },
514            "Display": {
515                "Service": "urn:denon-com:serviceId:Receiver1",
516                "Variable": "Input",
517                "Value": "DVR",
518                "Top": 90,
519                "Left": 385,
520                "Width": "70",
521                "Height": "20"
522            },          "Command": {
523                "Service": "urn:denon-com:serviceId:Receiver1",
524                "Action": "Input7"
525            }
526    },
527        {
528            "ControlType": "button",
529            "Label": {
530                "lang_tag": "Input8",
531                "text": "V.AUX"
532            },
533            "Display": {
534                "Service": "urn:denon-com:serviceId:Receiver1",
535                "Variable": "Input",
536                "Value": "V.AUX",
537                "Top": 90,
538                "Left": 465,
539                "Width": "70",
540                "Height": "20"
541            },          "Command": {
542                "Service": "urn:denon-com:serviceId:Receiver1",
543                "Action": "Input8"
544            }
545    },
546        {
547            "ControlType": "button",
548            "Label": {
549                "lang_tag": "Input9",
550                "text": "TUNER"
551            },
552            "Display": {
553                "Service": "urn:denon-com:serviceId:Receiver1",
554                "Variable": "Input",
555                "Value": "TUNER",
556                "Top": 90,
557                "Left": 545,
558                "Width": "70",
559                "Height": "20"
560            },          "Command": {
561                "Service": "urn:denon-com:serviceId:Receiver1",
562                "Action": "Input9"
563            }
564    },
565        {
566            "ControlType": "button",
567            "Label": {
568                "lang_tag": "Input10",
569                "text": "PHONO"
570            },
571            "Display": {
572                "Service": "urn:denon-com:serviceId:Receiver1",
573                "Variable": "Input",
574                "Value": "PHONO",
575                "Top": 120,
576                "Left": 385,
577                "Width": "70",
578                "Height": "20"
579            },          "Command": {
580                "Service": "urn:denon-com:serviceId:Receiver1",
581                "Action": "Input10"
582            }
583    },
584        {
585            "ControlType": "button",
586            "Label": {
587                "lang_tag": "Input11",
588                "text": "NET/USB"
589            },
590            "Display": {
591                "Service": "urn:denon-com:serviceId:Receiver1",
592                "Variable": "Input",
593                "Value": "NET/USB",
594                "Top": 120,
595                "Left": 465,
596                "Width": "70",
597                "Height": "20"
598            },          "Command": {
599                "Service": "urn:denon-com:serviceId:Receiver1",
600                "Action": "Input11"
601            }
602    }
603                ]
604            }, {
605                "Label": {
606                    "lang_tag": "settings",
607                    "text": "Settings"
608                },
609                "Position": "2",
610                "TabType": "javascript",
611                "ScriptName": "shared.js",
612                "Function": "simple_device"
613            }, {
614                "Label": {
615                    "lang_tag": "advanced",
616                    "text": "Advanced"
617                },
618                "Position": "1",
619                "TabType": "javascript",
620                "ScriptName": "shared.js",
621                "Function": "advanced_device"
622            }, {
623                "Label": {
624                    "lang_tag": "device_options",
625                    "text": "Device Options"
626                },
627                "Position": "3",
628                "TabType": "javascript",
629                "ScriptName": "shared.js",
630                "Function": "device_zwave_options"
631            }, {
632                "Label": {
633                    "lang_tag": "logs",
634                    "text": "Logs"
635                },
636                "Position": "4",
637                "TabType": "javascript",
638                "ScriptName": "shared.js",
639                "Function": "device_logs"
640            }, {
641                "Label": {
642                    "lang_tag": "notifications",
643                    "text": "Notifications"
644                },
645                "Position": "5",
646                "TabType": "javascript",
647                "ScriptName": "shared.js",
648                "Function": "device_notifications"
649            }],
650            "sceneList": {
651                "group_1": {
652                    "cmd_1": {
653                        "label": "ON",
654                        "serviceId": "urn:upnp-org:serviceId:SwitchPower1",
655                        "action": "SetTarget",
656                        "arguments": {
657                            "newTargetValue": "1"
658                        },
659                        "display": {
660                            "service": "urn:upnp-org:serviceId:SwitchPower1",
661                            "variable": "Status",
662                            "value": "1"
663                        }
664                    },
665                    "cmd_2": {
666                        "label": "OFF",
667                        "serviceId": "urn:upnp-org:serviceId:SwitchPower1",
668                        "action": "SetTarget",
669                        "arguments": {
670                            "newTargetValue": "0"
671                        },
672                        "display": {
673                            "service": "urn:upnp-org:serviceId:SwitchPower1",
674                            "variable": "Status",
675                            "value": "0"
676                        }
677                    },
678                    "cmd_3": {
679                    "label": "Set volume",
680                    "serviceId": "urn:denon-com:serviceId:Receiver1",
681                    "action": "SetVolumeTarget",
682                    "argumentList": {
683                        "argument_1": {
684                        "dataType": "ui1",
685                        "defaultValue": "",
686                        "allowedValueRange": {
687                            "minimum": "0",
688                            "maximum": "98"
689                            },
690                            "prefix": "to",
691                            "suffix": "",
692                            "name": "Target Volume"
693                        }
694                     }
695                    }
696                }
697            },
698            "eventList2": [
699                {
700                    "id": 1,
701                    "label": {
702                        "lang_tag": "device_turned_on_off",
703                        "text": "A device is turned on or off"
704                    },
705                    "serviceId": "urn:upnp-org:serviceId:SwitchPower1",
706                    "argumentList": [
707                        {
708                            "id": 1,
709                            "dataType": "boolean",
710                            "defaultValue": "1",
711                            "allowedValueList": [
712                                {
713                                    "Off": "0",
714                                    "HumanFriendlyText": {
715                                        "lang_tag": "hft_device_turned_off",
716                                        "text": "_DEVICE_NAME_ is turned Off"
717                                    }
718                                },
719                                {
720                                    "On": "1",
721                                    "HumanFriendlyText": {
722                                        "lang_tag": "hft_device_turned_on",
723                                        "text": "_DEVICE_NAME_ is turned On"
724                                    }
725                                }
726                            ],
727                            "name": "Status",
728                            "comparisson": "=",
729                            "prefix": {},
730                            "suffix": {}
731                        }
732                    ]
733                }
734            ],
735            "DeviceType": "urn:schemas-denon-com:device:receiver:1"
736        }
Note: See TracBrowser for help on using the repository browser.