ARP Scan device tracker is not working for me in the latest release. I have done some basic troubleshooting and it appears that in 1.0.4 it is excluding all devices. 1.0.3 is still functioning so I have rolled back.
Here is a debug of 1.0.3 (working example with IP and MAC removed):
# Enable Device Tracking
device_tracker:
- platform: arpscan_tracker
interval_seconds: 60
consider_home: 60
track_new_devices: true
scan_options: " --interface=enp8s0 10.11.12.201/24 -g"
exclude:
- <list of IP's to be excluded - works in 1.0.3>
The IP's in the debug of 1.0.4 are the IP's of the devices that were correctly being tracked in 1.0.3. The exclude IP's from configuration.yaml are not appearing at all, which is fine - they aren't suppose to be tracked anyway.
I believe the problem is with the new include parameter.
If you do NOT have it, the code is excluding everything (that is my guess).
Here is the code I think that is causing it:
if not ipv4 in include_hosts:
_LOGGER.debug("Excluded %s", ipv4)
continue
Since I do not have an include_hosts, it is actually excluding everything.
There needs to be a check before this to see if the include hosts is empty, and if so, skip this.
I will dig into this (I'm novice) and see if I can find the cause.
ARP Scan device tracker is not working for me in the latest release. I have done some basic troubleshooting and it appears that in 1.0.4 it is excluding all devices. 1.0.3 is still functioning so I have rolled back.
Here is a debug of 1.0.3 (working example with IP and MAC removed):
After updating to 1.0.4:
Here is my configuration.yaml entry:
The IP's in the debug of 1.0.4 are the IP's of the devices that were correctly being tracked in 1.0.3. The
exclude
IP's fromconfiguration.yaml
are not appearing at all, which is fine - they aren't suppose to be tracked anyway.I believe the problem is with the new include parameter. If you do NOT have it, the code is excluding everything (that is my guess).
Here is the code I think that is causing it:
Since I do not have an include_hosts, it is actually excluding everything. There needs to be a check before this to see if the include hosts is empty, and if so, skip this. I will dig into this (I'm novice) and see if I can find the cause.
Cheers! DeadEnd