I am having issues with connecting HA to my UniFi controller after I upgraded it to 5.10.25 (running on a CloudKey, but not sure that is significant to this issue).
I am able to login to the UniFi interface successfully. I have double/triple/quadruple checked the details in my HA config files and they are correct. HA reports “Failed to connect” in the log. Presence detection is showing all devices as away, even though they listed as connected in the UniFi interface.
019-07-01 23:08:21 ERROR (MainThread) [homeassistant.components.unifi] Error connecting to the UniFi controller at [IPAddressRedacted]
2019-07-01 23:08:21 ERROR (MainThread) [homeassistant.components.unifi.device_tracker] Failed to connect to Unifi:
2019-07-01 23:08:21 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform legacy
No other changes other than upgrade from 5.10.23, running Hassio 0.95.4 on a Raspberry Pi 3B+.
I was using the UniFi device tracker, but tried converting over to use the UniFi Controller integration, and I got nothing whatsoever in the logs, but presence detection still reporting all devices as away.
I have just now downgraded UniFi back to 5.10.23 (technically it was a fresh install and then restoration from backup, heart in mouth whilst doing it), reverted to using the UniFi device tracker, restarted HA to allow the UniFi component to reconnect, and it all came good again.
The integration still does does not work. No entries in the log file that I could discern - the same results as under 5.10.25 - all devices marked as away.
I only have the one CloudKey, and do a lot of automations with presence, so can’t really play around with it all that much before annoying wife and kids (they are easily annoyed )
I am just relieved it is now back up and running.