Asuswrt config not working 0.83.1

You can still use them, just take your old device_tracker set up and remove the host, username and password lines.

After changing port to 23 everything start working.

Thanks a lot

Can somebody post a valid config? I just got a new asus router and also have the problem that my config is broken
Mine currently looks like this:

asuswrt:
  host: 192.168.1.1
  username: <MY-USER-NAME>
  password: <MY-PASSWORD>

looks fine to me.

what’s “broken”?

It just says that there is an invalid config asuswrt. Therefore presence detection is not working…
Do I need to enable something on the router side?

yes you need to enable ssh in the router under the administration>system tab. I have it set to lan only & allow password login.

if that doesn’t fix it then post your home-assistant.log file contents.

Just updated to 0.86.0 and it appear asuswrt is broken again.

2019-01-24 19:53:19 INFO (MainThread) [homeassistant.setup] Setting up tts
2019-01-24 19:53:19 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 61, in async_setup
await api.connection.async_connect()
  File "/usr/local/lib/python3.6/site-packages/aioasuswrt/connection.py", line 66, in async_connect
self._client = await asyncssh.connect(self._host, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/misc.py", line 182, in __await__
return (yield from self._coro)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/connection.py", line 5454, in connect
conn, _ = yield from create_connection(None, host, port, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/connection.py", line 5110, in create_connection
yield from auth_waiter
  File "/usr/local/lib/python3.6/site-packages/asyncssh/connection.py", line 627, in data_received
while self._inpbuf and self._recv_handler():
  File "/usr/local/lib/python3.6/site-packages/asyncssh/connection.py", line 847, in _recv_packet
processed = handler.process_packet(pkttype, seq, packet)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/packet.py", line 215, in process_packet
self._packet_handlers[pkttype](self, pkttype, pktid, packet)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/connection.py", line 1414, in _process_kexinit
self._kex = get_kex(self, kex_alg)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/kex.py", line 122, in get_kex
return handler(alg, conn, hash_alg, *args)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/kex_ecdh.py", line 47, in __init__
self._priv = ecdh_class(*args)
  File "/usr/local/lib/python3.6/site-packages/asyncssh/crypto/curve25519.py", line 31, in __init__
self._priv_key = x25519.X25519PrivateKey.generate()
  File "/usr/local/lib/python3.6/site-packages/cryptography/hazmat/primitives/asymmetric/x25519.py", line 39, in generate
_Reasons.UNSUPPORTED_EXCHANGE_ALGORITHM

Any help appreciated

Im getting errors also
Unable to prepare setup for platform device_tracker.asuswrt: Could not set up all dependencies.

EDIT: I removed the device tracker and now getting the exact same error as @bedo2405

0.86, I receive this

2019-01-24 10:45:42 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of device_tracker.asuswrt. Setup failed for dependencies: asuswrt

2019-01-24 10:45:42 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform device_tracker.asuswrt: Could not set up all dependencies.

2019-01-24 10:45:42 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of device_tracker.asuswrt. Setup failed for dependencies: asuswrt

2019-01-24 10:45:42 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform device_tracker.asuswrt: Could not set up all dependencies.
1 Like

Same here, error with the asuswrt and HA 0.86.1

Same here, same errors!

Apart from the problem with 0.86…
Is there anything I need to enable on my router?
And the config needs to be on root level, right?

So like:

homeassistant:
  name: Home
  ....

asuswrt:
  host: 192.168.1.1
  username: <MY-USER-NAME>
  password: <MY-PASSWORD>

Cause i still see this error:

The following components and platforms could not be set up:
asuswrt
Please check your config.

did you not see my post above:

It may very well be a HA issue tho but you haven’t pasted the logs I suggested yet to get any further details on what the problem might be.

try enabling SSH on your router first to see if that fixes it first tho.

Could you guys help to place a comment on this issue please?

That would help the developer to fix it soon

THANK YOU! After much troubleshooting and re-configuring it turns out THIS was the issue. I had to specifically call out port 23 for telnet and I’m running v86.4

V

Where do you see that info about port?

Have you tried telnetting into your router from the command line?
$ telnet 192.168.1.1
It will ask you for username and password. If you can’t establish a connection that way, there is a good chance that you haven’t allowed telnet access in your router’s configuration.
In my router control panel there is an option called “Local Administration” where I had to check “using primary telnet port (23)”.

Jardi.

but if all is working? why are there so many people complaining that this asuswrt component is broken?
havent tried it yet myself, have a new asus router, just following those topics here

Maybe most of them (incl. me) had the same first experience - fail instead of configure and use… It can be little frustrating when You caught that think in mind to being forced to throw asus away and upgrade network hdw in to the compatible… payment. :slight_smile:

Did someone have two (or more) asus routers in the old (HA0.81) device_tracker platform?

With the new asuswrt component I can only specify a single router?