Hi, I hope someone can help. I have Hass.io running on a raspberry pi zero w. It has been going great but device tracking stopped working recently on my Asus N55U router. The update 0.83 had a fix for this issue but I have installed the update and I’m receiving a config error as per below. SSH isn’t supported on my router.
My config is:
asuswrt:
host: 192.168.1.1
username: USERNAME
password: PASSWORD
protocol: telnet
Error message:
018-11-30 21:36:07 ERROR (MainThread) [homeassistant.setup] Error during setup of component asuswrt
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component
hass, processed_config)
File “/usr/local/lib/python3.6/site-packages/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
It is known this is still broken… there is talk about it on GitHub… hopefully a fix is found soon. I just updated last night and broke all my device trackers. I haven’t really looked into the actual errors yet myself maybe tonight I’ll get a chance to look into it a little more.
Have you tried setting the port to 23? Afaik telnet uses port 23 and the standard for asuswrt is to use ssh and port 22. I’m using ssh and it works as it should. I’m running hassio 0.83.2
2018-12-01 15:37:35 ERROR (MainThread) [homeassistant.setup] Error during setup of component asuswrt
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component
hass, processed_config)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/asuswrt.py”, line 48, in async_setup
conf = config[DOMAIN]
KeyError: ‘asuswrt’
2018-12-01 15:37:35 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of device_tracker.asuswrt. Setup failed for dependencies: asuswrt
2018-12-01 15:37:35 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform device_tracker.asuswrt: Could not set up all dependencies.
Yeah, the docs are SORELY lacking in explaining the new device tracker functionality where asuswrt is concerned.
Somebody went thru the trouble to modify the docs for the asuswrt component and tell you to reference the device tracker docs for further instructions but then failed to update the device tracker component to actually give any instructions for asuswrt.
I was in the same exact boat… same model everything… i just put merlin on my router (something i had planned on doing but never bothered…) it was completely painless… just like a regular firmware upgrade… and now everything seems to be working. I literally just finished turned on SSH and rebooted HA. So far so good.
I was hesitant as clearly something got broken in the breaking out of the device tracker to its own component but after seeing that I could go back to the asus stock firmware from merlin I figured it was worth a try.
Running Merlin version 384.7_2 on a RT-AC68U and get these errors after upgrade to 0.83.2:
2018-12-02 23:06:33 ERROR (MainThread) [homeassistant.setup] Error during setup of component asuswrt
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/asuswrt.py”, line 57, in async_setup
File “/usr/local/lib/python3.6/site-packages/aioasuswrt/connection.py”, line 65, in async_connect
Using this setup in my config:
asuswrt:
host: 192.168.1.1
username: admin
port: 2222
ssh_key: /config/.ssh/hassio_to_router_private_ssh_key
Unable to prepare setup for platform device_tracker.asuswrt: Could not set up all dependencies.
19:41 setup.py (ERROR)
Unable to set up dependencies of device_tracker.asuswrt. Setup failed for dependencies: asuswrt
19:41 setup.py (ERROR)
Error during setup of component asuswrt
19:41 components/asuswrt.py (ERROR)
I’m not sure what you mean.
I read the thread and add my own experience: changing the asuswrt configuration doesn’t solve the issue for me when it seems to work for some users.
Ohhhhhh. so Asuswrt in not anymore related to the Device Tracker component as I had to remove it from my inclusion (device_tracker: !include tracker.yaml). Does this means we also lose aditionnal parameters like consider_home or interval_seconds. The documentation is not clear about that.
This tracker was working perfectly for me and now it’s pretty much broken because of the missing parameters. Anyone know why this (horrible) decision was made?
I’m using 380.70 with an n66u. I was not even aware of the 5Ghz issue (thanks for the heads up) and haven’t seen it as of yet. After looking into it a little it seems some people are blaming it on Auto DFS channel selection but I already had auto channel selection turned off, so if that is the actual cause maybe that is why I haven’t had an issue yet. But my device tracker and new speed sensors have been working perfectly…