Ubiquiti Network authentication errors

I am trying to use the Ubiquiti Network integration and I have created the local read only account. When I put the IP address and creds into the config, I get an error saying

Invalid authentication

Log entry says

Logger: homeassistant.components.unifi
Source: components/unifi/controller.py:500
Integration: UniFi Network (documentation, issues)
First occurred: 9:10:21 AM (2 occurrences)
Last logged: 9:11:07 AM

Connected to UniFi Network at 10.0.0.107 but login required: api.err.LoginRequired

I have verified the creds work by logging into my cloud key locally

Fixed. It was a port issue.

1 Like

I ran into a similar problem when my controller changed IP addresses (I can’t make it fixed on this network). I totally missed that the port needed to be 8443, because there actually is a valid service listening on Cloud Keys on port 443 - just not the controller. I filed a feature request for better messaging around this at Unifi Network: Better error message in handling of wrong port.