core: AsusWRT integration fails after a few hours when using AC-RT66 router

The problem

Environment

  • Home Assistant Core release with the issue: 2021.1.5
  • Last working Home Assistant Core release (if known): About 3 versions back
  • Operating environment (OS/Container/Supervised/Core): Supervisor on Ubuntu VM
  • Integration causing this issue: AsusWRT
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/asuswrt/#configuration

Problem-relevant configuration.yaml


Traceback/Error logs

Source: /usr/local/lib/python3.8/site-packages/aioasuswrt/connection.py:120
First occurred: January 24, 2021, 6:34:29 PM (7142 occurrences)
Last logged: 8:45:36 PM

Host timeout.

----
Logger: homeassistant.components.device_tracker
Source: components/device_tracker/legacy.py:320
Integration: Device tracker (documentation, issues)
First occurred: January 24, 2021, 6:34:43 PM (5092 occurrences)
Last logged: 8:45:29 PM

Updating device list from legacy took longer than the scheduled scan interval 0:00:12


Additional information

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

There is a pull request (kennedyshead/aioasuswrt#65) open that hopefully mitigates these issues. As soon as it has been merged an aioasuswrt has a new release we can pull the changes in HA.

My current (and for now only) guess is that we’re not handling the HostTimeout error correctly in the aioasuswrt library. See also https://github.com/kennedyshead/aioasuswrt/issues/62

Meaning that if after a few days the router does not respond in time the connection is not properly re-established (only after a HA restart). Hopefully there’ll be a response in a few days. If this is the issue causing the problems the fix will be simple.