Asuswrt sempre a parar

Boas

Há algum tempo tenho instalado o componente Asuswrt ligado ao meu router Asus para controlar os dispositivos que estão em casa e com isso efectuar algumas acções automáticas. Funciona de forma confiável mas frquentemente o componente pára por completo sendo necessário reiniciar todo o HA.
O erro que obtenho é:

2019-07-17 21:08:05 ERROR (MainThread) [aioasuswrt.connection] Host timeout.
2019-07-17 21:08:05 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/connection.py", line 38, in async_run_command
    "%s && %s" % (_PATH_EXPORT_COMMAND, command)), 9)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 423, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 150, in async_device_tracker_scan
    found_devices = await scanner.async_scan_devices()
  File "/usr/src/homeassistant/homeassistant/components/asuswrt/device_tracker.py", line 36, in async_scan_devices
    await self.async_update_info()
  File "/usr/src/homeassistant/homeassistant/components/asuswrt/device_tracker.py", line 52, in async_update_info
    self.last_results = await self.connection.async_get_connected_devices()
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/asuswrt.py", line 166, in async_get_connected_devices
    dev = await self.async_get_wl()
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/asuswrt.py", line 102, in async_get_wl
    lines = await self.connection.async_run_command(_WL_CMD)
  File "/usr/local/lib/python3.7/site-packages/aioasuswrt/connection.py", line 48, in async_run_command
    del self._client
AttributeError: _client

Será possível deste log perceber porque pára o componente?

Será possível reiniciar componentes individuais sem ser necessário reiniciar todo o HA?

Obrigado pela ajuda
José Grácio


Copyright © 2017-2020. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade