I am trying to setup nmap as device tracker. I can see in known_devices.yaml that it manages to grab all network devices. However, under the developer tools, the state for each device_tracker entities is always not_home. Am I missing something here?
I haven’t used nmap, but I had the same issue and it was the result of a misnamed device breaking my known_devices.yaml
file.
I have a wifi enabled printer that I almost never turn on, but when I did it automatically was discovered and named a random series of characters. I went into my known_devices.yaml
file and renamed it to “Printer MX870” without realizing the space between Printer and MX870 was incorrect syntax. That broke my known_devices.yaml
file and prevented the device tracker from ever noticing a change in state (home to not_home, etc). It also kicked out an error to the log file saying known_devices.yaml
wasn’t loading correctly.
I renamed the printer to PrinterMX870 and restarted Home Assistant, and it started working again right away.
Hope that helps!