Hi!
I’m having some trouble with the unifi device tracker.
I’m using the unifi component for presence detection. My network consists of a USG, Unifi APs as well as Amplifi APs. All devices connected to Unifi APs will show up as wireless clients, devices connected to Amplifi APs will show up as wired clients. All good with that.
All is fine until I connect one of the devices that normally connects to an Amplifi AP to one of the Unifi APs for the first time. As soon as the device changes back to an Amplifi AP it will never show up as “home” again. I noticed that mac addresses of devices which were once connected to an Unifi AP will be written to the file “unifi_data” in /home/homeassistant/.homeassistant/.storage
Devices which were once connected to an Unifi AP and since changed back to an Amplifi AP will only reoccure as “home” if the mac address of those devices are deleted from “unifi_data” and Home Assistant is restarted.
TL;DR: It looks like devices listed in “unifi_data” that go from wireless_client to wired_client will never show up as “home” againt until removed from “unifi_data”.
My questions:
- Is this expected behavior?
- Could I prevent Home Assistant from writing mac adresses to “unifi_data”?
- Would it do any harm if make “unifi_data” read only to prevent mac address entries?
thanks in advance