Closed piltous closed 2 months 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!
(message by CodeOwnersMention)
denonavr documentation denonavr source (message by IssueLinks)
additionnel info, when I reboot HA, the auto discovering is working but still failed too add. The marantz app works well. Telnet port is opened. Rgds
Same issue and same environment, HA VM under Proxmox. This may have something to do with HAOS v13 as there are some other issues going on. There's nothing more I can share other than I can ping my marantz av7005 but HA won't connect to it or is intermittent at best (it does look like it works sometimes). Hundreds of log messages. Here's a sampling:
2024-08-21 13:53:36.031 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10
2024-08-21 13:53:36.032 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.marantz_av7005 is taking over 10 seconds
2024-08-21 13:53:46.032 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10
2024-08-21 13:53:56.033 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10
2024-08-21 13:55:46.047 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10
2024-08-21 13:55:46.048 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.marantz_av7005 is taking over 10 seconds
2024-08-21 13:55:56.048 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10
2024-08-21 13:56:06.050 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10
2024-08-21 13:56:12.993 WARNING (MainThread) [homeassistant.components.denonavr.media_player] Timeout connecting to Denon AVR receiver at host 172.20.100.195. Device is unavailable
2024-08-21 13:56:26.053 WARNING (MainThread) [homeassistant.components.media_player] Updating denonavr media_player took longer than the scheduled update interval 0:00:10
2024-08-21 13:56:26.054 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.marantz_av7005 is taking over 10 seconds
Debug looks like this during initialization:
2024-08-21 15:00:58.572 DEBUG (MainThread) [denonavr.decorators] Exception Returned document contains HTML raised, clearing cache
2024-08-21 15:00:58.573 DEBUG (MainThread) [denonavr.foundation] Request error on port 80 when identifying receiver, device is not a avr-x receivers
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/asyncstdlib/_lrucache.py", line 426, in __call__
result = self.__cache[key]
~~~~~~~~~~~~^^^^^
KeyError: <asyncstdlib._lrucache.CallKey object at 0x7fa811bf7d90>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/denonavr/foundation.py", line 194, in async_identify_receiver
xml = await self.api.async_get_xml(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/denonavr/decorators.py", line 111, in wrapper
return await cached_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/asyncstdlib/_lrucache.py", line 429, in __call__
result = await self.__wrapped__(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/denonavr/decorators.py", line 47, in wrapper
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/denonavr/api.py", line 191, in async_get_xml
self.check_xml_validity(request, xml_root)
File "/usr/local/lib/python3.12/site-packages/denonavr/api.py", line 293, in check_xml_validity
raise AvrInvalidResponseError("Returned document contains HTML", request)
denonavr.exceptions.AvrInvalidResponseError: Returned document contains HTML
2024-08-21 15:01:03.585 DEBUG (MainThread) [denonavr.decorators] HTTP timeout exception on request <Request('GET', 'http://172.20.100.195:8080/goform/Deviceinfo.xml')>
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 254, in __aiter__
async for part in self._httpcore_stream:
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 367, in __aiter__
raise exc from None
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 363, in __aiter__
async for part in self._stream:
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 349, in __aiter__
raise exc
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 341, in __aiter__
async for chunk in self._connection._receive_response_body(**kwargs):
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 210, in _receive_response_body
event = await self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 224, in _receive_event
data = await self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 32, in read
with map_exceptions(exc_map):
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/denonavr/decorators.py", line 47, in wrapper
return await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/denonavr/api.py", line 136, in async_get
res = await client.get(endpoint, timeout=self.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1801, in get
return await self.request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1574, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1675, in send
raise exc
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1669, in send
await response.aread()
File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 911, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 929, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 987, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 149, in __aiter__
async for chunk in self._stream:
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 253, in __aiter__
with map_httpcore_exceptions():
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
The URL listed in the debug code (XML file request) returns a 404 error in my browser. Not using telnet...never have.
After installing 13.1 it appears at first boot to have fixed the issue. I was seeing connection issues immediately and there are no messages now.
Hello, Issue fixed with 13.1 update. I should have wait this update before opening this ticket. Many thanks
Fixed with HAOS 13.1 update
The problem
Hello, Recently, Denon AVR Integration stopped working for me with my Marantz NR1604 when it was working for years. Now I have this message "Failed to connect, please try again, disconnecting mains power and ethernet cables and reconnecting them may help" I tried to remove the power cable for 30s and change IP but not luck. I'm running the last HA os/version under Proxmox. Thanks for your help.
What version of Home Assistant Core has the issue?
2024.8.2
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
No response
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?
Additional information
No response