Marantz SR 7011 Zones not working

Hello,
I am trying to move from domoticz to home assistant, it is a steep learning curve and most of things working in domoticz do not work as yet in home assistant.

I have a Marantz SR 7011 that works when I use the denon component. I can change input sources and volumes. But I would like to have also ability to turn on / off the Zones. I choose the denonavr component but that component does not do anything (also not the main zone). In the logs I see:

" Host 192.168.2.29 returned HTTP status code 403 to GET request at end point /goform/formMainZone_MainZoneXmlStatus.xml
2019-01-24 19:52:15 ERROR (SyncWorker_3) [DenonAVR] Host 192.168.2.29 returned HTTP status code 403 to GET request at end point /goform/formMainZone_MainZoneXml.xml
2019-01-24 19:52:15 ERROR (SyncWorker_3) [DenonAVR] Host 192.168.2.29 returned HTTP status code 403 to GET request at end point /goform/formZone2_Zone2XmlStatus.xml
2019-01-24 19:52:15 ERROR (SyncWorker_3) [DenonAVR] Host 192.168.2.29 returned HTTP status code 403 to GET request at end point /goform/formZone3_Zone3XmlStatus\

Is this a known bug?

Iā€™m seeing the same messages in my log too. I own a SR5012. Have you solved this?

No unfortunately not.
I do not understand python programming so I am stuck. If you understand python you may check this topic in domoticz forum about marantz python plugin: https://www.domoticz.com/forum/viewtopic.php?t=16700
With that plugin my SR 7011 works fine.

I just upgraded from a SR7010 to a SR7013, and while the denonavr component worked on the SR7010, I now get the same error as you with my SR7013.
Would love to get this to work again!

I have no success as of yet. The denon component works a bit (it is working through telnet). But denonavr (using http) not. I saw on Github a topic on using different ports (i.e:8080). The port works in a browser but not in the component

Although I am just trying my way without knowing much about the technicalities of the way these components work, I think I am on to something that might eventually enable one of you to fix the denonavr component so it works with newer Marantz recievers.

If you enter your recievers ip address in a browser like <IP_ADDRESS>:10080 you shold get access to a web interface of the setup menu and where you can also do some very basic operations like turn on and off and select input source.

I then opened the browser inspect tool in chrome and observed what kind of information was sent when I clicked around in the web app. Eventually I discovered the Network tab in the inspect tool and there the REST commands (I think it is?) that were sent.

So far I have identified how to turn the reciever on and off:
On:
GET http://<IP_ADDRESS>:10080/ajax/globals/set_config?type=4&data=<MainZone><Power>1</Power></MainZone>
Off:
GET http://<IP_ADDRESS>:10080/ajax/globals/set_config?type=4&data=<MainZone><Power>3</Power></MainZone>

So at least it should now be possible to create some REST sensors in HA for the basic stuff. I will try that now. Oh I guess that is not how this works. Better to create some API call nodes in node-red.

I have the SR7011 working with the denonavr component. I had to change this line in the denonavr.py file found in /srv/homeassistant/lib/python3.5/site-packages/denonavr:

DEVICEINFO_AVR_X_PATTERN = re.compile(
r"(.AVR-X.|.*SR500[6-9]|.*SR60(07|08|09|10|11|12|13)|.*NR1604)

I changed SR60 to SR70 and everything works. The SR7011 is then using port 8080 instead of 80. The only problem I have right now is that my main home assistant device is using docker. And I cannot find the denonavr.py file in the docker systemā€¦ If anyone can point me to that file location?

1 Like

Did you find the file in the Docker Container? I also have a Marantz SR7011, and have the same issues as you stated, so Iā€™m eagerly waiting to see this fixed :sweat_smile:

Unfortunately not. So it works if you have home assistant in virtual env and can change the denonavr.py file. I asked the author of the plugin to add the SR7011 to the denonavr but no response as of yet.

In the meanwhile i also tried putting the denonavr.py in the custom_components folder like suggested elsewhere (Editing Component Files in Hassio) But the denonavr in the configuration file seems to just ignore that. Maybe you have an idea how to do that?

I just came back to this issue and reading your suggested workaround I gave it another go, and I got it working with my SR7013 :slight_smile:

I created a denonavr subfolder in custom_components for the media_player.py etc. and then I created an additional denonavr subfolder and put the denonavr.py etc. there, like this:

image

Then in the denonavr.py i made the suggested addition:

DEVICEINFO_AVR_X_PATTERN = re.compile(
    r"(.*AVR-(X|S).*|.*SR500[6-9]|.*SR60(07|08|09|10|11|12|13)|.*SR70(07|08|09|10|11|12|13)|.*NR1604)")

And in media_player.py I changed the import to:

from .denonavr import denonavr

Hi,

Iā€™m quite new to HA and can see my Marantz NR1710 in HA by adding the HEOS intergration.
The problem is that not all functions are working. for example the ON/OFF is not working.
Iā€™m trying to follow your suggestion to add the NR1710 to the DEVICEINFO_AVR_X_PATTERN
used this for now

DEVICEINFO_AVR_X_PATTERN = re.compile(
    r"(.*AVR-(X|S).*|.*SR500[6-9]|.*SR60(07|08|09|10|11|12|13)|."
    r"*SR70(07|08|09|10|11|12|13)|.*NR16(04|05|06|07|08|09)|.*NR17(04|05|06|07|08|09|10))")

i created a folder ā€˜custom_components/denonavr/denonavrā€™ but i donā€™t quite know what to put in the ā€˜custom_components/denonavrā€™ folder.

i donā€™t know what i should change to the media_player.py. is adding the line enough?

from .denonavr import denonavr

can you/anyone help me with this pls?

1 Like

What setup are you using and which version of HA?
I am now using docker latest HA version and my marantz sr 7011 is working out of the box

Hi Tom.
Thx for your reply.
Sry forgot to mention that.
Hassio: 3.11
HA: 0.106.2
Iā€™m using a raspberry pi with hassio. Latest update.
Marantz is connected to the lan and is discovered by HA but with limited functionality. I can see whatā€™s playing(internet radio), use volume up/down/mute/stop/start.
I even have a script to start playing heos favorite 1.

But I canā€™t get it to turn on/off.
I do have access by browsing to the IP address. There I can turn it on/off (in a chrome tab) I captured my network and have an URL to turn it ON and one for OFF.
But canā€™t quite understand why HA is not supporting this.

Have you checked other mediaplayer entities? For my marantz I have two media player entities: 1 is called: media_player.marantz_sr7011 which seems to be generated by heos integration. In that entity I cannot turn off the player. The other entity is called: media_player.sr7011 and with that entity I can turn off the amplifier.

Hi tom,
no the heos integration only gives me 1 entity. (called: ā€œmedia_player.home_theaterā€ by default)

If i go to Configuration -> integrations -> Heos:Controller than i see it has discoverd the correct device info like model. if i click this line i even see the firmware number.


strangeā€¦

But did you also include the denonavr in your configuration.yaml? I have this

mediaplayer:
  - platform: denonavr
    host: 192.168.2.29
    name: SR7011
    show_all_sources: true
    timeout: 2
    zones:
      - zone: Zone2
        name: Terras1
      - zone: Zone3
        name: Terras2

that is what i had, but comment that part out because i didnā€™t want it to interfere with the heos integration.
i uncommented now the following

####################################################
#                                                  #
#              Marantz Receiver                    #
#                                                  #
####################################################
media_player:
  - platform: denonavr
    host: 192.168.1.17
    name: Marantz
    show_all_sources: true
    timeout: 60

what i see now in the log (missed that before)

i tried to login into HEOS but i donā€™t know if that worked.
i went to developer-tools/service
image

but i donā€™t get a response i execute it. (also nothing in the logfile)

also the following commands seem to work
http://192.168.1.17:8080/goform/formiPhoneAppDirect.xml?PWON
http://192.168.1.17:8080/goform/formiPhoneAppDirect.xml?PWSTANDBY