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
73.77k stars 30.87k forks source link

Heos integration turns organge after some hours and devices don't get updates anymore #83747

Closed airbone42 closed 1 year ago

airbone42 commented 1 year ago

The problem

I'm using the Denon Heos intergration with 5 devices. After some hours working properly all devices stop responding, so there's neither an update from the device to HA, nor can I control the devices anymore. Also the integration itself gets an orange border on the integration page, but it doesn't show an error message there, but I can find some pyheos related timeouts in the HA log.

After restarting HA all is working fine again.

What version of Home Assistant Core has the issue?

2022.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Denon HEOS

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-12-04 17:25:09.047 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/pyheos/connection.py", line 343, in wait
    await self._event.wait()
  File "/usr/local/lib/python3.10/asyncio/locks.py", line 214, in wait
    await fut
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/pyheos/connection.py", line 275, in command
    response = await asyncio.wait_for(event.wait(), self.timeout)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/pyheos/connection.py", line 313, in _handle_event
    result = await self._heos._handle_event(response)
  File "/usr/local/lib/python3.10/site-packages/pyheos/heos.py", line 62, in _handle_event
    return await self.load_players()
  File "/usr/local/lib/python3.10/site-packages/pyheos/heos.py", line 120, in load_players
    await asyncio.gather(
  File "/usr/local/lib/python3.10/site-packages/pyheos/player.py", line 217, in refresh
    await asyncio.gather(
  File "/usr/local/lib/python3.10/site-packages/pyheos/player.py", line 227, in refresh_state
    self._state = await self._commands.get_player_state(self._player_id)
  File "/usr/local/lib/python3.10/site-packages/pyheos/command.py", line 47, in get_player_state
    response = await self._connection.command(const.COMMAND_GET_PLAY_STATE, params)
  File "/usr/local/lib/python3.10/site-packages/pyheos/connection.py", line 281, in command
    raise CommandError(command, message) from error
pyheos.error.CommandError: Command timed out

Additional information

No response

home-assistant[bot] commented 1 year ago

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

Code owner commands Code owners of `heos` 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 heos` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


heos documentation heos source (message by IssueLinks)

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.