@DotNet2Web - that’s correct. The Unifi Network integration will do that for you. When you set up the integration, just check the box for “Track network clients”, then select which SSIDs you want to track wireless clients on (it only tracks wired clients by default).
Due to a change in HA, you’ll also need to enable uptime sensors for network clients, otherwise the device trackers are all created in the default state - which is disabled (unless something has changed - again - which is entirely possible. This information is ~ a year old?).
Additionally, ignore Wally and all his ARP table nonsense. I’m guessing he’s used to working with less-intelligent gear. In the interest of setting him straight though, the default on Cisco IOS gear is 14400 seconds - or 4 hours, nevermind 15 minutes and Cisco does not recommend changing it.
Unifi gear (and Cisco gear as well, using WLAN controllers like the 98xx series and the 55xx series before that) will immediately notice when a client has dropped, though in the interest of not having your device trackers “flap”, you can configure via the HA integration how long Ubiquiti needs to show them away before the HA device tracker also updates them as away. IIRC, mine are set to 120 seconds maybe? I used to have them set WAY shorter - like 5 seconds, but there was some change made a while back that gave me a headache (my apologies, I don’t recall what - or when - that was).
@anon63427907 - the advantages are MANY. What if the device you want a status on doesn’t respond to ping? What if it’s on a different subnet that you can’t communicate with? Those aside - why generate all that extra nonsense traffic on your network when the information is already available? Why (manually?!) reinvent the wheel? It’s already built into the integration automagically. If you’d rather go and create a few dozen ping sensors by hand in your config file, have at it.
Lastly, though, and perhaps the most important one - is that Unifi will automagically create device trackers for every single entity on your network without you having to go and do anything. This means that I can keep track of the number of devices connected to my guest wifi, and I can fire automations - or more importantly, NOT fire automations - based on if there are guests at my house. See:
If you had to create the device trackers by hand and wanted to do this, it’d be a big pain in the ass “oh, wait - you’ve never connected to my network before. Let me go and find your IP address and create a device tracker. Honey - wait, I need like 10 minutes before we can leave to go to dinner, I have to create a device tracker for the new babysitter’s phone”.
Sort of takes the “automation” our of “home automation”…