Problems with the asuswrt component

Hi guys.

I am having a lot of problems with the asuswrt component, which I use for presence detection. I am getting a lot of these errors:

2019-05-05 22:02:19 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/homeassistant/components/device_tracker/init.py”, line 703, in async_device_tracker_scan
found_devices = await scanner.async_scan_devices()
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/asuswrt/device_tracker.py”, line 36, in async_scan_devices
await self.async_update_info()
File “/usr/local/lib/python3.7/site-packages/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 37, in async_run_command
result = await asyncio.wait_for(self._client.run(
AttributeError: ‘SshConnection’ object has no attribute ‘_client’

It is working sometimes, but often not at all. My configuration is:

asuswrt:
host: 192.168.49.9
ssh_key: /config/.ssh/id_rsa
username: admin
sensors:
- upload
- download
- upload_speed
- download_speed

Can you help?

Yes I am getting the same. Did you work out a fix?

I have the same config except that I am not using ssh_key

Anyone resolve this?

Still have the same error on 0.99, can be fixed by restarts of HASS most of the time, but still really annoying.

Having the same problem. Raised a github issue a while ago, but no solution yet. I tried telnet, ssh key and password, with both SSH methods giving the same problem - object has no attribute ‘_client’.

If anyone found a fix i would be grateful as this was my main presence detection.

Cheers

I’m not sure if it’s because I updated HA since, but I have not had this problem for a while now. Im on the latest docker build.

I’m still having this issue with latest version… I think it had gone away for awhile (or I just hadn’t noticed)… anyone get anywhere with it?

Since my last post I’ve had no issues. I’m not confident they won’t return though :sweat_smile:

I’m on HA 0.104.3 and i’m still having this issue.
A reboot typically solves the issue, but it is annoying because it causes some instability on my HA installation :confused:

Did anyone found a solution yet?

Seems like the issue is occurring more often on HA v105. People in the github issue have noticed as well. Hopefully the cause can be found soon …