I have an issue with ASUSWRT integration. I've setup asuswrt component and device_tracker component as shared below. The connection works because sensor are visible. But device tracking don't work.
Devices sensor always report 3 or 4 devices connected while looking at asus webui there are almost 15 device using this ap (i use the componenti in AP mode. I've added and removed mode: ap without any changes.
arch | x86_64
-- | --
chassis | vm
dev | false
docker | true
docker_version | 19.03.8
hassio | true
host_os | HassOS 4.11
installation_type | Home Assistant OS
os_name | Linux
os_version | 5.4.50
python_version | 3.7.7
supervisor | 228
timezone | Europe/Rome
version | 0.112.4
virtualenv | false
configuration.yamlasuswrt:
host: 192.168.2.253
username: admin
ssh_key: /config/ssh/asus
protocol: ssh
mode: ap
sensors:
- devices
- download_speed
- upload_speed
device_tracker:
- platform: asuswrt
interval_seconds: 10
consider_home: 180
track_new_devices: yes
NA
Hey there @kennedyshead, mind taking a look at this issue as its been labeled with an integration (asuswrt) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)
Error logs if that helps
2020-07-11 22:15:08 ERROR (MainThread) [homeassistant.setup] Error during setup of component asuswrt
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 193, in _async_setup_component
result = await asyncio.wait_for(task, SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/asuswrt/__init__.py", line 85, in async_setup
await api.connection.async_connect()
File "/usr/local/lib/python3.7/site-packages/aioasuswrt/connection.py", line 75, in async_connect
self._client = await asyncssh.connect(self._host, **kwargs)
File "/usr/local/lib/python3.7/site-packages/asyncssh/connection.py", line 5696, in connect
conn_factory, 'Opening SSH connection to')
File "/usr/local/lib/python3.7/site-packages/asyncssh/connection.py", line 175, in _connect
await conn.wait_established()
File "/usr/local/lib/python3.7/site-packages/asyncssh/connection.py", line 1927, in wait_established
await self._waiter
asyncssh.misc.ConnectionLost: Connection lost
I have exactly the same problem
I have exactly the same problem
Bumping the aioasuswrt to the latest version 1.2.7 seems to fix the problem
2020-07-14 09:53:29 INFO (SyncWorker_19) [homeassistant.util.package] Attempting install of aioasuswrt==1.2.7
2020-07-14 09:54:08 INFO (MainThread) [homeassistant.setup] Setting up asuswrt
2020-07-14 09:54:11 INFO (MainThread) [homeassistant.setup] Setup of domain asuswrt took 3.2 seconds.
2020-07-14 09:54:15 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.asuswrt
Bumping the aioasuswrt to the latest version 1.2.7 seems to fix the problem
2020-07-14 09:53:29 INFO (SyncWorker_19) [homeassistant.util.package] Attempting install of aioasuswrt==1.2.7 2020-07-14 09:54:08 INFO (MainThread) [homeassistant.setup] Setting up asuswrt 2020-07-14 09:54:11 INFO (MainThread) [homeassistant.setup] Setup of domain asuswrt took 3.2 seconds. 2020-07-14 09:54:15 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.asuswrt
I think this is not the same issue, in your case the error was connection reset by peer? maybe?
It happened to me and I fix using the latest beta 1.2.7b0, as i can see in your log the .7 is now a release. I hope in next ha version it will be available.
Dupe of #37269
Solved in dev https://github.com/home-assistant/core/blob/dev/requirements_all.txt#L145
I don't think so.
As you can read in my issue description I do have connection to ASUS WRT router, sensor are created as shown below:

The issue is with device tracker. Known devices is not updated and devices connected to the AP are shown as not_home.
I have the same issue with the device tracking not working:
Please address this. I have the same issue.
Broke with upgrade Asuswrt Merlin upgrade 384.18.
I'm not willing to downgrade to .17 and expose my router to vulnerabilities.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 193, in _async_setup_component
result = await asyncio.wait_for(task, SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/asuswrt/__init__.py", line 85, in async_setup
await api.connection.async_connect()
File "/usr/local/lib/python3.7/site-packages/aioasuswrt/connection.py", line 75, in async_connect
self._client = await asyncssh.connect(self._host, **kwargs)
File "/usr/local/lib/python3.7/site-packages/asyncssh/connection.py", line 5696, in connect
conn_factory, 'Opening SSH connection to')
File "/usr/local/lib/python3.7/site-packages/asyncssh/connection.py", line 175, in _connect
await conn.wait_established()
File "/usr/local/lib/python3.7/site-packages/asyncssh/connection.py", line 1927, in wait_established
await self._waiter
asyncssh.misc.ConnectionLost: Connection lost
I have same issue, but error log shows different below
Is it the same issue?
Cannot fix by upgrade to aioasuswrt v.1.27
2020-07-26 12:37:50 ERROR (MainThread) [homeassistant.setup] Error during setup of component asuswrt
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 170, in _async_setup_component
hass, processed_config
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/asuswrt/__init__.py", line 80, in async_setup
await api.connection.async_connect()
File "/srv/homeassistant/lib/python3.7/site-packages/aioasuswrt/connection.py", line 72, in async_connect
self._client = await asyncssh.connect(self._host, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/asyncssh/misc.py", line 182, in __await__
return (yield from self._coro)
File "/srv/homeassistant/lib/python3.7/site-packages/asyncssh/connection.py", line 5451, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/asyncssh/connection.py", line 5107, in create_connection
yield from auth_waiter
asyncssh.misc.DisconnectError: Disconnect Error: Connection lost
Fixed as of 113.1
not in my case. Known devices is still almost empty (while many wifi devices are connected to asus ap)
The issue is still there. My devices are in known hosts, but never change their state when I disconnect/connect to the wi-fi.
Most helpful comment
Error logs if that helps