Home Assistant release with the issue:
0.82.0
Last working Home Assistant release (if known):
0.81.6
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Component/platform:
Asuswrt device tracker
Description of problem:
Device tracker no longer works and is constantly trying to open a new SSH connection. There appear to be four references to changes to asuswrt in the RC docs for 0.82, so not sure which one is causing the issue?
think these are the beta pr's...
https://github.com/home-assistant/home-assistant/pull/18030
https://github.com/home-assistant/home-assistant/pull/17692
https://github.com/home-assistant/home-assistant/pull/17814
https://github.com/home-assistant/home-assistant/pull/17757
Downgrading back to 0.81.6 fixes the issue
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
- platform: asuswrt
host: !secret asus_ip
username: !secret asus_username
password: !secret asus_password
protocol: 'ssh'
port: !secret asus_port
Traceback (if applicable):
2018-11-06 21:26:35 INFO (MainThread) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=108] Requesting new SSH session
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=108] Command: for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=108] Received exit status 0
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=108] Received channel close
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=108] Channel closed
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=109] Requesting new SSH session
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=109] Command: arp -n
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=109] Received exit status 127
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=109] Received channel close
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=109] Channel closed
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=110] Requesting new SSH session
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=110] Command: ip neigh
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=110] Received exit status 127
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=110] Received channel close
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=110] Channel closed
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=111] Requesting new SSH session
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=111] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=111] Received exit status 0
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=111] Received channel close
2018-11-06 21:26:35 INFO (MainThread) [asyncssh] [conn=0, chan=111] Channel closed
Additional information:
Forgot to get debug logs...
``2018-11-06 21:39:29 INFO (MainThread) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-06 21:39:29 DEBUG (MainThread) [asyncssh] [conn=0, chan=16] Set write buffer limits: low-water=16384, high-water=65536
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=16] Requesting new SSH session
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=16] Command: for dev in
nvram get wl_ifnames`; do wl -i $dev assoclist; done
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=16] Received exit status 0
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=16] Received channel close
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=16] Channel closed
2018-11-06 21:39:29 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-06 21:39:29 DEBUG (MainThread) [asyncssh] [conn=0, chan=17] Set write buffer limits: low-water=16384, high-water=65536
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=17] Requesting new SSH session
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=17] Command: arp -n
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=17] Received exit status 127
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=17] Received channel close
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=17] Channel closed
2018-11-06 21:39:29 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-06 21:39:29 DEBUG (MainThread) [asyncssh] [conn=0, chan=18] Set write buffer limits: low-water=16384, high-water=65536
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=18] Requesting new SSH session
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=18] Command: ip neigh
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=18] Received exit status 127
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=18] Received channel close
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=18] Channel closed
2018-11-06 21:39:29 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-06 21:39:29 DEBUG (MainThread) [asyncssh] [conn=0, chan=19] Set write buffer limits: low-water=16384, high-water=65536
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=19] Requesting new SSH session
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=19] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=19] Received exit status 0
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=19] Received channel close
2018-11-06 21:39:29 INFO (MainThread) [asyncssh] [conn=0, chan=19] Channel closed
2018-11-06 21:39:29 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
This is just strange, it should parse exactly as it did before, there is no real change to the parsing :/
It could be port setting maybe
It has also moved to a component rather than a platform.
It could be port setting maybe
i'll try to see if changing ports makes a difference (although it works fine on 0.81.6)
also looking forward to seeing the component (that is not in the current beta yet is it? think i linked to the wrong PR). Will this mean that adding as a device tracker is done automatically? so would I only need to set up the asuswrt component and not need anything in device_tracker.yaml?
Cheers,
James
Device tracker will atm. be setup automatically as a part of the component... It will add a total download and upload sensor for now, but there is plans for per device sensors / switches
I am having the asuswrt device tracker down as well with 0.82.0:
2018-11-10 17:36:14 INFO (MainThread) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=40] Requesting new SSH session
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=40] Command: for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=40] Received exit status 0
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=40] Received channel close
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=40] Channel closed
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=41] Requesting new SSH session
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=41] Command: arp -n
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=41] Received exit status 127
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=41] Received channel close
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=41] Channel closed
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=42] Requesting new SSH session
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=42] Command: ip neigh
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=42] Received exit status 127
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=42] Received channel close
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=42] Channel closed
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=43] Requesting new SSH session
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=43] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=43] Received exit status 0
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=43] Received channel close
2018-11-10 17:36:14 INFO (MainThread) [asyncssh] [conn=0, chan=43] Channel closed
Me too, all devices shows as offline:
2018-11-10 23:18:11 INFO (MainThread) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=36] Requesting new SSH session
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=36] Command: for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=36] Received exit status 0
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=36] Received channel close
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=36] Channel closed
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=37] Requesting new SSH session
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=37] Command: arp -n
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=37] Received exit status 127
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=37] Received channel close
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=37] Channel closed
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=38] Requesting new SSH session
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=38] Command: ip neigh
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=38] Received exit status 127
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=38] Received channel close
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=38] Channel closed
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=39] Requesting new SSH session
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=39] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=39] Received exit status 0
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=39] Received channel close
2018-11-10 23:18:11 INFO (MainThread) [asyncssh] [conn=0, chan=39] Channel closed
Are you on default port 22?
Ok.. there are commands missing on your systems, Ill try disabling them and will provide a script to test with
No not on default port & It's a modem/router if that makes any difference (RT-AC68U)
Cheers
James
Just wanted to note that i had the same issues with 0.82.0, but i access my RT-AC66U using telnet. Dunno if that tells you anything.
The different routers, even though they are all asuswrt have different networking commands and different methods to receive the connected devices.
I am creating a testscript that we can run to get a better idea of what is
wrong, It could be telnet for sure!
If someone could check what version of aioasuswrt is in 0.82.0 that would
be great to.
On Sun, Nov 11, 2018, 15:43 Mario Wenzel <[email protected] wrote:
The different routers, even though they are all asuswrt have different
networking commands and different methods to receive the connected devices.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/18281#issuecomment-437675684,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMaamSlEyi7vkarKQu6swWaYNTiami3ks5uuDebgaJpZM4YRUZk
.
Just checked the version, could you please try just force updating aioasuswrt to 1.1.4 and see if that helps?
pip install --upgrade aioasuswrt==1.1.4
@kennedyshead
$ docker exec -it homeassistant bash
bash-4.4# pip install --upgrade aioasuswrt==1.1.4
Collecting aioasuswrt==1.1.4
Downloading https://files.pythonhosted.org/packages/c3/b4/9145da685b3adf8db061a50cd24d258bfb7329df44b870e3a516a487ed4f/aioasuswrt-1.1.4-py3-none-any.whl
Requirement already satisfied, skipping upgrade: asyncssh in /usr/local/lib/python3.6/site-packages (from aioasuswrt==1.1.4) (1.14.0)
Requirement already satisfied, skipping upgrade: cryptography>=1.5 in /usr/local/lib/python3.6/site-packages (from asyncssh->aioasuswrt==1.1.4) (2.3.1)
Requirement already satisfied, skipping upgrade: idna>=2.1 in /usr/local/lib/python3.6/site-packages (from cryptography>=1.5->asyncssh->aioasuswrt==1.1.4) (2.7)
Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /usr/local/lib/python3.6/site-packages (from cryptography>=1.5->asyncssh->aioasuswrt==1.1.4) (0.24.0)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python3.6/site-packages (from cryptography>=1.5->asyncssh->aioasuswrt==1.1.4) (1.11.0)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.7 in /usr/local/lib/python3.6/site-packages (from cryptography>=1.5->asyncssh->aioasuswrt==1.1.4) (1.11.5)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.7->cryptography>=1.5->asyncssh->aioasuswrt==1.1.4) (2.19)
Installing collected packages: aioasuswrt
Found existing installation: aioasuswrt 1.1.2
Uninstalling aioasuswrt-1.1.2:
Successfully uninstalled aioasuswrt-1.1.2
Successfully installed aioasuswrt-1.1.4
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
bash-4.4# exit
exit
and then restarted the container. Devices now show up as "not_home" instead of "Away". All devices are marked as "not_home".
One thing I saw:
2018-11-11 10:57:47 INFO (MainThread) [asyncssh] [conn=0, chan=101] Command: arp -n
2018-11-11 10:57:47 INFO (MainThread) [asyncssh] [conn=0, chan=101] Received exit status 127
Is 127 an error code status? All others return 0.
@hulkhaugen,
Are you seeing the same issue accessing via telnet not ssh?
Its command not found in bash... but it really should work with or without arp
Anyone that use SSH please run this: https://gist.github.com/kennedyshead/54d9b54898ea97dadd103118535a7247
@kennedyshead
I have revrted back to 1.1.2 but turned on debug in the logs:
2018-11-11 11:09:47 INFO (MainThread) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-11 11:09:47 DEBUG (MainThread) [asyncssh] [conn=0, chan=12] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=12] Requesting new SSH session
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=12] Command: for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=12] Received exit status 0
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=12] Received channel close
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=12] Channel closed
2018-11-11 11:09:47 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 11:09:47 DEBUG (MainThread) [asyncssh] [conn=0, chan=13] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=13] Requesting new SSH session
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=13] Command: arp -n
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=13] Received exit status 127
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=13] Received channel close
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=13] Channel closed
2018-11-11 11:09:47 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 11:09:47 DEBUG (MainThread) [asyncssh] [conn=0, chan=14] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=14] Requesting new SSH session
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=14] Command: ip neigh
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=14] Received exit status 127
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=14] Received channel close
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=14] Channel closed
2018-11-11 11:09:47 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 11:09:47 DEBUG (MainThread) [asyncssh] [conn=0, chan=15] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=15] Requesting new SSH session
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=15] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=15] Received exit status 0
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=15] Received channel close
2018-11-11 11:09:47 INFO (MainThread) [asyncssh] [conn=0, chan=15] Channel closed
2018-11-11 11:09:47 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
I think we should drop the telnet-version... IMO its just causing trouble and the all have ssh afaik.
@kennedyshead
/config # python asuswrttest.py
arp
{}
leases
{}
neigh
{}
wl
{}
/config #
Sorry updated the gist with some more commands, was to fast ;)
@kennedyshead
/config # python asuswrttest.py
arp
['']
{}
leases
['63481 ****MAC data from network redacted**** '']
{}
neigh
['']
{}
wl
['']
{}
/config #
Thats not good... could you ssh into the router and run
for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
@kennedyshead
``
user@RT-AC68U:/tmp/home/root# for dev in
nvram get wl_ifnames`; do wl -i $dev assoclist; done
assoclist F8:xx:xx:xx:xx:xx
assoclist 44:xx:xx:xx:xx:xx
assoclist 28:xx:xx:xx:xx:xx
assoclist 3C:xx:xx:xx:xx:xx
assoclist 68:xx:xx:xx:xx:xx
assoclist 68:xx:xx:xx:xx:xx
assoclist 84:xx:xx:xx:xx:xx
assoclist 68:xx:xx:xx:xx:xx
assoclist 6C:xx:xx:xx:xx:xx
assoclist B4:xx:xx:xx:xx:xx
assoclist 84:xx:xx:xx:xx:xx
assoclist DC:xx:xx:xx:xx:xx
assoclist 38:xx:xx:xx:xx:xx
user@RT-AC68U:/tmp/home/root#
I get
['']
{}
leases
['']
{}
neigh
['']
{}
wl
['']
{}
On the router:
admin@(none):/tmp/home/root# for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
-sh: wl: not found
-sh: wl: not found
my RT-AC53 doesn't have the wl
command and I'm trying to prevent people from removing the other commands since the component exists.
It should really not make a different, the strange thing is that @ZetaPhoenix have the wl data but it does not get parsed
Could be that this have to be done for more of the commands
@kennedyshead
I changed my logging default to warn to stop all of the INFO
from the ssh and saw this in the history:
2018-11-11 11:23:04 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/__init__.py", line 692, in async_device_tracker_scan
found_devices = await scanner.async_scan_devices()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 76, in async_scan_devices
await self.async_update_info()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 92, in async_update_info
self.last_results = await self.connection.async_get_connected_devices()
File "/config/deps/lib/python3.6/site-packages/aioasuswrt/asuswrt.py", line 157, in async_get_connected_devices
devices.update(await self.async_get_wl())
File "/config/deps/lib/python3.6/site-packages/aioasuswrt/asuswrt.py", line 96, in async_get_wl
result = _parse_lines(lines, _WL_REGEX)
File "/config/deps/lib/python3.6/site-packages/aioasuswrt/asuswrt.py", line 60, in _parse_lines
for line in lines:
TypeError: 'coroutine' object is not iterable
/usr/local/lib/python3.6/site-packages/homeassistant/util/async_.py:29: RuntimeWarning: coroutine 'SshConnection.async_run_command' was never awaited
return loop.run_until_complete(main)
2018-11-11 11:35:59 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/__init__.py", line 692, in async_device_tracker_scan
found_devices = await scanner.async_scan_devices()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 76, in async_scan_devices
await self.async_update_info()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 92, in async_update_info
self.last_results = await self.connection.async_get_connected_devices()
File "/config/deps/lib/python3.6/site-packages/aioasuswrt/asuswrt.py", line 157, in async_get_connected_devices
devices.update(await self.async_get_wl())
File "/config/deps/lib/python3.6/site-packages/aioasuswrt/asuswrt.py", line 96, in async_get_wl
result = _parse_lines(lines, _WL_REGEX)
File "/config/deps/lib/python3.6/site-packages/aioasuswrt/asuswrt.py", line 60, in _parse_lines
for line in lines:
TypeError: 'coroutine' object is not iterable
Not sure if this is related as I have restarted and did not get the error again.
@ZetaPhoenix could you install
pip install --upgrade https://github.com/kennedyshead/aioasuswrt/archive/fixing_not_working_parser.zip
@kennedyshead
$ docker exec -it homeassistant sh
/config # pip install --update https://github.com/kennedyshead/aioasuswrt/archive/fixing_not_working_parser.zip
Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...
no such option: --update
Should that be upgrade?
yes sorry :D
@kennedyshead
Still seeing everything as Away:
2018-11-11 12:25:35 INFO (MainThread) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-11 12:25:35 DEBUG (MainThread) [asyncssh] [conn=0, chan=24] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=24] Requesting new SSH session
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=24] Command: for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=24] Received exit status 0
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=24] Received channel close
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=24] Channel closed
2018-11-11 12:25:35 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 12:25:35 DEBUG (MainThread) [asyncssh] [conn=0, chan=25] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=25] Requesting new SSH session
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=25] Command: arp -n
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=25] Received exit status 127
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=25] Received channel close
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=25] Channel closed
2018-11-11 12:25:35 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 12:25:35 DEBUG (MainThread) [asyncssh] [conn=0, chan=26] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=26] Requesting new SSH session
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=26] Command: ip neigh
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=26] Received exit status 127
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=26] Received channel close
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=26] Channel closed
2018-11-11 12:25:35 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 12:25:35 DEBUG (MainThread) [asyncssh] [conn=0, chan=27] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=27] Requesting new SSH session
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=27] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=27] Received exit status 0
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=27] Received channel close
2018-11-11 12:25:35 INFO (MainThread) [asyncssh] [conn=0, chan=27] Channel closed
2018-11-11 12:25:35 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 12:25:48 INFO (MainThread) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-11 12:25:48 DEBUG (MainThread) [asyncssh] [conn=0, chan=28] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=28] Requesting new SSH session
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=28] Command: for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=28] Received exit status 0
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=28] Received channel close
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=28] Channel closed
2018-11-11 12:25:48 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 12:25:48 DEBUG (MainThread) [asyncssh] [conn=0, chan=29] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=29] Requesting new SSH session
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=29] Command: arp -n
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=29] Received exit status 127
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=29] Received channel close
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=29] Channel closed
2018-11-11 12:25:48 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 12:25:48 DEBUG (MainThread) [asyncssh] [conn=0, chan=30] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=30] Requesting new SSH session
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=30] Command: ip neigh
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=30] Received exit status 127
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=30] Received channel close
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=30] Channel closed
2018-11-11 12:25:48 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 12:25:48 DEBUG (MainThread) [asyncssh] [conn=0, chan=31] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=31] Requesting new SSH session
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=31] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=31] Received exit status 0
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=31] Received channel close
2018-11-11 12:25:48 INFO (MainThread) [asyncssh] [conn=0, chan=31] Channel closed
2018-11-11 12:25:48 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
It seems like this is working for some people: https://community.home-assistant.io/t/asuswrt-device-tracker-tracking-unknown-mac-from-wan/73747/4 Not sure why it is failing for others. Could it be related to the SSH setup?
@jimbob1001 , @maweki , how are you configuring SSH: password or RSA key? I am using RSA key with password disabled on the router.
Is that really the new version? Very strange in that case, it should not show Could not parse row:
If I restarted the container to change the logging would that reinstall the old version?
@jimbob1001 , @maweki , how are you configuring SSH: password or RSA key? I am using RSA key with password disabled on the router.
I am using password/username authentication. I'm using my router as an AP only.
@ZetaPhoenix Yes I think so... could you install that and run the test-gist
@kennedyshead in progress....
I think its a python-version bug maybe...
@kennedyshead
$ docker exec -it homeassistant sh
/config # pip install --upgrade https://github.com/kennedyshead/aioasuswrt/archive/fixing_not_working_parser.zip
Collecting https://github.com/kennedyshead/aioasuswrt/archive/fixing_not_working_parser.zip
Downloading https://github.com/kennedyshead/aioasuswrt/archive/fixing_not_working_parser.zip
- 174kB 10.5MB/s
Requirement already satisfied, skipping upgrade: asyncssh in /usr/local/lib/python3.6/site-packages (from aioasuswrt==1.1.5) (1.14.0)
Requirement already satisfied, skipping upgrade: cryptography>=1.5 in /usr/local/lib/python3.6/site-packages (from asyncssh->aioasuswrt==1.1.5) (2.3.1)
Requirement already satisfied, skipping upgrade: idna>=2.1 in /usr/local/lib/python3.6/site-packages (from cryptography>=1.5->asyncssh->aioasuswrt==1.1.5) (2.7)
Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /usr/local/lib/python3.6/site-packages (from cryptography>=1.5->asyncssh->aioasuswrt==1.1.5) (0.24.0)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python3.6/site-packages (from cryptography>=1.5->asyncssh->aioasuswrt==1.1.5) (1.11.0)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.7 in /usr/local/lib/python3.6/site-packages (from cryptography>=1.5->asyncssh->aioasuswrt==1.1.5) (1.11.5)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.7->cryptography>=1.5->asyncssh->aioasuswrt==1.1.5) (2.19)
Building wheels for collected packages: aioasuswrt
Running setup.py bdist_wheel for aioasuswrt ... done
Stored in directory: /tmp/pip-ephem-wheel-cache-pbnld8t7/wheels/99/b5/15/c1f369584e6cb0f3a5195cd97808c8b1209202353777201a84
Successfully built aioasuswrt
Installing collected packages: aioasuswrt
Found existing installation: aioasuswrt 1.1.5
Uninstalling aioasuswrt-1.1.5:
Successfully uninstalled aioasuswrt-1.1.5
Successfully installed aioasuswrt-1.1.5
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
/config # python asuswrttest.py
arp
['']
{}
leases
[' Local MAC data ', '']
{}
neigh
['']
{}
wl
['']
{}
/config #
And at the same time in the hass logs:
2018-11-11 12:41:12 INFO (MainThread) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-11 12:41:12 DEBUG (MainThread) [asyncssh] [conn=1, chan=68] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=68] Requesting new SSH session
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=68] Command: for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=68] Received exit status 0
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=68] Received channel close
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=68] Channel closed
2018-11-11 12:41:12 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 12:41:12 DEBUG (MainThread) [asyncssh] [conn=1, chan=69] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=69] Requesting new SSH session
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=69] Command: arp -n
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=69] Received exit status 127
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=69] Received channel close
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=69] Channel closed
2018-11-11 12:41:12 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 12:41:12 DEBUG (MainThread) [asyncssh] [conn=1, chan=70] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=70] Requesting new SSH session
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=70] Command: ip neigh
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=70] Received exit status 127
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=70] Received channel close
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=70] Channel closed
2018-11-11 12:41:12 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
2018-11-11 12:41:12 DEBUG (MainThread) [asyncssh] [conn=1, chan=71] Set write buffer limits: low-water=16384, high-water=65536
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=71] Requesting new SSH session
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=71] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=71] Received exit status 0
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=71] Received channel close
2018-11-11 12:41:12 INFO (MainThread) [asyncssh] [conn=1, chan=71] Channel closed
2018-11-11 12:41:12 DEBUG (MainThread) [aioasuswrt.asuswrt] Could not parse row:
One last try:
import asyncio, asyncssh, sys
async def run_client():
async with asyncssh.connect('router.ip.adress', 22, username='****', password='****') as conn:
async with conn.create_process('bc') as process:
process.stdin.write('for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done' + '\n')
result = await process.stdout.readline()
print(result, end='')
try:
asyncio.get_event_loop().run_until_complete(run_client())
except (OSError, asyncssh.Error) as exc:
sys.exit('SSH connection failed: ' + str(exc))
@kennedyshead
/config # python asuswrt-test2.py
SSH connection failed: [Errno 2] No such file or directory: '/root/.ssh/known_hosts'
/config #
Now that seems like we might be making progress. I am running homeassistant/raspberrypi3-homeassistant and have the following in the config:
#device_tracker:
- platform: asuswrt
host: !secret router_ip
username: !secret asus_admin_name
# password: !secret asus_admin_password
#or
ssh_key: '/config/ssh/asuswrt' #The path to your SSH private key file associated with your given admin account
Should the asyncssh be pointing to /root/.ssh/known_hosts
?
/config # cat /root/.ssh/known_hosts
cat: can't open '/root/.ssh/known_hosts': No such file or directory
@hulkhaugen,
Are you seeing the same issue accessing via telnet not ssh?
Only telnet, SSH isn't an option with stock fw on RT-AC66U.
That error was fixed in https://github.com/kennedyshead/aioasuswrt/commit/42b09dc5b0c149133926a7e1282f6762b49d8ae7
@ZetaPhoenix Sorry try this:
import asyncio, asyncssh, sys
async def run_client():
async with asyncssh.connect('router.ip.adress', 22, username='****', password='****', known_hosts=None) as conn:
async with conn.create_process('bc') as process:
process.stdin.write('for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done' + '\n')
result = await process.stdout.readline()
print(result, end='')
try:
asyncio.get_event_loop().run_until_complete(run_client())
except (OSError, asyncssh.Error) as exc:
sys.exit('SSH connection failed: ' + str(exc))
Why cant the problems be visible in my system :(
If someone is brave enough to give me a vpn tunnel to a faulty router the testing would be 100% times easier.
@kennedyshead
$ docker exec -it homeassistant sh
/config # python asuswrt-test3.py
/config #
#!/usr/bin/env python
import asyncio
import logging
import sys
from aioasuswrt.asuswrt import AsusWrt
component = AsusWrt('192.168.1.1', 22, username='****', password='****')
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logger = logging.getLogger(__name__)
async def print_data():
dev = {}
logger.debug("arp")
logger.debug(await component.connection.async_run_command('arp -n'))
logger.debug(await component.async_get_arp())
logger.debug("leases")
logger.debug(await component.connection.async_run_command('cat /var/lib/misc/dnsmasq.leases'))
logger.debug(await component.async_get_leases(dev))
logger.debug("neigh")
logger.debug(await component.connection.async_run_command('ip neigh'))
logger.debug(await component.async_get_neigh(dev))
logger.debug("wl")
logger.debug(await component.connection.async_run_command('for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done'))
logger.debug(await component.async_get_wl())
loop = asyncio.get_event_loop()
loop.run_until_complete(print_data())
loop.close()
And still no the other pwd is not a password I use normally, its just used as a tempuser on my router to test this <3 ;)
@kennedyshead
/config # python asuswrt-test4.py
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:__main__:arp
INFO:asyncssh:Opening SSH connection to Router IP, port 22
INFO:asyncssh:[conn=0] Connection to Router IP, port 22 succeeded
INFO:asyncssh:[conn=0] Local address: Docker container IP, port 48658
DEBUG:asyncssh:[conn=0] Requesting key exchange
DEBUG:asyncssh:[conn=0] Received key exchange request
DEBUG:asyncssh:[conn=0] Beginning key exchange
DEBUG:asyncssh:[conn=0] Completed key exchange
INFO:asyncssh:[conn=0] Beginning auth for user admin
DEBUG:asyncssh:[conn=0] Trying password auth
INFO:asyncssh:[conn=0] Auth for user admin succeeded
DEBUG:asyncssh:[conn=0, chan=0] Set write buffer limits: low-water=16384, high-water=65536
INFO:asyncssh:[conn=0, chan=0] Requesting new SSH session
INFO:asyncssh:[conn=0, chan=0] Command: arp -n
INFO:asyncssh:[conn=0, chan=0] Received exit status 127
INFO:asyncssh:[conn=0, chan=0] Received channel close
INFO:asyncssh:[conn=0, chan=0] Channel closed
DEBUG:__main__:['']
DEBUG:asyncssh:[conn=0, chan=1] Set write buffer limits: low-water=16384, high-water=65536
INFO:asyncssh:[conn=0, chan=1] Requesting new SSH session
INFO:asyncssh:[conn=0, chan=1] Command: arp -n
INFO:asyncssh:[conn=0, chan=1] Received exit status 127
INFO:asyncssh:[conn=0, chan=1] Received channel close
INFO:asyncssh:[conn=0, chan=1] Channel closed
DEBUG:aioasuswrt.asuswrt:Could not parse row:
DEBUG:__main__:{}
DEBUG:__main__:leases
DEBUG:asyncssh:[conn=0, chan=2] Set write buffer limits: low-water=16384, high-water=65536
INFO:asyncssh:[conn=0, chan=2] Requesting new SSH session
INFO:asyncssh:[conn=0, chan=2] Command: cat /var/lib/misc/dnsmasq.leases
INFO:asyncssh:[conn=0, chan=2] Received exit status 0
INFO:asyncssh:[conn=0, chan=2] Received channel close
INFO:asyncssh:[conn=0, chan=2] Channel closed
DEBUG:__main__:['**** Local MAC IP List ****, '']
DEBUG:asyncssh:[conn=0, chan=3] Set write buffer limits: low-water=16384, high-water=65536
INFO:asyncssh:[conn=0, chan=3] Requesting new SSH session
INFO:asyncssh:[conn=0, chan=3] Command: cat /var/lib/misc/dnsmasq.leases
INFO:asyncssh:[conn=0, chan=3] Received exit status 0
INFO:asyncssh:[conn=0, chan=3] Received channel close
INFO:asyncssh:[conn=0, chan=3] Channel closed
DEBUG:aioasuswrt.asuswrt:Could not parse row:
DEBUG:__main__:{}
DEBUG:__main__:neigh
DEBUG:asyncssh:[conn=0, chan=4] Set write buffer limits: low-water=16384, high-water=65536
INFO:asyncssh:[conn=0, chan=4] Requesting new SSH session
INFO:asyncssh:[conn=0, chan=4] Command: ip neigh
INFO:asyncssh:[conn=0, chan=4] Received exit status 127
INFO:asyncssh:[conn=0, chan=4] Received channel close
INFO:asyncssh:[conn=0, chan=4] Channel closed
DEBUG:__main__:['']
DEBUG:asyncssh:[conn=0, chan=5] Set write buffer limits: low-water=16384, high-water=65536
INFO:asyncssh:[conn=0, chan=5] Requesting new SSH session
INFO:asyncssh:[conn=0, chan=5] Command: ip neigh
INFO:asyncssh:[conn=0, chan=5] Received exit status 127
INFO:asyncssh:[conn=0, chan=5] Received channel close
INFO:asyncssh:[conn=0, chan=5] Channel closed
DEBUG:aioasuswrt.asuswrt:Could not parse row:
DEBUG:__main__:{}
DEBUG:__main__:wl
DEBUG:asyncssh:[conn=0, chan=6] Set write buffer limits: low-water=16384, high-water=65536
INFO:asyncssh:[conn=0, chan=6] Requesting new SSH session
INFO:asyncssh:[conn=0, chan=6] Command: for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
INFO:asyncssh:[conn=0, chan=6] Received exit status 0
INFO:asyncssh:[conn=0, chan=6] Received channel close
INFO:asyncssh:[conn=0, chan=6] Channel closed
DEBUG:__main__:['']
DEBUG:asyncssh:[conn=0, chan=7] Set write buffer limits: low-water=16384, high-water=65536
INFO:asyncssh:[conn=0, chan=7] Requesting new SSH session
INFO:asyncssh:[conn=0, chan=7] Command: for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done
INFO:asyncssh:[conn=0, chan=7] Received exit status 0
INFO:asyncssh:[conn=0, chan=7] Received channel close
INFO:asyncssh:[conn=0, chan=7] Channel closed
DEBUG:aioasuswrt.asuswrt:Could not parse row:
DEBUG:__main__:{}
Could one of you run the dev version and confirm fixed?
I cannot say whether it is working or not as i am away at the moment but I tried the device tracker in latest 0.83.0.dev0 but it complained about asuswrt component not found (sorry didn't get exact log), so then deleted device_tracker config and added asuswrt config...
```2018-11-12 14:38:59 INFO (MainThread) [asyncssh] [conn=0] Local address: 192.168.179.25, port 56992
2018-11-12 14:38:59 DEBUG (MainThread) [asyncssh] [conn=0] Requesting key exchange
2018-11-12 14:38:59 DEBUG (MainThread) [asyncssh] [conn=0] Received key exchange request
2018-11-12 14:38:59 DEBUG (MainThread) [asyncssh] [conn=0] Beginning key exchange
2018-11-12 14:39:00 INFO (MainThread) [asyncssh] [conn=0] Beginning auth for user xxxxxxxx
2018-11-12 14:39:00 DEBUG (MainThread) [asyncssh] [conn=0] Trying password auth
2018-11-12 14:39:00 INFO (MainThread) [asyncssh] [conn=0] Auth for user asusadmin succeeded
2018-11-12 14:40:13 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.asuswrt
2018-11-12 14:40:13 DEBUG (MainThread) [asyncssh] [conn=0, chan=0] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=0] Requesting new SSH session
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=0] Command: for dev in nvram get wl_ifnames
; do wl -i $dev assoclist; done
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=0] Received exit status 0
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=0] Received channel close
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=0] Channel closed
2018-11-12 14:40:13 DEBUG (MainThread) [asyncssh] [conn=0, chan=1] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=1] Requesting new SSH session
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=1] Command: arp -n
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=1] Received exit status 127
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=1] Received channel close
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=1] Channel closed
2018-11-12 14:40:13 DEBUG (MainThread) [asyncssh] [conn=0, chan=2] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=2] Requesting new SSH session
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=2] Command: ip neigh
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=2] Received exit status 127
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=2] Received channel close
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=2] Channel closed
2018-11-12 14:40:13 DEBUG (MainThread) [asyncssh] [conn=0, chan=3] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=3] Requesting new SSH session
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=3] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=3] Received exit status 0
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=3] Received channel close
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=3] Channel closed
2018-11-12 14:40:13 INFO (MainThread) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-12 14:40:13 DEBUG (MainThread) [asyncssh] [conn=0, chan=4] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=4] Requesting new SSH session
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=4] Command: for dev in nvram get wl_ifnames
; do wl -i $dev assoclist; done
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=4] Received exit status 0
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=4] Received channel close
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=4] Channel closed
2018-11-12 14:40:13 DEBUG (MainThread) [asyncssh] [conn=0, chan=5] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=5] Requesting new SSH session
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=5] Command: arp -n
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=5] Received exit status 127
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=5] Received channel close
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=5] Channel closed
2018-11-12 14:40:13 DEBUG (MainThread) [asyncssh] [conn=0, chan=6] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=6] Requesting new SSH session
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=6] Command: ip neigh
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=6] Received exit status 127
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=6] Received channel close
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=6] Channel closed
2018-11-12 14:40:13 DEBUG (MainThread) [asyncssh] [conn=0, chan=7] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=7] Requesting new SSH session
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=7] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=7] Received exit status 0
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=7] Received channel close
2018-11-12 14:40:13 INFO (MainThread) [asyncssh] [conn=0, chan=7] Channel closed
2018-11-12 14:40:14 INFO (MainThread) [asyncssh] [conn=0, chan=8] Requesting new SSH session
2018-11-12 14:40:14 DEBUG (MainThread) [asyncssh] [conn=0, chan=9] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:14 INFO (MainThread) [asyncssh] [conn=0, chan=9] Requesting new SSH session
2018-11-12 14:40:14 DEBUG (MainThread) [asyncssh] [conn=0, chan=10] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:14 INFO (MainThread) [asyncssh] [conn=0, chan=10] Requesting new SSH session
2018-11-12 14:40:14 DEBUG (MainThread) [asyncssh] [conn=0, chan=11] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 14:40:14 INFO (MainThread) [asyncssh] [conn=0, chan=11] Requesting new SSH session
2018-11-12 14:40:14 INFO (MainThread) [asyncssh] [conn=0, chan=8] Command: ip -rc 1024 -s link
2018-11-12 14:40:14 INFO (MainThread) [asyncssh] [conn=0, chan=9] Command: ip -rc 1024 -s link
2018-11-12 14:40:14 INFO (MainThread) [asyncssh] [conn=0, chan=10] Command: ip -rc 1024 -s link
2018-11-12 14:40:14 INFO (MainThread) [asyncssh] [conn=0, chan=11] Command: ip -rc 1024 -s link
Ok, yes its a component in 0.83.
Lets hope that it works now ;)
And oh... the sensors do not work atm. for you, it will be fixed before release (hopefully)
Definitely not working.
Asuswrt device tracker still says 'away' 20 minutes after my other trackers have marked me as 'home'
Anything new in the logs?
Nothing that looks any different...
``2018-11-12 22:05:44 INFO (MainThread) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-12 22:05:44 DEBUG (MainThread) [asyncssh] [conn=0, chan=20] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=20] Requesting new SSH session
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=20] Command: for dev in
nvram get wl_ifnames`; do wl -i $dev assoclist; done
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=20] Received exit status 0
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=20] Received channel close
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=20] Channel closed
2018-11-12 22:05:44 DEBUG (MainThread) [asyncssh] [conn=0, chan=21] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=21] Requesting new SSH session
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=21] Command: arp -n
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=21] Received exit status 127
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=21] Received channel close
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=21] Channel closed
2018-11-12 22:05:44 DEBUG (MainThread) [asyncssh] [conn=0, chan=22] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=22] Requesting new SSH session
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=22] Command: ip neigh
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=22] Received exit status 127
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=22] Received channel close
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=22] Channel closed
2018-11-12 22:05:44 DEBUG (MainThread) [asyncssh] [conn=0, chan=23] Set write buffer limits: low-water=16384, high-water=65536
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=23] Requesting new SSH session
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=23] Command: cat /var/lib/misc/dnsmasq.leases
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=23] Received exit status 0
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=23] Received channel close
2018-11-12 22:05:44 INFO (MainThread) [asyncssh] [conn=0, chan=23] Channel closed
I think we have a solution but want to make sure before bumping the version
Just installed 0.82.1, still doesn't work with my RT-AC66U using Telnet.
2018-11-15 21:13:12 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform asuswrt
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/device_tracker/__init__.py", line 174, in async_setup_platform
hass, {DOMAIN: p_config})
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 46, in async_get_scanner
await scanner.async_connect()
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 71, in async_connect
data = await self.connection.async_get_connected_devices()
File "/srv/homeassistant/lib/python3.6/site-packages/aioasuswrt/asuswrt.py", line 165, in async_get_connected_devices
dev = await self.async_get_wl()
File "/srv/homeassistant/lib/python3.6/site-packages/aioasuswrt/asuswrt.py", line 101, in async_get_wl
lines = await self.connection.async_run_command(_WL_CMD)
File "/srv/homeassistant/lib/python3.6/site-packages/aioasuswrt/connection.py", line 87, in async_run_command
await self.async_connect()
File "/srv/homeassistant/lib/python3.6/site-packages/aioasuswrt/connection.py", line 96, in async_connect
self._host, self._port)
File "/usr/local/lib/python3.6/asyncio/streams.py", line 75, in open_connection
lambda: protocol, host, port, **kwds)
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 777, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 764, in create_connection
yield from self.sock_connect(sock, address)
File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 451, in sock_connect
return (yield from fut)
File "/usr/local/lib/python3.6/asyncio/selector_events.py", line 481, in _sock_connect_cb
raise OSError(err, 'Connect call failed %s' % (address,))
ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.1.1', 22)
Same here. Updated to 0.82.1. Problem persists. Using Telnet.
I switched to ssh and looks like the problem is not fixed
@kennedyshead
Who manages the docker images? I do not see 0.82.1 so I can not test the changes.
$ docker pull homeassistant/raspberrypi3-homeassistant
Using default tag: latest
latest: Pulling from homeassistant/raspberrypi3-homeassistant
Digest: sha256:e844b83e8c13e17d49ec09ee0520dffc809a642a64fba503a83c4264797851dc
Status: Image is up to date for homeassistant/raspberrypi3-homeassistant:latest
$ docker pull homeassistant/raspberrypi3-homeassistant:0.82.1
Error response from daemon: manifest for homeassistant/raspberrypi3-homeassistant:0.82.1 not found
There are other issues I would like to get fixed as well. Who should I talk to?
Not sure who handles the containers, as it appears to be an automatic build, but the 0.82.1 container has been up since around noon Eastern.
@Bahnburner
That is what I thought but someone is in charge of setting the build.
https://hub.docker.com/r/homeassistant/raspberrypi3-homeassistant/tags/ tag 0.82.1 is MIA as well as :latest can also refer to the dev (#18243).
Looks like 0.82.1 is up at the link you provided now. It just took it's sweet time getting there.
0.82.1 didn't solved the problem for me. Router Asus RT-N53, telnet. With PuTTy i can connect via telnet. Am i doing something wrong? Config.yaml entry:
device_tracker:
- platform: asuswrt
host: 192.168.0.1
protocol: telnet
username: !secret router_username
password: !secret router_password
It worked before 0.82.0
2018-11-17 11:35:22 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=129 from 2018-11-17 09:28:29.324641)
2018-11-17 11:35:27 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform asuswrt
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/__init__.py", line 174, in async_setup_platform
hass, {DOMAIN: p_config})
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 46, in async_get_scanner
await scanner.async_connect()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/asuswrt.py", line 71, in async_connect
data = await self.connection.async_get_connected_devices()
File "/usr/local/lib/python3.6/site-packages/aioasuswrt/asuswrt.py", line 165, in async_get_connected_devices
dev = await self.async_get_wl()
File "/usr/local/lib/python3.6/site-packages/aioasuswrt/asuswrt.py", line 101, in async_get_wl
lines = await self.connection.async_run_command(_WL_CMD)
File "/usr/local/lib/python3.6/site-packages/aioasuswrt/connection.py", line 87, in async_run_command
await self.async_connect()
File "/usr/local/lib/python3.6/site-packages/aioasuswrt/connection.py", line 96, in async_connect
self._host, self._port)
File "/usr/local/lib/python3.6/asyncio/streams.py", line 81, in open_connection
lambda: protocol, host, port, **kwds)
File "uvloop/loop.pyx", line 1879, in create_connection
File "uvloop/loop.pyx", line 1858, in uvloop.loop.Loop.create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Still not updating for me either using 0.82.1, HassOS 1.12, Ver 139 on DSL-AC68U stock firmware SSH
Also still not updating on Resin OS based Hass.io 0.82.1 with Asus RT-AC68U stock firmware SSH.
Broken on 0.82 and 0.82.1 for me. Stock Asus RT-AC66 with telnet.
Same for me on 0.82.1. I also have an AC66U with telenet. I couldn't find telnet in my routers settings, so I guess it only supports telnet.
@kennedyshead
After downloading the 0.83.0b0 image and moving the device tracker config from
device_tracker:
- platform: asuswrt
host: !secret router_ip
username: !secret asus_admin_name
# password: !secret asus_admin_password
#or
ssh_key: '/config/ssh/asuswrt' #The path to your SSH private key file associated with your given admin account
to
asuswrt:
host: !secret router_ip
username: !secret asus_admin_name
# password: !secret asus_admin_password
#or
ssh_key: '/config/ssh/asuswrt' #The path to your SSH private key file associated with your given admin account
all devices are now showing up correctly and being tracked.
Thanks for fixing this!
FYI, the example in #17757 does not show ssh_key
as an option.
I'm not sure why this is closed now, but will post here anyway.
I installed 0.83b0 and it's still not working on my RT-AC68U with SSH, AP mode firmware 3.0.0.4.384_32799.
The funny thing is that if I execute the command I see in HA logs:
for dev in
nvram get wl1_vifs && nvram get wl0_vifs && nvram get wl_ifnames
; do if type wlanconfig > /dev/null; then wlanconfig $dev list | awk 'FNR > 1 {print substr($1, 0, 18)}'; else wl -i $dev assoclist; fi; done
I get different results than I see in HA. I mean the list of devices in the comamnd line shows wireless devices + 1 more that I was not abel to recognize (it's also not visible in the asus mobile app), but the list of trackers in HA shows a tiny subset of the command line list + some other devices. Like it lived its own life and was independent from the ssh command...
EDIT: after 20 minutes since HA .83beta started and found some other devices - my mobile was detected and showed as Home. So I decided to make a test and switch the WIFi in my mobile off and see if it detects that I'm away. It did after a couple of minutes. So I activated my WiFi again and 15 minutes alter after that - it's still shown as 'Away'...so it kind of worked once, but again not working. Didn't restart the router this time.
Hello,
I also have this issue asuswrt telnet but what is really weird it was working until yestardat even do i was updated to 82.1. It stopped suddenly. ( Got some automations for alarm when not connected to wifi and started receiving false positives )
For the moment i downgraded as using the latest beta introduced issues with other components :(
One more data point... Am suddenly getting this "Error setting up platform asuswrt" after upgrading and is not fixed with 0.82.1. Am connecting via telnet to RT-N66U.
@StevenRosson
I posted the necessary changes as asuswrt is no longer a "platform" but a standalone component.
Change your config from:
device_tracker: - platform: asuswrt host: !secret router_ip username: !secret asus_admin_name # password: !secret asus_admin_password #or ssh_key: '/config/ssh/asuswrt' #The path to your SSH private key file associated with your given admin account
to
asuswrt: host: !secret router_ip username: !secret asus_admin_name # password: !secret asus_admin_password #or ssh_key: '/config/ssh/asuswrt' #The path to your SSH private key file associated with your given admin account
asuswrt is no longer under device-tracker:
. I have noticed that the new sensors do not appear to be measuring data correctly (#18643) but all of the devices are now properly tracked.
@StevenRosson
I posted the necessary changes as asuswrt is no longer a "platform" but a standalone component.
Change your config from:device_tracker: - platform: asuswrt host: !secret router_ip username: !secret asus_admin_name # password: !secret asus_admin_password #or ssh_key: '/config/ssh/asuswrt' #The path to your SSH private key file associated with your given admin account
to
asuswrt: host: !secret router_ip username: !secret asus_admin_name # password: !secret asus_admin_password #or ssh_key: '/config/ssh/asuswrt' #The path to your SSH private key file associated with your given admin account
asuswrt is no longer under
device-tracker:
. I have noticed that the new sensors do not appear to be measuring data correctly (#18643) but all of the devices are now properly tracked.
I tried but asuswrt is not detected as a component in 0.82.1.
I already updated my config to use asuswrt instead of device_tracker. It works for the first 3 minutes or so and shows presence correctly, but then everything goes to not_home and it won't recognize any connections no matter what I do. I assume it's a separate issue so I've opened one for it.
I have Asus RT-AC5300 and 0.83.0b1 works fine for me. Didn't get "not home" while at home for the whole night until I left next morning.
Tried 0.83 and still didnt get any luck.
Log Details (ERROR)
Thu Nov 29 2018 19:21:01 GMT+0200 (South Africa Standard Time)
Error during setup of component asuswrt
Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 145, in _async_setup_component
hass, processed_config)
File "/usr/src/app/homeassistant/components/asuswrt.py", line 57, in async_setup
await api.connection.async_connect()
File "/usr/local/lib/python3.6/site-packages/aioasuswrt/connection.py", line 100, in async_connect
self._host, self._port)
File "/usr/local/lib/python3.6/asyncio/streams.py", line 81, in open_connection
lambda: protocol, host, port, **kwds)
File "uvloop/loop.pyx", line 1879, in create_connection
File "uvloop/loop.pyx", line 1858, in uvloop.loop.Loop.create_connection
ConnectionRefusedError: [Errno 111] Connection refused
Are you sure you have everything setup correctly with username/password and ip? "Connection refused" is caused by not being granted access.
You need to add port: 23
if you're using telnet. I just got it working, but it only works for 10 minutes before all devices are supposedly away.
Tried 0.83 and still didnt get any luck.
Log Details (ERROR)
Thu Nov 29 2018 19:21:01 GMT+0200 (South Africa Standard Time)Error during setup of component asuswrt
Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 145, in _async_setup_component
hass, processed_config)
File "/usr/src/app/homeassistant/components/asuswrt.py", line 57, in async_setup
await api.connection.async_connect()
File "/usr/local/lib/python3.6/site-packages/aioasuswrt/connection.py", line 100, in async_connect
self._host, self._port)
File "/usr/local/lib/python3.6/asyncio/streams.py", line 81, in open_connection
lambda: protocol, host, port, **kwds)
File "uvloop/loop.pyx", line 1879, in create_connection
File "uvloop/loop.pyx", line 1858, in uvloop.loop.Loop.create_connection
ConnectionRefusedError: [Errno 111] Connection refused
@calypsoSA ,
Per https://github.com/home-assistant/home-assistant/issues/18492#issuecomment-442804909, try adding Port 23 to you config.
@kennedyshead is there a reason why telnet is assuming 22 by default? This seem wierd.
oh... just sloppy programming, Ill fix that in next release ;)
I updated to 0.83.0 today and I thought it worked perfectly again (by specifying port 23 for telnet). But after a few minutes, all devices got the status away.
I also see a lot of sensor.asuswrt_download fails and sensor.asuswrt_upload fails in the log, not sure if those if those problem are releated?
I updated to 0.83.0 today and I thought it worked perfectly again (by specifying port 23 for telnet). But after a few minutes, all devices got the status away.
I also see a lot of sensor.asuswrt_download fails and sensor.asuswrt_upload fails in the log, not sure if those if those problem are releated?
Port 23 also fixed it for me. But as per Broodster, have tested an AWAY/HOME, it just didnt come back to home.
All the sensor.asus also broken for me too.
And another question, can I still specify the following parameters? Because I don't see them on the doc page.
The consider_home one is important for me, because I rely on iOS devices and they disconnect from the wifi for a few minutes while sleeping. When I use the default 10 minute setting, some of my actions get trigged in the middle of the night when a devices reconnects to the network.
track_new_devices: false
interval_seconds: 12
consider_home: 0:20:00
@broodro0ster
I don't know about the other settings but consider_home: 0:xx
can be configured per device in the known_devices.yaml
:
https://www.home-assistant.io/components/device_tracker/#known_devicesyaml
Just updated from 0.80.0 to latest 0.83.0. Router "RT-N66U" (no option for ssh and factory firmware)
added asuswrt.yaml
_## Asus router integration
host: 172.16.1.1
username: **
password: *****
protocol: telnet
port: 23_
I've updated from 0.81.6 to 0.83.1. Router RT-N66U. HassIO. Transformed my configuration.yaml to:
asuswrt:
host: !secret asus_ip
username: !secret asus_username
password: !secret asus_password
protocol: telnet
port: 23
# consider_home: 180
# new_device_defaults:
# track_new_devices: false
and added consider_home: 180
in known_devices.yaml in every tracked device.
Errors:
RuntimeError: readuntil() called while another coroutine is already waiting for incoming data
IndexError: list index out of range
about 7 times each 30 seconds.EDIT: After a restart of HA, my at home device trackers report state 'home' first, but after the 180 seconds they become 'not_home'.
My HA crashed for some reason last night. When I tried to restart I found errors associated with the AsusWRT component and I couldn't get the app to restart. I checked Github and saw that there was new release that had been automatically installed via WatchTower (I run HA using Docker).
I think the errors I saw in 0.83 may be because I hadn't updated my configuration to use Component rather than Device Tracker. However I rolled back to 0.82 which seems to be working for the present (my phone shows as 'home').
I'm confused about why the AsusWRT issues keep being closed. I had one I made specific to 0.83b that was merged into another for 0.82, now I see this one is closed too.
I'm still having the same issue so I rolled back to 0.81.6. But I had the same 180 seconds of AsusWRT connectivity and then it stopped tracking and all went to not_home. Asus RT-N66U using telnet.
Im assuming that we need to wait for the next release.
0.83.3 seems to be fixed 👍
Thumbs up!
0.83.3 seems to be fixed 👍
Thumbs up!
Which router do you have? I got it working with my RT-AC66U on 0.83.3, but only for a few minutes using telnet, then every device "went away". I have rolled back to 0.81.6, but i have an extra docker container only running asuswrt and a few other components to monitor, but no luck so far. Neither can I see any related changes for the asuswrt component in the beta changelogs since 0.83.3 either...
It seems like only telnet is failing now. I seems like #19031 is tracking that issue.
I have the RT-AC87U and until version 0.83.2 i also had this issue ( with telnet ).
Upgraded to 0.84, and asuswrt is still broken.
Same story, connects on startup and then goes to away state a few minutes later, dead to the world.
Someone posted a modified old asuswrt.py that works as a device tracker here: https://github.com/home-assistant/home-assistant/issues/19031 It seems to solve the telnet issue.
I am having the same issue but not with asuswrt, instead I am using Cisco and Fritzbox device tracker.
Both are having the descriped issues from here.
Most helpful comment
I'm confused about why the AsusWRT issues keep being closed. I had one I made specific to 0.83b that was merged into another for 0.82, now I see this one is closed too.
I'm still having the same issue so I rolled back to 0.81.6. But I had the same 180 seconds of AsusWRT connectivity and then it stopped tracking and all went to not_home. Asus RT-N66U using telnet.