What is Nmap Tracker

Nmap Tracker is an official integration that comes with Home Assistant. It is added under Settings → Devices & services → Add integration.

The integration uses the network tool Nmap to scan the local network at regular intervals. You can scan an entire network range, for example 192.168.1.0/24, but it is smarter to scan only the phones’ own IP addresses. This requires the phones to have a fixed IP address in the router. In return, scanning is faster, and you avoid getting an entity for every single device on the network. Each phone becomes an entity with the state home or away. This means phones can be used as a presence signal without apps and without access to the router.

Modern phones use a private MAC address on Wi-Fi. It normally stays the same as long as the phone is on the same network, so the phone can still be recognised.

The biggest limitation is that sleeping phones do not always respond to the scan. The integration can therefore be set to only consider a phone away once it has been gone for a while. The longer the time limit, the less often a sleeping phone is wrongly marked as away. On the other hand, it takes longer before an actual departure is registered.