Denon Binding?

3,788 views
Skip to first unread message

ari...@nesys.it

unread,
Nov 8, 2014, 5:11:50 PM11/8/14
to ope...@googlegroups.com
Hi folks,

anyone working on a new binding for Denon AVR?

Thanks

Andrea

Gerhard R.

unread,
Nov 9, 2014, 2:56:52 AM11/9/14
to ope...@googlegroups.com
Hi Andrea!

Yes I. But i have just started, so it will take a while.

Regards,
Gerhard

Andrea Riela

unread,
Nov 9, 2014, 2:17:20 PM11/9/14
to ope...@googlegroups.com
Hi Gerhard.

Wonderful. I have a Denon avr 3311, can I help somehow with tests?

Please let me know

Thanks for your effort

Andrea
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.

Maximilian

unread,
Nov 9, 2014, 2:51:31 PM11/9/14
to ope...@googlegroups.com
Hi Gerhard,

thats really cool. I have been waiting for this for quite a while. (using X2000 / X4000).
I also remember I offered to gather information in advance. Until now I did non manage to do this.
Is there anything in specific that needs to be researched currently ?

kr
maximilian

Andrea Riela

unread,
Nov 9, 2014, 3:38:01 PM11/9/14
to ope...@googlegroups.com
I’ve a script that just works. Maybe useful for the Binding?

Dunno, just sharing:

#!/usr/bin/expect

set timeout 20

set dencmd [lindex $argv 0]

log_user 0


spawn telnet 192.168.17.11

expect "Trying"

expect {

  timeout {

    send_user "\rTimeout waiting for Denon response.\r"

    send_user "$expect_out(buffer)\r"

    exit

  }

  "Connection refused" {

    send_user "UNABLE\n"

    exit

  }

  "BridgeCo AG Telnet server\r\n"

}

send "$dencmd\r"

expect "$dencmd\r\n"

expect "*\r"

send_user "$expect_out(buffer)\n"

exit



Andrea

--

Maximilian

unread,
Nov 9, 2014, 3:41:11 PM11/9/14
to
this could also help:
Its based on the http binding and the transformation service:

http://blue-pc.net/2014/06/11/denon-av-reciever-mit-openhab-steuern/

Gerhard R.

unread,
Nov 10, 2014, 3:11:38 AM11/10/14
to ope...@googlegroups.com
Hi!

Thanks guys. Currently i have everything i need.

@Maximilan
I know this site and Jörg and i already talked about this binding.

The idea is to control the receiver by http and receive events with telnet. Because telnet is not very reliable and allows only on connection concurrently, i also want to implement http polling as alternative.

Regards,
Gerhard

ifttt

unread,
Nov 10, 2014, 3:14:00 AM11/10/14
to ope...@googlegroups.com
Hi Gerhard,

I read about the telnet problem too. 

Well, good luck with it. If you need help with testing etc. just post a comment.

regards,
maximilian

Jeroen Idserda

unread,
Dec 22, 2014, 6:03:19 AM12/22/14
to ope...@googlegroups.com
Hello Gerhard,

What's the current status? Is the code already available somewhere? I'd be happy to help with the binding. Currently I'm using my AVR-X2000 with the HTTP binding and some polling, which works OK, but an actual binding would be better. 

Regards,
Jeroen.

Gerhard R.

unread,
Dec 22, 2014, 8:08:45 AM12/22/14
to ope...@googlegroups.com
Hi Jeroen!

I am sorry to say that I had very little time to work on the denon binding the last weeks.
Kai also asked me to port the Homematic-Binding to openHAB 2, so that's my next step (and also the Astro-Binding).

I really spend the majority of my free time to openHAB, but it's currently to little to get all things done. Therefore i must set priorities and have to move the Denon-Binding to a later date.

Regards,
Gerhard

Jeroen Idserda

unread,
Dec 23, 2014, 7:09:44 AM12/23/14
to ope...@googlegroups.com
Hi Gerhard,

Would it be okay if I had a go at implementing this binding? I've looked at the documentation, I'll use HTTP to send commands and fetch initial state. The telnet connection can then be used for listening for updates. It's actually quite similar to the Plex binding I just worked on (although Plex uses web sockets to receive updates instead of telnet). The binding would have support for multiple receivers. 

Regards,
Jeroen.

Andrea Riela

unread,
Dec 23, 2014, 7:18:45 AM12/23/14
to ope...@googlegroups.com
Hi all,

Can I help somehow for testing it? I've an AVR 3311 here.

Let me know

Andrea

Gerhard R.

unread,
Dec 23, 2014, 1:09:21 PM12/23/14
to ope...@googlegroups.com
Hi Jeroen!

Of course, any help is welcome! Thanks a lot!

Regards,
Gerhard

Jeroen Idserda

unread,
Dec 31, 2014, 4:04:33 AM12/31/14
to ope...@googlegroups.com
Hey,

First version of the binding is ready. I've opened a pull request. First version can be downloaded here: org.openhab.binding.denon-1.7.0-SNAPSHOT.

Here's the Wiki page describing the supported commands so far: Denon Binding

Binding should be compatible with previous generation AVR receivers (AVR-X2000/X3000 etc) as well as the current (X2100W/X3100W). Let me know your findings!

Regards,
Jeroen.

Maximilian

unread,
Dec 31, 2014, 11:42:53 AM12/31/14
to ope...@googlegroups.com
Hi,

Thank you. Thats so great I immediately started testing it.
Then I added the link to the manual and added the x4000 page to the menu bar on the right side. Later I realised that its not the main repository….

So far it works very well with the x4000 but not with the X2000.

I am not shure about the FLVolume item. Might work for other models.


Should we add a hint to the wiki on how to label inputs correctly if the have been renamed in the receiver itself using mappings ? Or is it openHab basics ?
e.g.:
denon.items
Text         item=DenonInput label="Quelle:  [MAP(denon.map):%s]“

denon.map
CD=DAB

I have no clue about the x2000. There are no error messages, the amp works with the app. It simpy does not respond at all.


Jeroen Idserda

unread,
Dec 31, 2014, 11:58:42 AM12/31/14
to
Hey,

Thanks for testing! I've put the wiki page on my own repo since the binding is not part of the master repo yet. I'll copy the page there when the binding is merged. Feel free to add things to the page, the mapping info is very useful I think. 

You can ignore the DenonFLVolume item for now, it's probably only updated when switching input.

The AVR-X2000 should work, I own one myself :-). Could you try setting binding logging to debug? (<logger name="org.openhab.binding.denon" level="DEBUG" /> in logback.xml). 

Regards,
Jeroen.

Maximilian

unread,
Jan 1, 2015, 4:44:32 AM1/1/15
to ope...@googlegroups.com
Hi Joeren,

it seems it can handle only one receiver at a time.

The startup of openhab looks like this:

10:36:04.088 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'denon.items'
10:36:14.597 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'denon.rules'

10:36:17.763 DEBUG o.o.b.d.i.DenonActivator[:34]- Denon binding has been started.
10:36:17.804 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonPower bound to property PW
10:36:17.807 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonMainZone bound to property ZM
10:36:17.810 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonVolume bound to property MV
10:36:17.813 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonMute bound to property MU
10:36:17.816 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonInput bound to property INPUT
10:36:17.819 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonInputSATCBL bound to property SISAT/CBL
10:36:17.821 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_Power bound to property PW
10:36:17.826 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_MainZone bound to property ZM
10:36:17.828 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_Volume bound to property MV
10:36:17.830 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_Mute bound to property MU
10:36:17.832 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_Input bound to property INPUT
10:36:17.834 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputCD bound to property SICD
10:36:17.836 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputTuner bound to property SITUNER
10:36:17.838 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputDVD bound to property SIDVD
10:36:17.840 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputSATCBL bound to property SISAT/CBL
10:36:17.843 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputMplay bound to property SIMPLAY
10:36:17.845 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputGame bound to property SIGAME
10:36:17.847 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputAux2 bound to property SIAUX2
10:36:17.849 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwo bound to property Z2
10:36:17.851 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoVolume bound to property Z2ZV
10:36:17.853 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoMute bound to property Z2MU
10:36:17.855 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInput bound to property Z2INPUT
10:36:17.858 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputCD bound to property Z2SICD
10:36:17.860 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputTuner bound to property Z2SITUNER
10:36:17.862 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputDVD bound to property Z2SIDVD
10:36:17.864 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputSATCBL bound to property Z2SISAT/CBL
10:36:17.866 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputMplay bound to property Z2SIMPLAY
10:36:17.868 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputGame bound to property Z2SIGAME
10:36:17.870 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputAux2 bound to property Z2SIAUX2
10:36:17.872 INFO  o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InternetRadio bound to property IRADIO
10:36:17.884 DEBUG o.o.b.d.internal.DenonBinding[:71]- Denon all bindings changed
10:36:17.886 DEBUG o.o.b.d.internal.DenonBinding[:42]- Denon binding actived
10:36:19.654 DEBUG o.o.b.d.internal.DenonBinding[:107]- Denon binding updated
10:36:19.660 DEBUG o.o.b.d.internal.DenonBinding[:136]- Denon receiver configured at 192.168.1.104
10:36:20.010 DEBUG o.o.b.d.internal.DenonListener[:27]- Denon listener created
10:36:20.035 DEBUG o.o.b.d.i.DenonConnector[:268]- Refreshing Denon status
10:36:20.035 DEBUG o.o.b.d.internal.DenonListener[:70]- Connecting to 192.168.1.104
10:36:20.037 DEBUG o.o.b.d.i.DenonConnector[:281]- Refreshing Main, url: http://192.168.1.104:80/goform/formMainZone_MainZoneXml.xml
10:36:20.046 DEBUG o.o.b.d.internal.DenonListener[:82]- Denon telnet client connected to 192.168.1.104
10:36:20.148 DEBUG o.o.b.d.i.DenonConnector[:295]- Refreshing Main Zone, url: http://192.168.1.104:80/goform/formMainZone_MainZoneXmlStatus.xml
10:36:20.181 DEBUG o.o.b.d.i.DenonConnector[:323]- Refreshing Zone 2, url: http://192.168.1.104:80/goform//formZone2_Zone2XmlStatus.xml
10:36:20.218 DEBUG o.o.b.d.i.DenonConnector[:323]- Refreshing Zone 3, url: http://192.168.1.104:80/goform//formZone3_Zone3XmlStatus.xml
10:36:20.248 DEBUG o.o.b.d.i.DenonConnector[:323]- Refreshing Zone 4, url: http://192.168.1.104:80/goform//formZone4_Zone4XmlStatus.xml



Jeroen Idserda

unread,
Jan 1, 2015, 5:57:52 AM1/1/15
to ope...@googlegroups.com
There's a new build at the pull request, could you try that one?

Jeroen.
...

Maximilian

unread,
Jan 1, 2015, 8:26:48 AM1/1/15
to ope...@googlegroups.com
Hi Joeren,


it seeems to work now. Thanks.

Now finishing the individual config.

Andrea Riela

unread,
Jan 2, 2015, 7:56:07 AM1/2/15
to ope...@googlegroups.com
Hi All,

binding working perfectly with AVR-3311 also. No problems here.

THANK YOU !!!!!

Just seeing some new logs:

2015-01-02 12:51:38.153 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonPower bound to property PW

2015-01-02 12:51:38.268 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonMainZone bound to property ZM

2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonVolume bound to property MV

2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonMute bound to property MU

2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInput bound to property INPUT

2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputCD bound to property SICD

2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputTuner bound to property SITUNER

2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputDVD bound to property SIDVD

2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputBluray bound to property SIBD

2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputTV bound to property SITV

2015-01-02 12:51:38.270 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputSATCBL bound to property SISAT/CBL

2015-01-02 12:51:38.270 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputMplay bound to property SIMPLAY

2015-01-02 12:51:38.271 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputGame bound to property SIGAME

2015-01-02 12:51:38.272 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputAux1 bound to property SIAUX1


Any idea if this is correct, and in case how to clean?


Another question is regarding volume … is it possible to have the value in dB and not in %? Any suggestion?


Finally, a strange behaviour … after installed the binding, any other app related to my Denon AVR stopped working :) … I don’t know why. Only the web connection is still working properly.


Thanks


Andrea


--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.

IFTTT

unread,
Jan 2, 2015, 8:56:49 AM1/2/15
to ope...@googlegroups.com

Hi,

 

I had the same problem with the app.

I guess the receiver can run one tcp connection at a time only.

 

Regards

maximilian

Andrea Riela

unread,
Jan 2, 2015, 10:12:53 AM1/2/15
to ope...@googlegroups.com
Mmm

Don't think so.

I previously used two apps at the same time, no issues like this.

Strange

Andrea

dan cunningham

unread,
Jan 2, 2015, 3:47:16 PM1/2/15
to ope...@googlegroups.com
FYI, my Denon can only handle a single TCP connection as well.  Even the embedded http server can only serve a single request I believe. 

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.

Jeroen Idserda

unread,
Jan 3, 2015, 6:18:53 AM1/3/15
to
Hi Andrea,

The Denon receivers only support one concurrent telnet connection. The openHAB binding keeps this connection open, so other apps won't be able to use this. The Denon remote app only uses HTTP commands, so that one keeps working. It would be possible for the binding to only use the HTTP api, but then we would have to poll these URL's every second or so.

The information in the logs is normal, it's showing which items are controlled by the Denon binding.

About showing the volume in DB's.. that would be possible with an extra item like this:

Number DenonVolumeDB "Volume [%.1f db]" <denon> (Denon)

And these rules:

rule "DENON Volume to DB"
when
      Item DenonVolume received update
then
      var Number volumeDB = (DenonVolume.state as DecimalType)-80
      postUpdate(DenonVolumeDB, volumeDB)
end

rule "DENON DB to Volume"
when
Item DenonVolumeDB received command
then
        var Number volume = (receivedCommand as DecimalType)+80
        sendCommand(DenonVolume, volume)
end

This item would then have range from -80 to +12. I'm not sure how you can control this item in a sitemap, since the Setpoint item does not support a negative minValue. 

Regards,
Jeroen.

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.

Dieter Knueppel

unread,
Jan 3, 2015, 8:13:27 AM1/3/15
to ope...@googlegroups.com
Sounds great!

This binding is especially needed when powering on/off the receiver which isn't provided via DLNA.
Did it so far discret via HTTP ...

Recently i made some local changes to sonos binding (quite ugly so far).
Sonos already comes along with a DLNA controller, but limited to Sonos devices.

Changes allow to play radio station, musik, ... which is not supported by the Denon proprietary interface as far as i understood.
I also added few Samsung specific DLNA functions to display telefon message box.
Wonder wether a general DLNA binding makes sense, maybe just keep proprietary interfaces out, like Samsung (might become else a quite huge binding).
That would serve quite some devices!

Haven't managed to talk to Sonos binding maintainer so far.

Best regards,
Dieter

ari...@nesys.it

unread,
Jan 4, 2015, 1:17:59 PM1/4/15
to ope...@googlegroups.com
Hi All,

I've created a rule to use Denon and Dune media player at the same time, maybe can help with Sonos and other stuffs ;-)

I've also Sonos at home, but I didn't find any solution to remember the user to switch to Sonos app when Denon has been set as appropriate.

The idea I have for the moment is to set a item when I switch on Denon, and make it visible with a string like "please switch to Sonos app" :-D Aahhahaha not really good indeed :)

Here my rules:

rule "Dune Living"

when

Item Dune_Living received command

then

if(receivedCommand==ON) {

// switch on AVR, set input to BD, switch on Dune HD

sendCommand(DenonPower, ON)

sendCommand(DenonInputBluray, ON)

sendHttpGetRequest("http://192.168.17.10/cgi-bin/do?cmd=ir_code&ir_code=A05FBF00")

} else if(receivedCommand==OFF) {

// turn off Dune HD and AVR

sendHttpGetRequest("http://192.168.17.10/cgi-bin/do?cmd=ir_code&ir_code=A15EBF00")

sendCommand(DenonPower, OFF)

}

end


For the record: Dune HD is quite easy to control via HTTP Binding. You need to know only the ir codes to use. Here the reference:


Maybe I can create a page for Dune in the wiki? Does make any sense?

Thanks

Andrea

ari...@nesys.it

unread,
Jan 4, 2015, 2:37:53 PM1/4/15
to ope...@googlegroups.com

Andrea Riela

unread,
Jan 5, 2015, 5:40:43 AM1/5/15
to ope...@googlegroups.com
Hi All,

I’m struggling to use the Denon Menu commands, without any luck.

Any success on that?

I’m talking about all “MN” commands.

Thanks

Andrea

Andrea Riela

unread,
Jan 5, 2015, 10:46:29 AM1/5/15
to ope...@googlegroups.com
Short update.

MNMEN ON works correctly, MNMEN OFF doesn’t. As also other MN commands, unfortunately :(

Still investigating

Andrea

Andrea Riela

unread,
Jan 5, 2015, 11:21:09 AM1/5/15
to ope...@googlegroups.com
Solved :-)

All commands starting with “MN” work like a charm. In my case (AVR 3311), the command MNMEN OFF is bugged, I’ve solved with a  workaround (sending multiple “Return” commands to close the session).

Here my items:

/* Denon binding */

Switch DenonPower           "Power"            (Denon) {denon="avr3311#PW"}

Switch DenonMainZone        "Main Zone"         (Denon) {denon="avr3311#ZM"}

Dimmer DenonVolume          "Volume [%.1f]"     (Denon) {denon="avr3311#MV"}

Switch DenonMute            "Mute"              (Denon) {denon="avr3311#MU"}


String DenonInput           "Input [%s]"        (Denon) {denon="avr3311#INPUT"}

Switch DenonInputCD         "Input CD"          (Denon) {denon="avr3311#SICD"}

Switch DenonInputTuner      "Input Tuner"       (Denon) {denon="avr3311#SITUNER"}

Switch DenonInputDVD        "Input DVD"         (Denon) {denon="avr3311#SIDVD"}

Switch DenonInputDVR        "Input DVR"         (Denon) {denon="avr3311#SIDVR"}

Switch DenonInputBluray     "Input Bluray"      (Denon) {denon="avr3311#SIBD"}

Switch DenonInputTV         "Input TV"          (Denon) {denon="avr3311#SITV"}

Switch DenonInputSATCBL     "Input SAT/CBL"     (Denon) {denon="avr3311#SISAT/CBL"}

Switch DenonInputMplay      "Input Mediaplayer" (Denon) {denon="avr3311#SIMPLAY"}

Switch DenonInputGame       "Input Game"        (Denon) {denon="avr3311#SIGAME"}

Switch DenonInputAux1       "Input Aux1"        (Denon) {denon="avr3311#SIAUX1"}


Switch DenonMenu "" (Denon) {denon="avr3311#MNMEN"}

Switch DenonRCUp "" (Denon) {denon="avr3311#MNCUP"}

Switch DenonRCDown "" (Denon) {denon="avr3311#MNCDN"}

Switch DenonRCLeft "" (Denon) {denon="avr3311#MNCLT"}

Switch DenonRCRight "" (Denon) {denon="avr3311#MNCRT"}

Switch DenonRCEnter "" (Denon) {denon="avr3311#MNENT"}

Switch DenonRCReturn "" (Denon) {denon="avr3311#MNRTN"}


Switch Denon_RC1_Living  "Menu" (Denon)

Number Denon_RC2_Living  "" (Denon)

Number Denon_RC3_Living  "" (Denon)


rules:

rule "Denon Living Room Remote Control line 1"

        when

                Item Denon_RC1_Living received command

        then

                if(receivedCommand==ON)

                {

                        sendCommand(DenonMenu, ON)

                }

                if(receivedCommand==OFF)

                {

                        sendCommand(DenonRCReturn, ON)

                        sendCommand(DenonRCReturn, ON)

                        sendCommand(DenonRCReturn, ON)

                        sendCommand(DenonRCReturn, ON)

                        sendCommand(DenonRCReturn, ON)

                }

end


rule "Denon Living Room Remote Control line 2"

        when

                Item Denon_RC2_Living received update

        then

                if(Denon_RC2_Living.state == 1)

                {

                        sendCommand(DenonRCUp, ON)

                }

                if(Denon_RC2_Living.state == 2)

                {

                        sendCommand(DenonRCDown, ON)

                }

                if(Denon_RC2_Living.state == 3)

                {

                        sendCommand(DenonRCLeft, ON)

                }           

                if(Denon_RC2_Living.state == 4)

                {

                        sendCommand(DenonRCRight, ON)

                }

end


rule "Denon Living Room Remote Control line 3"

        when

                Item Denon_RC3_Living received update

        then

                if(Denon_RC3_Living.state == 1)

                {

                        sendCommand(DenonRCEnter, ON)

                }

                if(Denon_RC3_Living.state == 2)

                {

                        sendCommand(DenonRCReturn, ON)

                }

end


sitemap:

    Text label="AVR 3311" icon="denon2"{

    Switch item=DenonPower icon="control_standby"

    Switch item=Denon_RC1_Living

    Switch item=Denon_RC2_Living icon="" mappings=[1=" Up ", 2=Down, 3=Left, 4=Right]

    Switch item=Denon_RC3_Living icon="" mappings=[1=Select, 2=Return]

    Selection label="Input" item=DenonInput icon="denon3" mappings=[CD="CD", TUNER="Tuner", DVD="DVD", BD="Bluray", DVR="DVR", TV="TV", "SAT/CBL"="SAT/CBL", MPLAY="Mediaplayer", GAME="Game", AUX1="Aux1"]

    }


Kind Regards

Andrea

Andre Heuer

unread,
Jan 5, 2015, 5:24:21 PM1/5/15
to ope...@googlegroups.com
Hi All,

first: thank you for the Binding!! I really appreciate a Denon Binding!

I roughly tested the binding with my Denon AVR-1912 and it also seems to work (I only tested power and input changes yet). But I´ll continue testing as soon as I find some time :-)

BR
André 

Maximilian

unread,
Jan 6, 2015, 5:02:29 AM1/6/15
to ope...@googlegroups.com
@Andrea

just a side note: I think this should work too and would make it a lot easier to read

rule "Denon Living Room Remote Control line 2"
       
when

               
Item Denon_RC2_Living received command
       
then
               
Switch (receivedCommand)
               
{
                   
case 1 : sendCommand(DenonRCUp, ON)

                   
case 2 : sendCommand(DenonRCDown, ON)

                   
case 3 : sendCommand(DenonRCLeft, ON)

               
}   case 4 : sendCommand(DenonRCRight, ON)

end


I haven't come across the need to use multiple commands per case but calling a script would be an option I guess. 


kind regards

maximilian

Andrea Riela

unread,
Jan 6, 2015, 5:38:52 AM1/6/15
to ope...@googlegroups.com
Hi maximilian,

I really appreciate your help on this.

Unfortunately it doesn’t work:

2015-01-06 11:37:08.403 [ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule 'Denon Living Room Remote Control line 3': The name 'Switch(<XFeatureCallImplCustom>)' cannot be resolved to an item or type.


maybe something to be imported in my rules?


here what I have at the moment:


import org.openhab.core.library.types.*

import org.openhab.core.persistence.*

import org.openhab.model.script.actions.*

import org.openhab.core.transform.actions.Transformation

import java.util.regex.Pattern

import java.util.regex.Matcher


Thank you


Andrea


--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.

Maximilian

unread,
Jan 6, 2015, 8:13:11 AM1/6/15
to ope...@googlegroups.com
It works for me in other cases so there must be a mistake somewhere.
Why do you use "" for the first option of the switch ?

Switch
item=Denon_RC2_Living icon="" mappings=[1=" Up ",

maybe thats it ?

Andrea Riela

unread,
Jan 6, 2015, 8:24:54 AM1/6/15
to ope...@googlegroups.com
Strange, same item with my version of the rule works … mmm … let me check better

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.

Andrea Riela

unread,
Jan 6, 2015, 11:21:04 AM1/6/15
to ope...@googlegroups.com
Now it works :-) it was switch, and not Switch :) heheheh

Thanks for your suggestion, code much better :)

Andrea

Andrea Riela

unread,
Jan 6, 2015, 11:22:20 AM1/6/15
to ope...@googlegroups.com
For the record, two commands seem buggy on my AVR 3311:

MNMEN OFF
MNSRC OFF

both replaced by multiple “Return” commands

Andrea

Jeroen Idserda

unread,
Jan 6, 2015, 4:33:10 PM1/6/15
to ope...@googlegroups.com
Hi Andrea,

Good catch, there was a bug with sending commands that contained spaces. Should be fixed now. There's something wrong with CloudBees at the moment, so you can download a new build here: org.openhab.binding.denon-1.7.0-SNAPSHOT.jar

Regards,
Jeroen.

Andrea Riela

unread,
Jan 7, 2015, 1:25:46 AM1/7/15
to ope...@googlegroups.com
Hi Jeroen,

thanks for your effort.

Unfortunately both OFF commands are still buggy. ON commands work as previous.

Andrea

Jeroen Idserda

unread,
Jan 7, 2015, 2:30:44 AM1/7/15
to
Hi Andrea,

This command does not work like the regular power/mute ON/OFF command at the moment. You need two switches: 

Switch     DenonSetupOn      "Setup"          {denon="avr2000#MNMEN ON"}
Switch     DenonSetupOff     "Exit setup"     {denon="avr2000#MNMEN OFF"}

Regards,
Jeroen.

Andrea Riela

unread,
Jan 7, 2015, 3:19:50 AM1/7/15
to ope...@googlegroups.com
Ah :-)

I was thinking

Switch DenonMenu "" (Denon) {denon="avr3311#MNMEN"}

Switch DenonSSMenu "" (Denon) {denon="avr3311#MNSRC}


should be enough, like


Switch DenonPower       "power" (Denon) {denon="avr3311#PW"}


Let me try with the suggested ones.


Andrea




2015-01-07 8:30 GMT+01:00 Jeroen Idserda <jeroen....@gmail.com>:
Hi Andrea,

How do you specify the items for these commands? They should look like this: 

Switch     DenonSetupOn      "Setup"          {denon="avr2000#MNMEN ON"}
Switch     DenonSetupOff     "Exit setup"     {denon="avr2000#MNMEN OFF"}

Is there any info in openhab.log if you try to set these switches to ON? Before trying please set the loglevel to debug for this binding. 

Regards,
Jeroen.


On Wednesday, January 7, 2015 7:25:46 AM UTC+1, Andrea Riela wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.

Andrea Riela

unread,
Jan 7, 2015, 3:30:18 AM1/7/15
to ope...@googlegroups.com
Now it works like a charm, also both OFF commands.

Thank you very much

Andrea

Jörg Karsten

unread,
Jan 11, 2015, 6:11:58 AM1/11/15
to ope...@googlegroups.com
The binding works very good . I've changed my HTTP request script completely to the binding.
Only when editing the configuration I had often no more updates. I use the Telnet update methode. A reboot of obenHAB has helps then.

Is it possible to read the media information ? 
I tried the command NSA and NSE.
Especially in connection with http://<AV IP address>/NetAudio/art.asp-jpg or http://<AV IP address>/img/album%20art_S.png

Thank you for the binding !

On Wednesday, December 31, 2014 at 10:04:33 AM UTC+1, Jeroen Idserda wrote:
Hey,

First version of the binding is ready. I've opened a pull request. First version can be downloaded here: org.openhab.binding.denon-1.7.0-SNAPSHOT.

Here's the Wiki page describing the supported commands so far: Denon Binding

Binding should be compatible with previous generation AVR receivers (AVR-X2000/X3000 etc) as well as the current (X2100W/X3100W). Let me know your findings!

Regards,
Jeroen.

ari...@nesys.it

unread,
Jan 17, 2015, 6:46:52 PM1/17/15
to ope...@googlegroups.com
Hi guys,

it seems persistence is not working with this binding. I've tried to maintain the values of

DenonPower

DenonVolume

DenonMute


using persistence with rrd4j and strategy everyChange, restoreOnStartup


No luck, after restarting openHAB I'm missing the previous status.


Any suggestion?


Andrea

Andrea Riela

unread,
Jan 18, 2015, 2:58:41 AM1/18/15
to ope...@googlegroups.com
Hi All,

I made a mistake in my .persist file. Now everything’s working, except the Volume. I don’t find any solution to maintain the Volume value after a openHAB restart, or after a Denon power off.

Investigating

Andrea

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.

Andrea Riela

unread,
Jan 18, 2015, 5:20:44 AM1/18/15
to ope...@googlegroups.com
Hi All,

this is working for me (using persistence everyChange restoreOnStartup)  :-)

Dimmer DenonVolume      "volume [%.1f]" (Denon) {denon="avr3311#MV"}

Number DenonVolumedB "[%.1f dB]" (Denon, Persistence)


rule "DENON Volume to DB"

when

      Item DenonVolume received update

then

      var Number volumedB = (DenonVolume.state as DecimalType)-80

      postUpdate(DenonVolumedB, volumedB)

end


rule "DENON DB to Volume"

when

Item DenonPower changed from OFF to ON or

System started

then

Thread::sleep(10000)

        var Number volume = (DenonVolumedB.state as DecimalType)+80

        sendCommand(DenonVolume, volume)

        logInfo("Rule DENON DB to Volume", "completed");

end


sitemap:

Slider item=DenonVolume icon="audio_audio"

Text item=DenonVolumedB


Attached how it looks like ;-)

Regards

Andrea

Andrea

image.jpg

Familie De Waele

unread,
Jan 18, 2015, 6:42:38 AM1/18/15
to ope...@googlegroups.com
hi Andrea ,

I would like to have my HD Dune controlled by Openhab. Could you post the relevant items and sitemaps in order to show how you have realized this? Which commands you are using ...

Thanks for you excellent work !

Regards,

Tijl De Waele

Andrea Riela

unread,
Jan 18, 2015, 7:04:25 AM1/18/15
to ope...@googlegroups.com
Sure, I will put something in the wiki asap

Andrea

Jeroen Idserda

unread,
Jan 20, 2015, 3:36:44 PM1/20/15
to
Thanks everyone for testing!

There's a new build at the pull request that has some added features:

- Optional, only use HTTP to get updates. This leaves the telnet port free for other applications.
- COMMAND property to easily forward commands from scripts/sitemap to your receiver.  
- TRACK, ARTIST and ALBUM properties, useful when playing stuff from the network or USB/iPod.
- SURROUNDMODE property, holding the current surround mode

I've also update the Wiki

Regards,
Jeroen.



Jeroen Idserda

unread,
Jan 20, 2015, 3:43:06 PM1/20/15
to ope...@googlegroups.com
There's still an issue that all properties are reset and not updated after the items file is reloaded. Maybe some other binding devs can help me with this? I've implemented bindingChanged() and all allBindingsChanged().

Here's what happens:
  • Items file is updated
  • bindingChanged() is called in DenonBinding, but itemName is not known to provider yet 
  • processBindingConfiguration() called, adding bindingConfig 
  • bindingChanged() is called again, bindingConfig found, do some magic to fetch item state and calleventPublisher.postUpdate() for this item.
  • non-existing item error
Here's a part of the log:

16:54:50.354 [INFO ] [c.internal.ModelRepositoryImpl:98   ] - Refreshing model 'demo.items'
16:54:50.356 [DEBUG] [i.internal.GenericItemProvider:154  ] - Processing binding configs for items from model 'demo.items'
16:54:50.356 [DEBUG] [.b.denon.internal.DenonBinding:79   ] - Denon binding changed for item DenonVolume
16:54:50.357 [INFO ] [.i.DenonGenericBindingProvider:74   ] - denon:avr2000 item DenonVolume bound to property MV
16:54:50.357 [DEBUG] [.b.denon.internal.DenonBinding:79   ] - Denon binding changed for item DenonVolume
16:54:50.357 [INFO ] [runtime.busevents             :26   ] - DenonVolume state updated to 42.0
16:54:50.357 [DEBUG] [i.internal.GenericItemProvider:133  ] - Read items from model 'demo.items'
16:54:50.357 [DEBUG] [ore.internal.items.ItemUpdater:76   ] - Received update for non-existing item: Item 'DenonVolume' could not be found in the item registry

Any thoughts? 

Jeroen.

Andrea Riela

unread,
Jan 21, 2015, 3:31:07 AM1/21/15
to ope...@googlegroups.com
Jeroen,

my current workaround is to use persistence. Maybe not elegant, but effective :)

If I’ve understood correctly the issue.

Andrea


--

Jörg Karsten

unread,
Jan 21, 2015, 4:20:53 AM1/21/15
to
Hello Jeroen,

if updated the Binding today. It's totally awesome how stable it is. The title and Track display is great.
I have a x3000 and my settings are identical to those in the wiki.
I have only two extra Switchs for the Favorites. In my Favorites i saved Internet Radio Stations.
In the wiki is written that the ZM Command accept only ON and OFF . It still works and I hope it is right.
Items:
Switch DENON_Main_FAVORITE1    "Input FAV1"         <input> (gDENON) {denon="avr3000#ZMFAVORITE1"}
Switch DENON_Main_FAVORITE2    "Input FAV2"         <input> (gDENON) {denon="avr3000#ZMFAVORITE2"}

Sitemap
Switch item=DENON_Main_FAVORITE1 mappings=[ON="NDR2"]
Switch item=DENON_Main_FAVORITE2 mappings=[ON="FFN"]

I have one Problem ... when i play iRadio than Track and Title have no update. I need to push Favorite1 again to force a refresh.
When i play spotify all works fine.

Thank you for the Work,
Jörg

Jörg Kobelt

unread,
Jan 30, 2015, 1:29:16 AM1/30/15
to ope...@googlegroups.com
Hi Jeroen,
thanks für the binding, great job....
Where can I download the actual Snapshot ?
I downloaded one, earlier in the thread, but with this version the HTTP thing does not work....
Regards
Jörg

James McCoy

unread,
Feb 20, 2015, 10:26:32 AM2/20/15
to ope...@googlegroups.com
Hello all, 

Is there any chance of this working with a AVR-4308, the Android AVR-Remote (not the official Denon) works perfectly so I was holding out some hope, however I'm not having any luck with the binding linked to in this group?

Is there an update available anywhere?

Thanks everyone.

Maximilian

unread,
Mar 4, 2015, 11:33:11 AM3/4/15
to ope...@googlegroups.com
Hi,

how do you start the tuner in zone 2 ?

I tried {denon="x2000#Z2Tuner", denon="x2000#Z2TFAN010510"} since there is no Z2TFAN... command but it does not work.
What am I overlooking ?

Maximilian

unread,
Mar 31, 2015, 12:49:42 PM3/31/15
to ope...@googlegroups.com
Hi,

- it also seems to work with Marantz devices (tested with av8802).
- shouldn't we add the denon wiki page to the table of contents ? (https://github.com/idserda/openhab/wiki/Denon-Binding)
- @idserda please let thomas know if the pull request is ready for review (https://github.com/openhab/openhab/pull/1910).

I am happy the binding exists. I use it a lot :)

kind regards
Maximilian

Tijl De Waele

unread,
Mar 31, 2015, 1:29:25 PM3/31/15
to ope...@googlegroups.com
Hi Andrea,

did you already have the time to put something in the Wiki regarding the way you are controlling your HDDune via Openhab?

thanks !

Tijl

Jeroen Idserda

unread,
Apr 13, 2015, 3:35:45 PM4/13/15
to ope...@googlegroups.com
I just updated the pull request. It is now ready for review. When it's merged I'll add the wiki page to the main repo.

Jeroen.

Andrea Riela

unread,
Apr 13, 2015, 3:38:49 PM4/13/15
to ope...@googlegroups.com
Hi Tijl,

Apologies for the delay. Too busy at work during this period of time.

I will try to do my best next we. I promise :-)

Thanks

Andrea

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.

Alex Alexandroff

unread,
Apr 21, 2015, 11:14:24 AM4/21/15
to ope...@googlegroups.com
Dear Andrea, thanks for your hints with the Dune HD!

I would also be happy to see a wiki for that :)


Could you simply put an example Item for Dune here?

Thanks!

Erik

unread,
May 12, 2015, 6:43:56 PM5/12/15
to ope...@googlegroups.com

Is this binding going to make it into the 1.7 (RC) or is there another way of getting it?

On Saturday, November 8, 2014 at 11:11:50 PM UTC+1, ari...@nesys.it wrote:
Hi folks,

anyone working on a new binding for Denon AVR?

Thanks

Andrea

Jeroen Idserda

unread,
May 13, 2015, 2:37:43 AM5/13/15
to ope...@googlegroups.com
The binding was merged yesterday evening, so it should be in the next 1.7 RC. You can also get it in the next nightly build.

Jim Howard

unread,
May 16, 2015, 10:12:13 AM5/16/15
to ope...@googlegroups.com
Greetings.  I am attempting to give the new binding a try with a Marantz sr7005, which I understand to be close to a Denon 3311.  I am also running OpenHAB2.  I am running the current build of the binding.

 I am receiving the following exception whether I have the mode set to telnet or http:

2015-05-16 09:02:23.601 [WARN ] [.denon.internal.DenonConnector] - Encoding error in get
javax
.xml.bind.UnmarshalException: null
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:420) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:357) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:327) ~[na:1.7.0_79]
        at org
.openhab.binding.denon.internal.DenonConnector.getDocument(DenonConnector.java:547) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonConnector.setConfigProperties(DenonConnector.java:474) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonConnector.getInitialState(DenonConnector.java:189) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonConnector.connect(DenonConnector.java:147) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonBinding.updated(DenonBinding.java:189) [bundleFile:na]
        at org
.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:276) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]
        at org
.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]
Caused by: com.sun.istack.internal.SAXParseException2: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:647) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:243) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:238) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:105) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1048) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:483) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:465) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:231) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:165) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:355) ~[na:1.7.0_79]
       
... 8 common frames omitted
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
       
... 19 common frames omitted


my only uncommented config line in the cfg looks like this:

denon:avr3311.host=10.12.14.16

From the wiki page, it says compatible with the current and previous generation receivers, but later it does list the command set for the 3311.  Should the binding work with a 3311/sr7005, or is my set too old?

Thanks
Jim

Andrea Riela

unread,
May 16, 2015, 12:29:07 PM5/16/15
to ope...@googlegroups.com
All,

I've added some notes how to control a Dune HD player with also a Denon AVR in the wiki. Please let me know.

My remote control is as attached image.

Hope this helps

Any feedback is much appreciated

Thanks

Andrea
image.jpg

Jeroen Idserda

unread,
May 18, 2015, 3:45:37 AM5/18/15
to ope...@googlegroups.com
Hi Jim,

It's not really clear yet which types are supported. The 3311 seems to have the same telnet command set, but the http commands are also used to get some initial state. 

Could you try and open http://10.12.14.16/goform/Deviceinfo.xml in your browser? See if there's any response at all? Thanks!

Regards,
Jeroen.

On Saturday, May 16, 2015 at 4:12:13 PM UTC+2, Jim Howard wrote:
Greetings.  I am attempting to give the new binding a try with a Marantz sr7005, which I understand to be close to a Denon 3311.  I am also running OpenHAB2.  I am running the current build of the binding.

 I am receiving the following exception whether I have the mode set to telnet or http:

2015-05-16 09:02:23.601 [WARN ] [.denon.internal.DenonConnector] - Encoding error in get
javax
.xml.bind.UnmarshalException: null
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:420) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:357) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:327) ~[na:1.7.0_79]
        at org
.openhab.binding.denon.internal.DenonConnector.getDocument(DenonConnector.java:547) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonConnector.setConfigProperties(DenonConnector.java:474) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonConnector.getInitialState(DenonConnector.java:189) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonConnector.connect(DenonConnector.java:147) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonBinding.updated(DenonBinding.java:189) [bundleFile:na]
        at org
.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:276) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]
        at org
.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]
Caused by: com.sun.istack.internal.SAXParseException2: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:647) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:243) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:238) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:105) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1048) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:483) ~[na:1.7.0_79]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller
...

Jim Howard

unread,
May 18, 2015, 2:14:48 PM5/18/15
to ope...@googlegroups.com
Hi Jeroen,

Here is the response from a wget:

html><head><title>Document Error: Data follows</title></head>
        <body><h2>Access Error: Data follows</h2>
        <p>Form Deviceinfo.xml is not defined</p></body></html>


Jim

Jeroen Idserda

unread,
May 19, 2015, 3:52:18 AM5/19/15
to ope...@googlegroups.com
Hi Jim,

Thanks! So that URL is not available. Not a big problem, since it's is only used to determine the number of zones the receiver has (it'll use the default of 2 now). The exception is only a warning, so is the rest of binding still working?

Regards,
Jeroen.

Jim Howard

unread,
May 26, 2015, 8:47:08 PM5/26/15
to ope...@googlegroups.com

Hi Jeroen,

It took me a while, but I did manage to test further finally.  When I enable the plugin and look at the debug log, I get a few more exceptions, so it looks like perhaps it is not compatible.  Anyway, here is what I am seeing.

cfg:

denon:avr3311.host=10.12.14.16
denon:avr3311.update=http

items:

Switch DenonPower           "Marantz 7005 Power"                 {denon="avr3311#PW"}

commandline:

smarthome status DenonPower
Error: Item 'DenonPower' does not exist.


logfile:

2015-05-26 19:05:51 [DEBUG] [.denon.internal.DenonActivator:33   ] - Denon binding has been started.
2015-05-26 19:05:52 [DEBUG] [.c.d.internal.ConfigDispatcher:222  ] - Processing config file 'denon.cfg'
2015-05-26 19:05:54 [DEBUG] [.b.denon.internal.DenonBinding:114  ] - Denon all bindings changed
2015-05-26 19:05:54 [DEBUG] [.b.denon.internal.DenonBinding:133  ] - Denon binding updated
2015-05-26 19:05:54 [DEBUG] [.b.denon.internal.DenonBinding:181  ] - Denon receiver configured at 10.12.14.16
2015-05-26 19:05:54 [DEBUG] [.denon.internal.DenonConnector:472  ] - Refreshing URL: http://10.12.14.16:80/goform/Deviceinfo.xml
2015-05-26 19:05:54 [WARN ] [.denon.internal.DenonConnector:551  ] - Encoding error in getjavax.xml.bind.UnmarshalException: null
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:420)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:357)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:327)
        at org.openhab.binding.denon.internal.DenonConnector.getDocument(DenonConnector.java:547)
        at org.openhab.binding.denon.internal.DenonConnector.setConfigProperties(DenonConnector.java:474)
        at org.openhab.binding.denon.internal.DenonConnector.getInitialState(DenonConnector.java:189)
        at org.openhab.binding.denon.internal.DenonConnector.connect(DenonConnector.java:147)
        at org.openhab.binding.denon.internal.DenonBinding.updated(DenonBinding.java:189)
        at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:276)
        at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)

Caused by: com.sun.istack.internal.SAXParseException2: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:647)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:243)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:238)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:105)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1048)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:483)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:465)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:231)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:165)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:355)
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:647)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:243)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:238)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:105)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1048)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:483)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:465)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:231)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:165)
        at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:355)


This exception is the last thing in the log file, and the item is not created.

If you want me to try anything else, I would be happy to. If we want to say it isn't supported, I understand that too.  It is a Marantz after all :)

Jim

Jeroen Idserda

unread,
May 28, 2015, 3:57:43 PM5/28/15
to ope...@googlegroups.com
Hi Jim,
 
Turns out there's also a NullPointerException right after this warning when the Deviceinfo.xml is not found. I've made a small change, it should be present in the next nightly build. Could you try that one?
 

commandline:

smarthome status DenonPower
Error: Item 'DenonPower' does not exist.

Seems like you're using this binding with openhab2? I haven't tested that myself, might also be the cause of the binding not working.

Regards,
Jeroen.

Jim Howard

unread,
May 28, 2015, 6:55:28 PM5/28/15
to ope...@googlegroups.com
Hi Jeroen, you are correct.  There are many variables here, but I thought I would give it a go.  I am using OpenHAB2, and a Marantz :)  I will let you know how testing goes after the next build.

Jim

Jim Howard

unread,
May 28, 2015, 6:58:47 PM5/28/15
to ope...@googlegroups.com


On Thursday, May 28, 2015 at 5:55:28 PM UTC-5, Jim Howard wrote:
Hi Jeroen, you are correct.  There are many variables here, but I thought I would give it a go.  I am using OpenHAB2, and a Marantz :)  I will let you know how testing goes after the next build.



It looks like I just grabbed a build with the changes.  I now see DenonPower in the smarthome items list, so this is an improvement.  It is throwing a null still though:

java.util.IllegalFormatConversionException: d != java.lang.String
        at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4045) ~[na:1.7.0_79]
        at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2748) ~[na:1.7.0_79]
        at java.util.Formatter$FormatSpecifier.print(Formatter.java:2702) ~[na:1.7.0_79]
        at java.util.Formatter.format(Formatter.java:2488) ~[na:1.7.0_79]
        at java.util.Formatter.format(Formatter.java:2423) ~[na:1.7.0_79]
        at java.lang.String.format(String.java:2790) ~[na:1.7.0_79]
        at org.eclipse.smarthome.core.transform.TransformationHelper.transform(TransformationHelper.java:80) ~[na:na]
        at org.eclipse.smarthome.io.rest.core.util.BeanMapper.considerTransformation(BeanMapper.java:114) ~[na:na]
        at org.eclipse.smarthome.io.rest.core.util.BeanMapper.fillProperties(BeanMapper.java:90) ~[na:na]
        at org.eclipse.smarthome.io.rest.core.util.BeanMapper.mapItemToBean(BeanMapper.java:37) ~[na:na]
        at org.eclipse.smarthome.io.rest.sse.internal.listeners.ItemRegistryEventListener.broadcastItemEvent(ItemRegistryEventListener.java:79) ~[na:na]
        at org.eclipse.smarthome.io.rest.sse.internal.listeners.ItemRegistryEventListener.added(ItemRegistryEventListener.java:55) ~[na:na]
        at org.eclipse.smarthome.io.rest.sse.internal.listeners.ItemRegistryEventListener.added(ItemRegistryEventListener.java:1) ~[na:na]
        at org.eclipse.smarthome.core.internal.items.ItemRegistryImpl.allItemsChanged(ItemRegistryImpl.java:89) ~[na:na]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:399) [org.eclipse.smarthome.model.item_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:200) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:97) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:240) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.notifyUpdateToModelRepo(FolderObserver.java:169) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.updated(FolderObserver.java:150) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]

        at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:276) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]
        at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]2015-05-28 17:50:20.080 [INFO ] [.e.s.m.c.i.ModelRepositoryImpl] - Loading model 'denon.items'
2015-05-28 17:50:20.102 [ERROR] [AbstractGenericBindingProvider] - Binding org.openhab.binding.denon.internal.DenonBinding threw an exception:
java.lang.NullPointerException: null
        at org.openhab.binding.denon.internal.DenonBinding.getConnector(DenonBinding.java:269) ~[na:na]
        at org.openhab.binding.denon.internal.DenonBinding.bindingChanged(DenonBinding.java:104) ~[na:na]
        at org.openhab.model.item.binding.AbstractGenericBindingProvider.notifyListeners(AbstractGenericBindingProvider.java:108) [org.openhab.core.compat1x_2.0.0.201505282017.jar:na]
        at org.openhab.model.item.binding.AbstractGenericBindingProvider.addBindingConfig(AbstractGenericBindingProvider.java:102) [org.openhab.core.compat1x_2.0.0.201505282017.jar:na]
        at org.openhab.binding.denon.internal.DenonGenericBindingProvider.processBindingConfiguration(DenonGenericBindingProvider.java:81) [bundleFile:na]
        at org.openhab.core.binding.internal.BindingConfigReaderDelegate.processBindingConfiguration(BindingConfigReaderDelegate.java:50) [org.openhab.core.compat1x_2.0.0.201505282017.jar:na]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:370) [org.eclipse.smarthome.model.item_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:342) [org.eclipse.smarthome.model.item_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.processBindingConfigsFromModel(GenericItemProvider.java:168) [org.eclipse.smarthome.model.item_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:396) [org.eclipse.smarthome.model.item_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:200) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:97) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:240) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.notifyUpdateToModelRepo(FolderObserver.java:169) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.updated(FolderObserver.java:150) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]

Jim Howard

unread,
May 28, 2015, 9:43:14 PM5/28/15
to ope...@googlegroups.com
It looks like a commit is building now with a denon binding change in it.  I will pull that in a few minutes and let you know what I see.

Jim

Jim Howard

unread,
May 28, 2015, 10:08:58 PM5/28/15
to ope...@googlegroups.com
Still a NPE:

2015-05-28 21:04:46.521 [INFO ] [.e.s.m.c.i.ModelRepositoryImpl] - Loading model 'denon.items'
2015-05-28 21:04:46.524 [ERROR] [AbstractGenericBindingProvider] - Binding org.openhab.binding.denon.internal.DenonBinding threw an exception:
java.lang.NullPointerException: null
        at org.openhab.binding.denon.internal.DenonBinding.getConnector(DenonBinding.java:269) ~[na:na]
        at org.openhab.binding.denon.internal.DenonBinding.bindingChanged(DenonBinding.java:104) ~[na:na]
        at org.openhab.model.item.binding.AbstractGenericBindingProvider.notifyListeners(AbstractGenericBindingProvider.java:108) [org.openhab.core.compat1x_2.0.0.201505290150.jar:na]
        at org.openhab.model.item.binding.AbstractGenericBindingProvider.addBindingConfig(AbstractGenericBindingProvider.java:102) [org.openhab.core.compat1x_2.0.0.201505290150.jar:na]

        at org.openhab.binding.denon.internal.DenonGenericBindingProvider.processBindingConfiguration(DenonGenericBindingProvider.java:81) [bundleFile:na]
        at org.openhab.core.binding.internal.BindingConfigReaderDelegate.processBindingConfiguration(BindingConfigReaderDelegate.java:50) [org.openhab.core.compat1x_2.0.0.201505290150.jar:na]

        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:370) [org.eclipse.smarthome.model.item_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:342) [org.eclipse.smarthome.model.item_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.processBindingConfigsFromModel(GenericItemProvider.java:168) [org.eclipse.smarthome.model.item_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:396) [org.eclipse.smarthome.model.item_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:200) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:97) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:240) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.notifyUpdateToModelRepo(FolderObserver.java:169) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.updated(FolderObserver.java:150) [org.eclipse.smarthome.model.core_0.8.0.201505281707.jar:na]
        at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:276) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]
        at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]


Jeroen Idserda

unread,
May 29, 2015, 5:14:19 AM5/29/15
to ope...@googlegroups.com
Looks like an openhab2 compatibility issue. I'll try to debug the binding there myself too. 

Jeroen.

Jeroen Idserda

unread,
Jun 19, 2015, 3:37:48 AM6/19/15
to ope...@googlegroups.com
The Denon binding now supports openHAB 2. Could you test this again?

Jeroen. 

Jim Howard

unread,
Jun 19, 2015, 10:35:17 AM6/19/15
to ope...@googlegroups.com
I've been lurking and saw the fix, just haven't had time to test yet.  I will, thanks!

Jim

Shawn Jackman

unread,
Jul 22, 2015, 1:19:41 AM7/22/15
to openhab
Hello, I am a new member and also have a Marantz 6006 (usually Denon compatible for other apps I've tried) and was wondering if you had a chance to look at Jeroen's latest update, Jim.

I'm running 1.7 on a QNAP NAS server.  I tried binding built into 1.7, but I'm seemingly not able to get it to connect.  Yes, I'm still new and reading, so please bear with me. This is what I've found in the openhab.log

[o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item DenonCommand for widget org.openhab.model.sitemap.Switch
2015-07-19 19:45:00.408 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item DenonCommand for widget org.openhab.model.sitemap.Switch
2015-07-19 19:45:00.409 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item DenonCommand for widget org.openhab.model.sitemap.Switch
2015-07-19 19:45:00.410 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item DenonCommand for widget org.openhab.model.sitemap.Switch
2015-07-19 19:45:37.745 [WARN ] [.o.u.w.i.render.SwitchRenderer] - Cannot determine item type of 'DenonCommand'
org.openhab.core.items.ItemNotFoundException: Item 'DenonCommand' could not be found in the item registry
at org.openhab.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:80) ~[na:na]

I've set the host IP of my receiver in the openhab_default.cfg file and also put this into the .items file to test a command (power zone 2)...

Switch MarantzZone2 "Backyard Audio" {denon="avr2000#Z2"}

There is probably something I'm missing or I would be seeing success/failure in the logs. Right now switching the switch in the UI doesn't do anything. If this works with 2.0 perhaps I'll start to delve into the upgrade effort.

I'm just getting started and looking forward to developing on this platform with some Arduino hardware for a bunch of ideas for the house.

Thanks!

Shawn

watou

unread,
Jul 22, 2015, 1:56:48 AM7/22/15
to openhab
I've set the host IP of my receiver in the openhab_default.cfg file and also put this into the .items file to test a command (power zone 2)...

The file openhab_default.cfg is only an example containing lines that could be present in the file openhab.cfg.  Editing openhab_default.cfg will not have an effect on the running system.  

Hopefully this helps!

Shawn Jackman

unread,
Jul 23, 2015, 12:22:06 PM7/23/15
to openhab
Indeed, this did help. Thanks for putting up with the rookies.

I did rename the file, but I still was unable to see any progress. I looked at the log file and didn't see attempts/errors of connections.

Can any of you please point me to a thread to enable debugging mode or similar methods? My initial searches don't give details.

BTW, there is definitely more documentation needed to get someone who has programming and IT knowledge acclimated to the system. I've watched many (most?) of the videos, which were helpful, but not at getting an initial system working from scratch. ...maybe I can sucker one of my kids to put something together.  :)

Thank you,

Shawn

Jeroen Idserda

unread,
Jul 23, 2015, 2:15:21 PM7/23/15
to openhab, shawn....@gmail.com
Hi Shawn,

Could you try and install the latest snapshot version of the binding? It's in the addons zip file here: https://openhab.ci.cloudbees.com/job/openHAB/

You can enable debugging for the binding by adding this to your logback.xml (or logback_debug.xml if you're starting openHAB with start_debug.bat or .sh):

<logger name="org.openhab.binding.denon" level="DEBUG" />


Then restart openHAB. 


Regards,

Jeroen.

Shawn Jackman

unread,
Jul 23, 2015, 2:34:09 PM7/23/15
to openhab
Thank you, Jeroen. This points me in the right direction. I am traveling for a family wedding until weekend is over, but will try when I get back.

Keep up the good work!!

Shawn

ban...@gmx.de

unread,
Jul 28, 2015, 7:42:59 AM7/28/15
to openhab, shawn....@gmail.com
Hi Jeroen,

I am running OpenHab on a readynas 102 and installed yesterday your updated Denon binding 1.8.0 to connect to my Marantz SR 7005.
In principle it works! Great job.
However, a minor draw back is the fact that every minute or so, OpenHab encounters a warning:

"2015-07-27 21:19:53.359 [WARN ] [.denon.internal.DenonConnector] - Encoding error in post
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"html"). Expected elements are <{}cmd>,<{}rx>,<{}text>" 

(see also attached log).

Could you pls advise?

Cheers

Björn

PS: Config file:

############################### Denon Binding #########################################
#
# denon:<instance>.<property>=value

# IP adress of the Denon receiver instance
denon:avr2000.host=192.168.1.xxx

# Optional, set connection method for receiving updates. Can be http or telnet. 
# Denon receivers only support one concurrent telnet connection, so use http if 
# you have any other app using the telnet connection. Default = telnet
denon:avr2000.update=http

# Optional, this sets the refresh interval (in milliseconds) for all instances 
# if you're using the http connection method. Default = 5000 
denon:refresh=5000
Denon Binding Debug.txt

Shawn Jackman

unread,
Jul 29, 2015, 12:33:24 AM7/29/15
to openhab, ban...@gmx.de
I was finally able to download the add-ons you recommended, Jeroen. I extracted them to the /addons folder, checked my lines of config in the .cfg file to mirror Bjorn's and still doesn't seem to be working.

Here's some info from the openhab.log file:
2015-07-28 21:13:51.515 [WARN ] [.denon.internal.DenonConnector] - Encoding error in get
javax.xml.bind.UnmarshalException: null
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:468) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:402) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:371) ~[na:1.8.0_06]
at org.openhab.binding.denon.internal.DenonConnector.getDocument(DenonConnector.java:549) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonConnector.setConfigProperties(DenonConnector.java:474) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonConnector.getInitialState(DenonConnector.java:189) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonConnector.connect(DenonConnector.java:147) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonBinding.updated(DenonBinding.java:189) [bundlefile:na]
at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na]
at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na]
Caused by: com.sun.istack.internal.SAXParseException2: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:681) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:247) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:242) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:109) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1086) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:510) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:492) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:231) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:165) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:400) ~[na:1.8.0_06]

... 8 common frames omitted
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
... 19 common frames omitted
2015-07-28 21:13:51.520 [INFO ] [insteonplm.InsteonPLMActivator] - Insteon PLM binding has been started.
2015-07-28 21:13:51.728 [ERROR] [.service.AbstractActiveService] - Error while executing background thread HTTP Refresh Service
java.lang.ClassCastException: org.openhab.binding.http.internal.HttpGenericBindingProvider cannot be cast to org.openhab.binding.http.HttpBindingProvider
at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:135) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
2015-07-28 21:13:51.864 [ERROR] [.service.AbstractActiveService] - Error while executing background thread HTTP Refresh Service
java.lang.ClassCastException: org.openhab.binding.http.internal.HttpGenericBindingProvider cannot be cast to org.openhab.binding.http.HttpBindingProvider
at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:132) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
2015-07-28 21:13:52.615 [WARN ] [.denon.internal.DenonConnector] - Encoding error in post

later in the file I also found this:
2015-07-28 21:15:17.744 [DEBUG] [.denon.internal.DenonConnector] - Command: NS, value: E0Now Playing
2015-07-28 21:15:17.715 [ERROR] [.service.AbstractActiveService] - Error while executing background thread HTTP Refresh Service
java.lang.ClassCastException: org.openhab.binding.http.internal.HttpGenericBindingProvider cannot be cast to org.openhab.binding.http.HttpBindingProvider
at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:132) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
2015-07-28 21:15:17.755 [ERROR] [.service.AbstractActiveService] - Error while executing background thread Souliss Refresh Service
java.lang.NullPointerException: null
at org.openhab.binding.souliss.internal.SoulissBinding.execute(SoulissBinding.java:343) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
2015-07-28 21:15:17.758 [DEBUG] [.denon.internal.DenonConnector] - Command: NS, value: E1

I'll keep trying a few other things. I will also try telnet in lieu of http.

I haven't changed anything else as of yet.

Thanks!

Shawn

Shawn Jackman

unread,
Jul 29, 2015, 12:50:56 AM7/29/15
to openhab, ban...@gmx.de
Update from my post post 15m ago. I changed the protocol to Telnet and it worked!!!

I haven't looked at the logs yet, but I will build out the interface a little bit more and see how far I can get with the integration.

Great job, Jeroen.

ban...@gmx.de

unread,
Jul 29, 2015, 6:07:41 AM7/29/15
to openhab, shawn....@gmail.com
Hi Jeroen, hi Shawn,

I can confirm Shawn's statement: Changing to telnet does the job.
There is now only one Error warning when the binding is loaded during OpenHab start-up phase. See attchement.
From what I can see your complete example is working.
Great job, Jeroen.
Could you advise what command I need for activating my iradio favorite station on preset channel A1?
Thanks a lot!

Cheers

Björn
Denon Binding Error log.txt

Jim Howard

unread,
Jul 29, 2015, 8:10:14 AM7/29/15
to openhab, shawn....@gmail.com, ban...@gmx.de
Finally, I was able to play around, and can confirm what others are seeing.  It is working with my Marantz 7005 using http, but I get the exception previously mentioned:

2015-07-29 07:00:37.878 [WARN ] [.denon.internal.DenonConnector] - Encoding error in post
javax
.xml.bind.UnmarshalException: unexpected element (uri:"", local:"html"). Expected elements are <{}cmd>,<{}rx>,<{}text>
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:697) ~[na:1.7.0_85]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:243) ~[na:1.7.0_85]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:238) ~[na:1.7.0_85]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:105) ~[na:1.7.0_85]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1098) ~[na:1.7.0_85]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:534) ~[na:1.7.0_85]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:516) ~[na:1.7.0_85]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:125) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:379) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:605) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3138) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:880) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) ~[na:1.7.0_85]
        at com
.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648) ~[na:1.7.0_85]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:203) ~[na:1.7.0_85]
        at com
.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:175) ~[na:1.7.0_85]
        at javax
.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157) ~[na:1.7.0_85]
        at javax
.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:204) ~[na:1.7.0_85]
        at org
.openhab.binding.denon.internal.DenonConnector.postDocument(DenonConnector.java:573) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonConnector.updateDisplayInfo(DenonConnector.java:460) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonConnector.refreshHttpProperties(DenonConnector.java:496) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonConnector.updateState(DenonConnector.java:199) [bundleFile:na]
        at org
.openhab.binding.denon.internal.DenonBinding.execute(DenonBinding.java:71) [bundleFile:na]
        at org
.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) [org.openhab.core.compat1x_2.0.0.201507260157.jar:na]
        at org
.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) [org.openhab.core.compat1x_2.0.0.201507260157.jar:na]



I am able to toggle the power, and see the power be toggled from OpenHAB2 though!

Jim

Shawn Jackman

unread,
Aug 1, 2015, 3:09:53 PM8/1/15
to openhab
I was able to test today and I'm not getting current status reflected in the openHAB app/website. i.e. when I turn on zone 2 on the amp, it doesn't show that it is now on in openHAB. I thought it was supposed to track state?

ban...@gmx.de

unread,
Aug 4, 2015, 8:50:28 AM8/4/15
to ope...@googlegroups.com
Hi Shawn,
I've seen the same thing.
I have also noticed that the update status does fail after I have tried to connect to my Marantz with a different App (Denon).
I have read in a different forum that this is due to the fact that my Marantz accepts only one client to be connected at one time.
Unfortunately the OpenHab Denon binding and the long Openhab pulling rest binding does not connect itself again after a disconnection without a restart of openhab.
Vice versa the Denon App will not connect itself to my Marantz while the Openhab binding is connected.

Jeroen, pls advise if this is true and can be avoided?

Jeroen Idserda

unread,
Aug 11, 2015, 3:10:33 PM8/11/15
to openhab
Hey guys,

Let me try to summarise your findings:

- The telnet connection seems to work fine with the Marantz 7005. Only 1 concurrent connection to the receiver is supported, just as with the Denon receivers. The binding should try to reconnect every 10 seconds if it's not able to connect right away. This works with my Denon X2000. If you enable debug logging for the binding you should see something like this:

20:57:23.109 DEBUG o.o.b.d.internal.DenonListener[:80]- Connecting to 192.168.1.70

20:57:23.110 ERROR o.o.b.d.internal.DenonListener[:83]- Error connecting to 192.168.1.70

20:57:53.113 DEBUG o.o.b.d.internal.DenonListener[:80]- Connecting to 192.168.1.70

20:57:53.115 DEBUG o.o.b.d.internal.DenonListener[:92]- Denon telnet client connected to 192.168.1.70


- The status of the receiver should indeed be visible in openHAB. This works instant for the telnet connection and with a small delay (configured refresh interval) for the http method. 
- There seem to be some http URL's missing on the Marantz. Could you guys check if these are available on your receiver? Replace 192.168.1.70 with the IP of your Marantz:


Thanks!

Regards,
Jeroen.




Shawn Jackman

unread,
Aug 12, 2015, 10:25:20 AM8/12/15
to openhab
I definitely will!

Shawn Jackman

unread,
Aug 13, 2015, 12:29:02 AM8/13/15
to openhab
I was able to do the test.  Here is the result for Marantz SR6006 with latest firmware. I can dig that up if you need it.

MarantzTest.zip

Erik

unread,
Aug 13, 2015, 2:50:04 PM8/13/15
to openhab

Andre Lackmann

unread,
Aug 17, 2015, 1:28:21 AM8/17/15
to ope...@googlegroups.com
I have the same warning in the log. I've got a Denon AVR3312 Receiver and have successfully connected it into OpenHAB.

2015-08-17 15:02:48.920 [WARN ] [.denon.internal.DenonConnector] - Encoding error in post
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"html"). Expected elements are <{}cmd>,<{}rx>,<{}text>
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(Unknown Source) ~[na:1.8.0_51]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Unknown Source) ~[na:1.8.0_51]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Unknown Source) ~[na:1.8.0_51]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Unknown Source) ~[na:1.8.0_51]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(Unknown Source) ~[na:1.8.0_51]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(Unknown Source) ~[na:1.8.0_51]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(Unknown Source) ~[na:1.8.0_51]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) ~[na:1.8.0_51]
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[na:1.8.0_51]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown Source) ~[na:1.8.0_51]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0_51]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0_51]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source) ~[na:1.8.0_51]
at org.openhab.binding.denon.internal.DenonConnector.postDocument(DenonConnector.java:573) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonConnector.updateDisplayInfo(DenonConnector.java:460) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonConnector.refreshHttpProperties(DenonConnector.java:496) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonConnector.updateState(DenonConnector.java:199) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonBinding.execute(DenonBinding.java:71) [bundlefile:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) [org.openhab.core_1.7.1.jar:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) [org.openhab.core_1.7.1.jar:na]
```

I have the same issue whether it's configured to use the telnet or http method of the binding. The Denon XML files available from the list are the same as the 3311 I believe:

FAIL (Access Error: Data follows) - http://192.168.1.70/goform/Deviceinfo.xml
FAIL (Access Error: Data follows) - http://192.168.1.70/goform/AppCommand.xml

I've tried the 1.8.0-Nightly build of the addon (with OpenHAB 1.7.1) with the same result.

From my reading of the code and backtrace it seems the lack of the 'AppCommand.xml' file results in the updateDisplayInfo() function failing.

ban...@gmx.de

unread,
Aug 31, 2015, 3:10:39 PM8/31/15
to openhab
Hi Jeroen,

I've tried as well (Marantz SR 7005).
Outcome as follows (similar than posts before):

http://192.168.1.70/goform/formZone3_Zone4XmlStatusLite.XML -> Error = Access Error: Data follows Form formZone3_Zone4XmlStatusLite.xml is not defined
http://192.168.1.70/goform/Deviceinfo.xml -> Error = Access Error: Data follows Form Deviceinfo.xml is not defined
http://192.168.1.70/goform/AppCommand.xml -> Error = Access Error: Data follows Form AppCommand.xml is not defined
http://192.168.1.70/goform/formiPhoneAppDirect.XML -> Error = Access Error: Data follows Form formiPhoneAppDirect.XML is not defined

In addition it seems that although the binding does reconnect, the update of the status of the Marantz is not reactivated (long polling Rest API).

Last but not least, can you pls advise what command I need to use to activate / switch on a favorite Internet Radio station on Memory A1?

Thanks a lot for your splendid work!

It is highly appreciated.

Cheers

Björn
Reply all
Reply to author
Forward
0 new messages