Track_new_devices: no - not working

I’m using my Fritz!Box as device tracker and track_new_devices parameter is set to no, still new devices which connect to the network are added to known_devices.yaml with track: true.

This is my config for device_tracker:

  - platform: fritz
host: 192.168.1.1
password: mypassword
consider_home: 180
track_new_devices: no

I tried also with track_new_devices: false, but the result is always the same.

Do you have any ideas? :confused:

looks like a similar issue to

https://community.home-assistant.io/t/hass-always-adds-new-device-tracker-devices

sounds like a bug, depending on what versions/os/etc you guys are running. Probably need to file a bug report.

Track new devices in this format is obsolete, there is a new format, check the docs.

thanks a lot @forsquirel and @anon43302295!
I’ve updated my config as explained in the Device Tracker documentation and now everything is working as expected :slight_smile:

My new config:

  - platform: fritz
    host: 192.168.1.1
    password: mypassword
    consider_home: 180
    new_device_defaults:
      track_new_devices: false
      hide_if_away: false
1 Like

Hi,
my configuration looks the same as yours, but all devices will show up. So the “track_new_devices” doesn’t work for me.
Do you have any suggestions?

Show us your whole device_tracker config.

here it is

  - platform: icloud2
    username: !secret icloud_username
    password: !secret icloud_password
    filter_devices: 'phone'
  - platform: icloud2
    username: !secret icloud_username
    password: !secret icloud_password
    account_name: 'wife'
    filter_devices: 'wife'
  - platform: fritz
    host: 192.168.0.1
    username: admin
    password: !secret fritzbox_password
    new_device_defaults:
      track_new_devices: false
      hide_if_away: false

OK, so as per the docs you have to put those options on the first one in the list, you have them on the last one. Should be like this…

      - platform: fritz
        host: 192.168.0.1
        username: admin
        password: !secret fritzbox_password
        new_device_defaults:
          track_new_devices: false
          hide_if_away: false
      - platform: icloud2
        username: !secret icloud_username
        password: !secret icloud_password
        filter_devices: 'phone'
      - platform: icloud2
        username: !secret icloud_username
        password: !secret icloud_password
        account_name: 'wife'
        filter_devices: 'wife'

Ok, this works. What I don’t like is that all devices will be stored in my known_devices.yaml anyway. Even if I add the track_new_devices is false. The only diffrence is, that all new entrys have the tracking option = false.
Thank you!

1 Like