Using a Unifi Switch with the unifi presence tracker?

Hi - I’ve just added a Unifi managed switch to my Unifi wireless setup. The switch reports clients to the controller long after they’ve disconnected from an access point so HA thinks they’re still connected.

Anyone else seen this?

Thanks,
James

Late reply, but I am also seeing this. Did you figure it out?

Opening an old topic, but I’ve done some research on this since recently switching to a Unifi switch. It appears this a bug on the Unifi side. It will show many wireless devices as wired and holds on to them for days at a time. Since the Home Assistant component does a client-list against the Unifi controller, it reports those devices as connected. Unifi has been talking about this bug for well over a year, so not sure how quickly they will resolve it. I’ve looked into using SNMP instead, but can’t seem to find the OID related to connected devices.

Update:

Was able to sort out SNMP, Unifi USG can utilized the same OID as the EdgeRouter. This seems to solve my problem for now. Not really sure this can be fixed until Unifi patches the switch.

I’m having the same issue with so many devices showing up in my known_devices file as my switch is picking up all my dockers on my home server and on Hass.io. Makes the entity list a mess to navigate. I’ve tried filtering on SSID and they still show.

Surely there is a better solution to this than using another form of presence detection?

What oid you use?

Try set “track_new_devices: false”
This will prevent devices being added to file.

Then manually enter only the devices you want tracked into known_devices.yaml

OR
let it populate, set to false, delete unwanted

Thanks tmjpugh, I just have to turn off racking new devices and clean out my known devices. Works fine after that.