So I have Home Assistant up and running since well a while back. I run latest HA with all upgrades.
I also have an Unifi AP, which is running stand alone (no controller software), and it gets IP adresses from my OPNsense firewall thru DHCP for all connected clients.
The issue I seem to have is that well it can take anything between 5 and 25 minutes before Home Assistant discovers that I am home (or my wife for that matter). I am pretty sure that was not the case about a month or so ago, I would have noticed I think since there are lamps that get turned on when we are home… So it might be something new - the AP config has not changed since early november, nor has I done any changes in my OPNsense firewall. But I am changing alot in my Home Assistant config, it is still in build phase so to speak.
In my configure.yaml I have this:
device_tracker:
- platform: unifi_direct
host: <ip-adress>
username: admin
password: <xyz>
interval_seconds: 5
consider_home: 30
new_device_defaults:
track_new_devices: true
I lowered the consider_home to 30 to get a faster discovery - that fails. The same with interval_seconds, no difference.
I know from my DHCP server when “I or my wife” comes home, so I know our mobiles WiFi are connected, and working by the way on the internal network.
I just don’t get any action from Home Assistant presence detection routine. And do observer, as I wrote above, that my Unifi AP runs stand alone.
I might test the OPNsense integration instead I guess, but when I tried that in October or something, I got in to other problems (I think it also missed detection), so I changed to current integration.
Any ideas?