Updated plugin supports X4300

I have updated the plugin to support later model Denon AVR’s that support the serial protocol.

Only use this if you are happy for things to break and when it does please feedback details so bug/s can be addressed.

[ol][li]This is very early stages and it will contain bugs.[/li]
[li]The update only works on UI7[/li]
[li]This update does not cure the issues with locked Telnet port requiring the AVR to be power cycled.[/li]
[li]Removed connection check, this seemed to cause more issues than it cured.[/li]
[li]Automatic zone creation has been removed, if you require extra zones they need to be manually added.[/li]
[li]It is now possible to manually add inputs that are not automatically scanned by “SSFUN ?”[/li]
[li]
Maximum number of inputs supported is Twenty, service files for inputs are as follows: -
serviceId urn:micasaverde-com:serviceId:InputSelection1 name Input1 to Input10
serviceId urn:denon-com:serviceId:Receiver1 name Input11 to Input20
Mapping between serviceId name and input can be viewed Devices / AVR Receiver parent device json UI

[/li][/ol]


Please note there is no error checking on manual zone and input creation so please ensure that your syntax is correct.

How to install:-

[ol][li]
Download zip from [url=https://github.com/zoot1612/plugin-denon/archive/master.zip]https://github.com/zoot1612/plugin-denon/archive/master.zip[/url]
[/li]
[li]
Upload the following files to the Vera via Apps / Develop apps / Luup files
D_DenonReceiver1.json
D_DenonReceiver1.xml
D_DenonReceiver1_UI7.json
D_DenonReceiver1_UI7.xml
I_DenonReceiver1.xml
J_AVRReceiver1.js
J_AVRReceiver1_UI7.js
L_DenonReceiver1.lua
S_DenonReceiver1.xml
S_DenonRenderingControl1.xml
createJSON.lua
[/li]
[li]
If your device exists already you will need to go to Devices / AVR Receiver parent device / Advanced / Variables and set variable Setup to 0.
If device does not exist create device Apps / Develop apps / Create device and enter the following information: -
IP address IPv4 address of AVR
Upnp Device Filename D_DenonReceiver1.xml
Upnp Implementation Filename I_DenonReceiver1.xml
[/li]
[li]
Restart LUUP engine Apps / Develop apps / Serial Port configuration and click save button.
At this point static json and xml files should be updated and the basic functionality working.
[/li][/ol]

How add zones and inputs:-
Please note there is currently no error checking for zone and input creation so double check for correct syntax.

[ol][li]
Go to Devices / AVR Receiver parent device / Advanced / Settings
If everything has build correctly you should see Settings.PNG.
[/li]
[li]
In the Zones input field enter the zone numbers you want created. In most cases this is going to be 2 and/or 3. Numbers can either be separated by a space or comma. For example 2, 3
In the Inputs input field enter the inputs you want created in the form SI command=name with each pair seperated by a space where: -
SI command = TUNER, USB, NET etc. For relevant SI commands please refer to your model documentation.
name = Name that will appear in static json UI.
for example TUNER=Tuner USB=USB NET=Net BT=Bluetooth
[/li]
[li]
Click on “Reset Template”, if successful you should see Settings_Reset.PNG.
[/li]
[li]
Click on “Reload Luup”, at this point luup engine should restart and templates and extra devices updated[/i].
[/li][/ol]

I’m eager to try the ability to configure the inputs since the standard ones don’t seem to fully map to mine. I’ve installed your new version but I’m not getting the settings tab in UI7. When I try using ALTUI to access the settings tab instead of UI7 I get:

an error occurred while displaying the javascript tab. devid: 0-105 err:avr is not defined
stack:ReferenceError: avr is not defined
at eval (eval at _deviceDrawControlPanelJSTab (https://vera-us-oem-relay31.mios.com/relay/relay/relay/device/50003442/session/000000020623005A34A21A3BA7987D45255266/port_3480/J_ALTUI_uimgr.js:2652:17), :1:1)
at _deviceDrawControlPanelJSTab (https://vera-us-oem-relay31.mios.com/relay/relay/relay/device/50003442/session/000000020623005A34A21A3BA7987D45255266/port_3480/J_ALTUI_uimgr.js:2652:17)
at _deviceDrawControlPanelOneTabContent (https://vera-us-oem-relay31.mios.com/relay/relay/relay/device/50003442/session/000000020623005A34A21A3BA7987D45255266/port_3480/J_ALTUI_uimgr.js:3164:8)
at _displayActiveDeviceTab (https://vera-us-oem-relay31.mios.com/relay/relay/relay/device/50003442/session/000000020623005A34A21A3BA7987D45255266/port_3480/J_ALTUI_uimgr.js:3191:4)
at HTMLAnchorElement. (https://vera-us-oem-relay31.mios.com/relay/relay/relay/device/50003442/session/000000020623005A34A21A3BA7987D45255266/port_3480/J_ALTUI_uimgr.js:6121:4)
at HTMLDivElement.dispatch (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:3:10316)
at HTMLDivElement.q.handle (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:3:8343)
at Object.trigger (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:5628)
at HTMLAnchorElement. (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:6138)
at Function.each (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:2715)

Reloaded and all is fine now. Oddly, the Tuner button didn’t show up unless I changed to the Tuner first on the amp.

Will this work with Denon x4400?

[quote=“zoot1612”]I have updated the plugin to support later model Denon AVR’s that support the serial protocol.

Only use this if you are happy for things to break and when it does please feedback details so bug/s can be addressed.

[ol][li]This is very early stages and it will contain bugs.[/li]
[li]The update only works on UI7[/li]
[li]This update does not cure the issues with locked Telnet port requiring the AVR to be power cycled.[/li]
[li]Removed connection check, this seemed to cause more issues than it cured.[/li]
[li]Automatic zone creation has been removed, if you require extra zones they need to be manually added.[/li]
[li]It is now possible to manually add inputs that are not automatically scanned by “SSFUN ?”[/li]
[li]
Maximum number of inputs supported is Twenty, service files for inputs are as follows: -
serviceId urn:micasaverde-com:serviceId:InputSelection1 name Input1 to Input10
serviceId urn:denon-com:serviceId:Receiver1 name Input11 to Input20
Mapping between serviceId name and input can be viewed Devices / AVR Receiver parent device json UI

[/li][/ol]


Please note there is no error checking on manual zone and input creation so please ensure that your syntax is correct.

How to install:-

[ol][li]
Download zip from [url=https://github.com/zoot1612/plugin-denon/archive/master.zip]https://github.com/zoot1612/plugin-denon/archive/master.zip[/url]
[/li]
[li]
Upload the following files to the Vera via Apps / Develop apps / Luup files
D_DenonReceiver1.json
D_DenonReceiver1.xml
D_DenonReceiver1_UI7.json
D_DenonReceiver1_UI7.xml
I_DenonReceiver1.xml
J_AVRReceiver1.js
J_AVRReceiver1_UI7.js
L_DenonReceiver1.lua
S_DenonReceiver1.xml
S_DenonRenderingControl1.xml
createJSON.lua
[/li]
[li]
If your device exists already you will need to go to Devices / AVR Receiver parent device / Advanced / Variables and set variable Setup to 0.
If device does not exist create device Apps / Develop apps / Create device and enter the following information: -
IP addressIPv4 address of AVR
Upnp Device FilenameD_DenonReceiver1.xml
Upnp Implementation FilenameI_DenonReceiver1.xml
[/li]
[li]
Restart LUUP engine Apps / Develop apps / Serial Port configuration and click save button.
At this point static json and xml files should be updated and the basic functionality working.
[/li][/ol]

How add zones and inputs:-
Please note there is currently no error checking for zone and input creation so double check for correct syntax.

[ol][li]
Go to Devices / AVR Receiver parent device / Advanced / Settings
If everything has build correctly you should see Settings.PNG.
[/li]
[li]
In the Zones input field enter the zone numbers you want created. In most cases this is going to be 2 and/or 3. Numbers can either be separated by a space or comma. For example 2, 3
In the Inputs input field enter the inputs you want created in the form SI command=name with each pair seperated by a space where: -
SI command = TUNER, USB, NET etc. For relevant SI commands please refer to your model documentation.
name = Name that will appear in static json UI.
for example TUNER=Tuner USB=USB NET=Net BT=Bluetooth
[/li]
[li]
Click on “Reset Template”, if successful you should see Settings_Reset.PNG.
[/li]
[li]
Click on “Reload Luup”, at this point luup engine should restart and templates and extra devices updated[/i].
[/li][/ol][/quote]
This was working with denon x4400h but I updated the firmware on the denon and no longer works:-(
The device is showing on/off status and volume setting in real time correctly but it doesn?t respond to commands from Vera denon device
Is this still working with your 3300?
Edit: After a second firmware update to my denon 4400 this plugin is now working again with on/off (but not 100% of the time)

Thanks for your work on this!

[quote=“zoot1612”]I have updated the plugin to support later model Denon AVR’s that support the serial protocol.

Only use this if you are happy for things to break and when it does please feedback details so bug/s can be addressed.

[ol][li]This is very early stages and it will contain bugs.[/li]
[li]The update only works on UI7[/li]
[li]This update does not cure the issues with locked Telnet port requiring the AVR to be power cycled.[/li]
[li]Removed connection check, this seemed to cause more issues than it cured.[/li]
[li]Automatic zone creation has been removed, if you require extra zones they need to be manually added.[/li]
[li]It is now possible to manually add inputs that are not automatically scanned by “SSFUN ?”[/li]
[li]
Maximum number of inputs supported is Twenty, service files for inputs are as follows: -
serviceId urn:micasaverde-com:serviceId:InputSelection1 name Input1 to Input10
serviceId urn:denon-com:serviceId:Receiver1 name Input11 to Input20
Mapping between serviceId name and input can be viewed Devices / AVR Receiver parent device json UI

[/li][/ol]


Please note there is no error checking on manual zone and input creation so please ensure that your syntax is correct.

How to install:-

[ol][li]
Download zip from [url=https://github.com/zoot1612/plugin-denon/archive/master.zip]https://github.com/zoot1612/plugin-denon/archive/master.zip[/url]
[/li]
[li]
Upload the following files to the Vera via Apps / Develop apps / Luup files
D_DenonReceiver1.json
D_DenonReceiver1.xml
D_DenonReceiver1_UI7.json
D_DenonReceiver1_UI7.xml
I_DenonReceiver1.xml
J_AVRReceiver1.js
J_AVRReceiver1_UI7.js
L_DenonReceiver1.lua
S_DenonReceiver1.xml
S_DenonRenderingControl1.xml
createJSON.lua
[/li]
[li]
If your device exists already you will need to go to Devices / AVR Receiver parent device / Advanced / Variables and set variable Setup to 0.
If device does not exist create device Apps / Develop apps / Create device and enter the following information: -
IP addressIPv4 address of AVR
Upnp Device FilenameD_DenonReceiver1.xml
Upnp Implementation FilenameI_DenonReceiver1.xml
[/li]
[li]
Restart LUUP engine Apps / Develop apps / Serial Port configuration and click save button.
At this point static json and xml files should be updated and the basic functionality working.
[/li][/ol]

How add zones and inputs:-
Please note there is currently no error checking for zone and input creation so double check for correct syntax.

[ol][li]
Go to Devices / AVR Receiver parent device / Advanced / Settings
If everything has build correctly you should see Settings.PNG.
[/li]
[li]
In the Zones input field enter the zone numbers you want created. In most cases this is going to be 2 and/or 3. Numbers can either be separated by a space or comma. For example 2, 3
In the Inputs input field enter the inputs you want created in the form SI command=name with each pair seperated by a space where: -
SI command = TUNER, USB, NET etc. For relevant SI commands please refer to your model documentation.
name = Name that will appear in static json UI.
for example TUNER=Tuner USB=USB NET=Net BT=Bluetooth
[/li]
[li]
Click on “Reset Template”, if successful you should see Settings_Reset.PNG.
[/li]
[li]
Click on “Reload Luup”, at this point luup engine should restart and templates and extra devices updated[/i].
[/li][/ol][/quote]
Hi Zoot,
When attempting to change the volume with you app it sometimes works but I also get a lot of command failed. I have static I.p for the avr, is there something I should check in your app for troubleshooting? Is this expected behaviour of the app?