Continuing My Unifi Presence Detection Woes

Hi Robban.

I’m running Home Assistant v 0.105.4 on Docker in Ubuntu. My Unifi controller is a Cloudkey 1st gen running all the latest software.

Strangely, I can still retrieve information via the unifigateway service as follows:

The set process within HA goes smoothly when I install the Unifi Controller integration. It obviously connects to the Cloudkey as it retrieves a list sites for me to select from during the set process. It then says setup was successful, but shows no devices on the integration page.

I have tried removing the integration, restarting HA, reinstalling but still the same.

I find it odd that everything seems to be working perfectly (and indeed has done until last week) except the step where the integration populates the list of devices on the network.

Any ideas? From the error message, it looks like there may be some corruption to some file or entry somewhere, but I have tried to search for and remove every unifi reference in my installation, then reboot and reinstall the integration. Still no luck.

2020-02-17 16:50:11 ERROR (MainThread) [homeassistant.components.unifi] Unknown error connecting with UniFi controller: Invalid content type: text/html