Hey guys so for the last few hours i have been trying to set up presence detecion with my unifi gear… everything goes smooth with the configuration but then nothing happens. nothing appears,
You need to specify site_id unless your site is the default site.
Your unifi site id is in the URL for the dashboard of your site.
From the Unifi component page . . .
“For example, this is what would be seen in the URL bar when inside the dashboard page of a site: https://127.0.0.1:8443/manage/s/ceb1m27d/dashboard
And your site_id value would be ceb1m27d .”
All that happens when this works is it adds devices from your network to your known_devices.yaml file and creates device_tracker entities with “scanner: UnifiScanner” in the attribute.
I was able to check the full logs … On the logs it connects and all of the devices show up perfectly… But it doesn’t add anything to the known_devices.yaml and it also it doesn’t create any entities… Is there something I’m missing ???
Not a full answer, but a potential workaround… how many access points do you have? There is another UniFi component that allows you to check the devices on the access point instead of the controller.
I had a similar problem as you and couldn’t get it to work. As I only have one AP in my house, the AP version works just as well for me, and I got that working without any issues.
Well we have 4 APs and a couple of switches and some cameras … i wanted to do this so i can also get stats for the switches and power consumption and display them on custom graphs… now that you mentioned it worked yesterday when i tried that approach but it just brought my network to a crawl lol so i deleted that immediately.
I have added a github issue since the component loads fine its just the tracking that is kinda not working … i hope i we can get somewhere over there.
I really don’t know how to check the permissions on the file… But when i use the unifi-direct component the file gets populated…
here are the last things i have tried .
Made a new fresh install no other component or entity added and the result is the same …
Added a lot of different configs here is the latest:
Added the issue on github but it seems not to get any attention it must be something wrong with my specific setup because i don’t see anyone else having the same issues as me.
But when i use the unifi-direct component the file gets populated
I would assume then that file permissions are correct.
Is the unifi user account being used an admin on the controller (read-only is sufficient)?
Does the password contain any special characters (there are old posts reporting this as an issue).
Well ill be damned … I changed the account permissions to read only from administrator and then it worked immediately… its not specified what type of account you should use for the component to work strange thing is that in the logs it connected and displayed the information when logger was enabled for debugging purposes it just didn’t populate the known_devices.yaml and entities where not created.
Thanks for pointing me on another direction issue is solved finally
interval seconds is how often HA contacts unifi to get list of devices that are connected
Consider home is how long someone should be a way to be marked away.
I have problem setting up unifi, would you mind sharing your config?