Asuswrt - how to disable device tracker

I recently updated my Asuswrt config as per guidelines at the recent release (0.83).

However, I keep getting sensors relating to new devices. I want to disable these, but it no longer seems possible. Previously, I had track_new_devices set as false, as below.

device_tracker:
  - platform: asuswrt
    host: 192.168.1.1
    username: !secret router_username
    password: !secret router_password
    new_device_defaults:
      track_new_devices: False
      hide_if_away: False

However, when I do the following on the new component:

asuswrt:
    host: 192.168.1.1
    username: !secret router_username
    password: !secret router_password
    new_device_defaults:
      track_new_devices: false
      hide_if_away: false

I get the below error. This prevented HA from even loading at all on restart.

Invalid config for [asuswrt]: [new_device_defaults] is an invalid option for [asuswrt]. Check: asuswrt->asuswrt->new_device_defaults. (See /config/configuration.yaml, line 84). Please check the docs at ASUSWRT - Home Assistant

The Asuswrt page doesn’t mention device tracking at all, except for a link to the Asuswrt device tracker page.

However, that merely refers you to the generic device tracker page which simply uses the error-causing code above.

The asuswrt component is here
It should not have ā€œnew_device_defaultsā€ at all.

I saw in other thread that some of the extra options like ā€˜consider_home’ in device_tracker for asuswrt platform is broken.

My config is working, it is the most basic form (just switched from password to ssh_key):

asuswrt:
    host: !secret asus_ip
    username: !secret asus_account
    # password: !secret asus_password
    ssh_key: /home/homeassistant/.homeassistant/ssh/ssh_asus_private_key

device_tracker:
  - platform: asuswrt
    host: !secret asus_ip
    username: !secret asus_account
    # password: !secret asus_password
    ssh_key: /home/homeassistant/.homeassistant/ssh/ssh_asus_private_key

Hope this helps.

Thanks for the response. I’m a little confused by that code block. Do you have both the asuswrt: and device_tracker: entries in your config?

Regarding your comment that ā€˜it should not have ā€œnew_device_defaultsā€ at all’, how do I prevent having any new device that connects to my wifi show up at the top of HA? This was easily managed via the old config by simply using ā€˜new_device_defaults: false’ but now I’m getting these unwanted entries showing up.

Yes, I had both in my config.
Guess the new_device_defaults issue will have to be fixed soon in coming release.

Is it necessary to have the device_tracker: entry now? I thought that the breaking change in 0.83 meant that we no longer used that, and replaced with the asuswrt: one.

My config is working fine, and tracks known devices just as well as it used to, but I just don’t want new ones showing up. It seems odd that this functionality was removed completely.

1 Like

Yes it is if you want to add those extra parameters, one of the other Asuswrt threads that are ongoing explains it well but the gist is remove the login bits from your old device_tracker: set up and move them to asuswrt:

1 Like

Thank you @Bobby_Nobble
I cleaned up my config, extra options working, no error in log.

asuswrt:
    host: !secret asus_ip
    username: !secret asus_account
    ssh_key: /home/homeassistant/.homeassistant/ssh/ssh_asus_private_key

device_tracker:
  - platform: asuswrt
    consider_home: 180
    new_device_defaults:
      track_new_devices: false
      hide_if_away: false
4 Likes

the gist is remove the login bits from your old device_tracker: set up and move them to asuswrt:

Thank you for clarifying the process. I’ll make that change tonight.

I’d looked at a number of other threads, but they all seemed to revolve around complaints that the component wasn’t working, whereas mine was working (too) well. :wink:

1 Like

I cleaned up my config, extra options working, no error in log.

Good to hear. I’ll be making that change tonight. Glad to know that it’s working.