@strangely
Thank you for your suggestion. I tried copying/pasting your code snippet but I still get a failure in the Lua code testing area.
I began investigating the Denon plugin further, so as not to try and re-invent the wheel and I think I now understand how to set an input in the advanced section of a scene. However, my Marantz command codes are slightly different. I need to use ‘SISAT/CBL’, for example, to set my input instead of ‘TV/CBL’. Is the proper way to “fix” this to edit one of the script files? I’ve downloaded the I_DenonReceiver1.xml file. Can I make those minor text changes and upload my new version?
I think I understand the relation between the plugin files. For my purposes of changing command text values and the corresponding buttons/names (changing button label from boxes to roku) I need to change the following:
In I_DenonReceiver1.xml
<action>
<serviceId>urn:micasaverde-com:serviceId:InputSelection1</serviceId>
<name>Input1</name>
<run>
-- Main picture Input Select - TV/CBL
sendZoneCommand(lul_device, 'SI', 'TV/CBL', 'DiscreteinputTV')
</run>
</action>
to
<action>
<serviceId>urn:micasaverde-com:serviceId:InputSelection1</serviceId>
<name>Input1</name>
<run>
-- Main picture Input Select - TV/CBL
sendZoneCommand(lul_device, 'SI', 'SAT/CBL', 'DiscreteinputDirecTV')
</run>
</action>
Then within D_DenonReceiver1.json change
{
"ControlType": "button",
"Label": {
"lang_tag": "Input1",
"text": "TV/CBL"
},
"Display": {
"Service": "urn:micasaverde-com:serviceId:InputSelection1",
"Variable": "Input",
"Value": "TV/CBL",
"Top": 145,
"Left": 10,
"Width": 65,
"Height": 20
},
"Command": {
"Service": "urn:micasaverde-com:serviceId:InputSelection1",
"Action": "Input1",
"Parameters": []
to
{
"ControlType": "button",
"Label": {
"lang_tag": "Input1",
"text": "SAT/CBL"
},
"Display": {
"Service": "urn:micasaverde-com:serviceId:InputSelection1",
"Variable": "Input",
"Value": "SAT/CBL",
"Top": 145,
"Left": 10,
"Width": 65,
"Height": 20
},
"Command": {
"Service": "urn:micasaverde-com:serviceId:InputSelection1",
"Action": "Input1",
"Parameters": []
and finally, within S_InputSelection change
<action>
<name>DiscreteinputTV</name>
</action>
to
<action>
<name>DiscreteinputDirecTV</name>
</action>
One thing I don’t fully understand is the Action": “Input1”, tag within the Command code. Is “Input1” an arbitrary value or something I need to know for my particular receiver…i.e. sat/cbl is 1, dvd is 2, etc. as you cycle thru ‘next input’ on the remote?
This is long, I know… Thanks in advance and my apologies if these questions are “basic”…the ‘Develop Apps’ area and luup files are things I’ve always been a little nervous to mess with.