home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.81k forks source link

Denon AVR Network Receiver / Error: Returned document contains HTML (Denon Remote App works fine that time) #88066

Closed marcinprzybysz86 closed 1 year ago

marcinprzybysz86 commented 1 year ago

The problem

Denon becomes unavailable after few hours/days while Denon Remote App still works fine. To get it working again I need to manually reload the integration.

It has this issue for more than a year.

What version of Home Assistant Core has the issue?

2023.2.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Denon AVR Network Receivers

Link to integration documentation on our website

https://www.home-assistant.io/integrations/denonavr/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.denonavr.media_player
Source: components/denonavr/media_player.py:256
Integration: Denon AVR Network Receivers (documentation, issues)
First occurred: 13 lutego 2023 10:09:35 (8603 occurrences)
Last logged: 10:05:02

Error Returned document contains HTML occurred in method async_update for Denon AVR receiver
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/asyncstdlib/_lrucache.py", line 408, in __call__
    result = self.__cache[key]
KeyError: <asyncstdlib._lrucache.CallKey object at 0x7f547f988a30>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/denonavr/media_player.py", line 156, in wrapper
    return await func(self, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/denonavr/media_player.py", line 256, in async_update
    await self._receiver.async_update_audyssey()
  File "/usr/local/lib/python3.10/site-packages/denonavr/denonavr.py", line 203, in async_update_audyssey
    await self.audyssey.async_update()
  File "/usr/local/lib/python3.10/site-packages/denonavr/audyssey.py", line 79, in async_update
    await self.async_update_audyssey(
  File "/usr/local/lib/python3.10/site-packages/denonavr/audyssey.py", line 88, in async_update_audyssey
    await self.async_update_attrs_appcommand(
  File "/usr/local/lib/python3.10/site-packages/denonavr/foundation.py", line 498, in async_update_attrs_appcommand
    xml = await self._device.api.async_post_appcommand(
  File "/usr/local/lib/python3.10/site-packages/denonavr/decorators.py", line 99, in wrapper
    return await func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/asyncstdlib/_lrucache.py", line 411, in __call__
    result = await self.__wrapped__(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/denonavr/decorators.py", line 47, in wrapper
    return await func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/denonavr/api.py", line 166, in async_post_appcommand
    self.check_xml_validity(request, xml_root)
  File "/usr/local/lib/python3.10/site-packages/denonavr/api.py", line 246, in check_xml_validity
    raise AvrInvalidResponseError(
denonavr.exceptions.AvrInvalidResponseError: Returned document contains HTML

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @ol-iver, @starkillerog, mind taking a look at this issue as it has been labeled with an integration (denonavr) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `denonavr` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign denonavr` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


denonavr documentation denonavr source (message by IssueLinks)

Mappenhei commented 1 year ago

Same problem here

ol-iver commented 1 year ago

Could you please run this script when the integration is working and when the integration is not working and post the resulting xml files here?

Mappenhei commented 1 year ago

@ol-iver I'm sorry but I wasn't able to execute this script in my HOME ASSISTANT OS

I moved the script into /config/pyscricpt and tried to execute the same with:

switch:
  - platform: command_line
    switches:
      my_script:
        command_on: "python /config/pyscript/denon_receiver_xml.py --host 172.16.6.44 --prefix AVR-X1000"

Unfortunately no file was created when I switch it on.

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.