cyberjunky / home-assistant-arpscan_tracker

This component tracks devices using the arp-scan liinux command, it's very fast, and reasonably accurate.
MIT License
28 stars 4 forks source link

track_new_devices: false is ignored #12

Closed Dmattiazzi closed 1 year ago

Dmattiazzi commented 2 years ago

the configuration "track_new_devices: false" is ignored and in "known_devices.yaml" the devices are all "track: true"

cyberjunky commented 1 year ago

@Dmattiazzi sorry for the very late reply, I just tested it, this works here:

device_tracker:
  - platform: arpscan_tracker
    scan_options: --interface=eth0 192.168.1.0/24 -g
    new_device_defaults:
      track_new_devices: False
780f77509abc:
  name: 780f77509abc
  mac: 78:0F:77:50:9A:BC
  icon:
  picture:
  track: false

3693bb370abc:
  name: 3693bb370abc
  mac: 36:93:BB:37:0A:BC
  icon:
  picture:
  track: false
cyberjunky commented 1 year ago

There is a but, if you have multiple types of device trackers active, you need to add it to the first one, according to some forum post I came across.

cyberjunky commented 1 year ago

If this is still an issue with above config syntax please re(open)