I’m using the nmap device tracker with this config:
- platform: nmap_tracker
hosts: 192.168.1.0/24
interval_seconds: 300
home_interval: 900
scan_options: " --privileged -sn --host-timeout 5s "
track_new_devices: yes
I’ve also run this command to enable privileged mode:
sudo setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip /usr/bin/nmap
When I start HA, every 5 minutes nmap runs and discovers online devices and sets them to home. But 3 minutes later all devices transition to away and are picked up again 2 minutes away.
There’s nothing relevant in the logs when this happens.
Any idea how to fix it (without more frequent polling)?
Thanks!