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

Receiver denon has stopped working #44287

Closed jvnrambo closed 3 years ago

jvnrambo commented 3 years ago

The problem


My Denon AVR-X2500H receiver has stopped working in the past few weeks. 
Analyzing home-assistant.log file, I check and noticed for several error messages. 
I have switched the receiver off and back on countless times, and has already deleted and re-included the "Denon AVR Network" integration several times as well too. 
Right after power on, the home-assistant recognizes the receiver, but in a few seconds he reports that the device is no longer available, and i See many errors in log file

Environment

Problem-relevant configuration.yaml

no yaml involved
There is nothing configured in the configuration.yaml file that is relevant to quote here, because the integration "Denon AVR Network" has always made all the necessary adjustments. So much so that it recognizes, registers, but it doesn't work anymore.

Traceback/Error logs

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 169, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 106, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 155, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 213, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/denonavr/config_flow.py", line 146, in async_step_confirm
    return await self.async_step_connect()
  File "/usr/src/homeassistant/homeassistant/components/denonavr/config_flow.py", line 160, in async_step_connect
    if not await connect_denonavr.async_connect_receiver():
  File "/usr/src/homeassistant/homeassistant/components/denonavr/receiver.py", line 33, in async_connect_receiver
    if not await self._hass.async_add_executor_job(self.init_receiver_class):
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/denonavr/receiver.py", line 66, in init_receiver_class
    self._receiver = denonavr.DenonAVR(
  File "/usr/local/lib/python3.8/site-packages/denonavr/denonavr.py", line 344, in __init__
    self.update()
  File "/usr/local/lib/python3.8/site-packages/denonavr/denonavr.py", line 527, in update
    return bool(self._update_avr_2016())
  File "/usr/local/lib/python3.8/site-packages/denonavr/denonavr.py", line 644, in _update_avr_2016
    executor.submit(self._audyssey.update())
  File "/usr/local/lib/python3.8/site-packages/denonavr/audyssey.py", line 109, in update
    self.dynamiceq = bool(int(param.text))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Additional information

Please check what crashed. I think that many users like me must be facing this problem. Thanks so much

probot-home-assistant[bot] commented 3 years ago

denonavr documentation denonavr source (message by IssueLinks)

probot-home-assistant[bot] commented 3 years ago

Hey there @scarface-4711, @starkillerog, mind taking a look at this issue as its been labeled with an integration (denonavr) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

SeraphimSerapis commented 3 years ago

Duplicate of #44199

JPHutchins commented 3 years ago

@jvnrambo Please update your HA when available. This was fixed in: https://github.com/home-assistant/core/pull/44194

jvnrambo commented 3 years ago

Hello! I just upgraded the home assistant to version 2020. 12.1 and the same errors keep appearing in the log. it didn't work and the integration now doesn't even recognize Denon as a device. I do not know what else to do.

Em qua, 16 de dez de 2020 20:19, J.P. Hutchins notifications@github.com escreveu:

@jvnrambo https://github.com/jvnrambo Please update your HA when available. This was fixed in: #44194 https://github.com/home-assistant/core/pull/44194

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/44287#issuecomment-747099255, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ3DEEZK5S4LRE7KDESEQYTSVE6ATANCNFSM4U6EKCJA .

JPHutchins commented 3 years ago

Sorry to say it will probably be that the fix is included in 2020.12.2 - to be released Dec 23 if I understand the release schedule correctly.

DanskerUS commented 3 years ago

Same issue here, please merge and cut the fix!

tofuSCHNITZEL commented 3 years ago

I do not know what else to do. Em qua, 16 de dez de 2020

@jvnrambo until 2020.12.2 is released you can do this: https://github.com/home-assistant/core/issues/44199#issuecomment-747107593

jvnrambo commented 3 years ago

Thanks a lot for the help, @tofuSCHNITZEL , @JPHutchins . Now it's working again.