Denon / Marantz 2.0 Binding

So why does the binding communicate so fast ?
Is it also http or telnet ?

Br Peter

I changed the thing to that:

String DenonCommand "Denon Remote []" { channel="denonmarantz:avr:0005cd3a0e8e:general#command" }

Now the Status is not shown anymore in the UI

It can do telnet or http, depends on how you configured it (or how it auto detected the AVR).

Then here its not telnet.
But whats the reason that it is faster then the http binding ? (an no errors in the log)

So for those who are intrested, here my custom commands for my Denon X2000.
I realised the commands to replace the manual remote and direct access to the channel volume.

my custom command string item:

String DenonCommand "[]" { channel="denonmarantz:avr:<mydenonuniqeid>:general#command" }

my relevant part of the sitemap:

Switch item=DenonCommand         icon=""              mappings=['MNMEN ON'="SETUP ON",'MNMEN OFF'="SETUP OFF"] //Setup Menue On Off
Switch item=DenonCommand         icon="movecontrol"   mappings=[MNCLT="⬅️",MNCUP="⬆️",MNCDN="⬇️",MNCRT="➡️"] //The Arrowkeys 
Switch item=DenonCommand         icon=""              mappings=[MNENT="ENTER",MNRTN="BACK",MNINF="INFO",MNOPT="OPTION"] //Enter Back Info and Option Keys
Switch item=DenonCommand         icon="soundvolume-0" mappings=['CVSW UP'="SUBW +",'CVSW DOWN'="SUBW -",'CVC UP'="CENTER +",'CVC DOWN'="CENTER -"] //Subwoofer and Center Volume
Switch item=DenonCommand         icon="soundvolume-0" mappings=['CVFL UP'="FRONT L +",'CVFL DOWN'="FRONT L -",'CVFR UP'="FRONT R +",'CVFR DOWN'="FRONT R -"] //Frontspeaker Volume
Switch item=DenonCommand         icon="soundvolume-0" mappings=['CVSL UP'="SURR L +",'CVSL DOWN'="SURR L -",'CVSR UP'="SURR R +",'CVSR DOWN'="SURR R -"] //Sourroundspeaker Volume
Selection item=DenonCommand         icon="soundvolume-0"   label="Sourround Mode" mappings=[MSMOVIE="Movie",MSMUSIC="Music",MSGAME="Game",'MSPURE DIRECT'="Pure Direct",MSDIRECT="Direct",MSSTEREO="Stereo",MSSTANDARD="Standard",'MSDOLBY DIGITAL'="Dolby Digital",'MSDTS SURROUND'="Dts Surround",'MSMCH STEREO'="Multi Ch Stereo",'MSROCK ARENA'="Rock Arena",'MSJAZZ CLUB'="Jazz Club",'MSMONO MOVIE'="Mono Movie",MSMATRIX="Matrix",'MSVIDEO GAME'="Video Game",MSVIRTUAL="Virtual"] // Select SURROUND mode

have fun with it.

Br Peter

1 Like

hi there again,

did somebody try to operate a Denon Blu-Ray player with OpenHab ?
I read at the Denon Website that Denon Blu-Ray players IF they are connected with HDMI to an
AVR from Denon they can be controlled by remote with the Denon Remote App.
Therefore i guess it can be possible to control them with OpenHab.

Iam trying to find that out because my old LG BD doesnt support that.

BR
Peter

Hi all!
I wrote a topic here: Denon&Marantz binding ZONE4 operation but I can’t deal with it myself. Can anybody help? It would be best to add 4th zone…

1 Like

Hi, I’m working on official support for a 4th zone. Track progress here: https://github.com/openhab/openhab-addons/issues/7197

Hi there,

since a few days i have a lot of messages like that in the log:

2020-03-29 11:51:15.049 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel mainZone#input although the handler was already disposed.

2020-03-29 11:51:15.052 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#surroundProgram although the handler was already disposed.

2020-03-29 11:52:50.953 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#surroundProgram although the handler was already disposed.

2020-03-29 11:52:56.191 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel mainZone#volume although the handler was already disposed.

2020-03-29 11:52:56.197 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel mainZone#volumeDB although the handler was already disposed.

2020-03-29 11:55:02.921 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel mainZone#volume although the handler was already disposed.

2020-03-29 11:55:02.926 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel mainZone#volumeDB although the handler was already disposed.

2020-03-29 11:56:46.951 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:05:38.062 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:09:39.002 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:12:56.205 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:17:12.578 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:22:03.951 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:25:04.124 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:27:43.449 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:31:54.616 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:35:59.232 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:39:22.768 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:40:58.819 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel mainZone#input although the handler was already disposed.

2020-03-29 12:41:04.048 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel mainZone#volume although the handler was already disposed.

2020-03-29 12:41:04.052 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel mainZone#volumeDB although the handler was already disposed.

2020-03-29 12:44:12.110 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:47:33.851 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:50:41.664 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:54:28.823 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

2020-03-29 12:57:24.978 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler DenonMarantzHandler of thing denonmarantz:avr:0005cd3a0e8e tried updating channel general#track although the handler was already disposed.

I´m on OH 2.4 with a Denon AVR X2000

Br Peter

I’d did a restart of OpenHab.
Now the messages are gone…

1 Like

Hi all,

Thank you for this binding, its what has motivated me to go full steam ahead into openHAB in my house.

I have a rather silly question, I’m trying to set the AVR’s input to Tuner, which in turn also turns it on, I have the switch and rule all set up and it turns on the Receiver but when I tried to add the line to set to tuner I get an error as below: I’m sure I’m just asking it in the wrong way and I’ve tried a few other methods I’ve found above but without sucess.

Error: 2020-05-30 16:46:34.059 [WARN ] [rthome.model.script.actions.BusEvent] - Cannot convert ‘TUNER’ to a command type which item ‘GF_Lounge_DenonX2500’ accepts: [OnOffType, RefreshType].

My command from rules: GF_Lounge_DenonX2500.sendCommand(“TUNER”)}

Model: Denon AVR-2500H.

All other functions work great, I can choose Input from the Menu I have set up in Basic UI, turn on/off etc, all LIGHTNING FAST- Basically instant!!! Faster than both the AVR Remote App and google home even.

Hi @Allen8. Please share the definition of item GF_Lounge_DenonX2500. It looks like it is a Switch type while you are sending some other command to it.
You need to send the command to an item linked to the channel mainZone#input

Hi @jwveldhuis.

Thank you replying, here are the item definitions I have in my .items file for GF_Lounge_DenonX2500

Switch GF_Lounge_DenonX2500 “Denon X2500” (GF_Lounge, gDenonX2500) {channel=“denonmarantz:avr:d34bc4e0:general#power”}
Dimmer GF_Lounge_DenonX2500_vol “Volume (AMP)” (GF_Lounge, gDenonX2500) {channel=“denonmarantz:avr:d34bc4e0:mainZone#volume”}
String GF_Lounge_DenonX2500_In “Input [%s] (AMP)” (GF_Lounge, gDenonX2500) {channel=“denonmarantz:avr:d34bc4e0:mainZone#input”}
Switch GF_Lounge_DenonX2500_mute “Mute (AMP)” <soundvolume_mute> (GF_Lounge, gDenonX2500) {channel=“denonmarantz:avr:d34bc4e0:mainZone#mute”}

Ok. Change the rule to
GF_Lounge_DenonX2500_In.sendCommand(“TUNER”)

1 Like

HI,

Thank you, I tried it out now and I get the following error in the log:

2020-05-31 08:59:39.709 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule ‘Radio_Mode_ON’: The name ‘TUNER’ cannot be resolved to an item or type; line 9, column 41, length 5

I added : String GF_Radio_Mode_Command “Radio” (GF_Lounge, gDenonX2500) {channel=“denonmarantz:avr:d34bc4e0:general#command”} to my items (it was there from the beginning but I removed it somewhere along the line whilst adding it to the builders code) and BOOM! it can now switch to tuner at the press of a button! It doesn’t work as I expected which is solely down to my rules which I will sort out later today.

Thank you so much @jwveldhuis really appreciate the help!

Thanks for the great binding!
I was using a python script to control my Marantz (SR5006), after installed the binding I found the script telling me “Target machine actively refused the connection”. I can still browse to it and control it though.

I guess it is because my Marantz allows only 1 telnet? Can the binding disconnect when not in use for a while?
Would you be able to implement a channel to allow sending user typed string? for example “TFAN009110” which switches radio to FM91? This way I can retire my script.

Thanks a lot.

@yardern yes only 1 active telnet connection is supported. And no the binding can’t disconnect. You can try to use the HTTP method of connecting to the receiver.
Or try to come up with a ‘multiplexer’ for the telnet connection. E.g. listen on another machine/IP on port 23 and accept multiple connections from there and distribute all output from the receiver through the multiplexer. I had such a script (using Python) running successfully a while ago but no longer have it…

@jwveldhuis
Thanks for your response and answer!
I am not good at programming, but managed to have 2 python scripts working, 1 uses http and 1 uses telnet. I can switch between them no problem to control Marantz at several seconds interval, after I uninstalled the binding.
I guess there must be a reason to have the binding maintain an active connection.
I will stick with my script for now. Thanks.

@jwveldhuis Have you seen [DenonMarantz] Telnet Thread Issue · Issue #9494 · openhab/openhab-addons · GitHub ? Bug was opened as a byproduct of looking for a different thread issue.

Not yet but now I have. Will see. It’s just 1 thread but get the point if all bindings do that there is a risk of starvation.