-
-
Notifications
You must be signed in to change notification settings - Fork 28.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add local account to Unifi integration : "Failed to connect" message #119920
Comments
Hey there @Kane610, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) unifi documentation |
I am seeing the same failed to connect issue in the June release of HAOS/HA. My Unifi controller is remote, but I'm giving the correct credentials as verified by logging into the same hostname on my controller's web GUI. This is my first time installing it. I've never tried to install the Unifi Integration previously. Also, I recommend some documentation or a greyed out text in the host field showing example.com because its not clear if a leading https:// is needed in the hostname field. Thanks for posting this OP. |
I noticed that I forgot to mention that I am running the UniFi controller as a HA Add-on |
I also meet this problem even I have create a local authentication account. Any tips to resolve this problem? |
In my case, the issue has been solved. I have logged in into both the Unifi controller and HA using the local IP address. Then I have created a local user in the Unifi controller. I deleted the Unifi Network integration in the local HA and afterwards added it again with the credentials of the local administrator account of the Unifi controller. Now I have both 1 local Unifi administrator and 1 remote Unifi administrator, of which the latter has to use the 2FA. |
Do you see any errors in the logs? |
@BlackRockCity and @leeaash , this is a question for your issues as for me the issue has been resolved |
I've been hitting the same issue recently - however - it seems like my integration got in a bad state and was hitting the login endpoint on the controller too much. From the integration logs, the controller is now returning a
I suspect something happened to my integration and got stuck in a tight auth loop. This manifests in the UI as Not sure if this is what others are hitting but check your logs. We could consider doing some backoff in the integration if we see a 429. |
I'm having this issue. I'm trying to connect using the local IP address of the UDM and port 443. I'm able to log into unifi on a browser using that IP and the local user account I created. I tried deleting and creating a new local user account on Unifi and still I get the same issue. Logs only show one line: "Error connecting to the UniFi Network at " (my local IP) |
Can you enable/download the diagnostic logs, restart the integration and post the resulting logs here? (Be sure to remove your password in the logs!) |
I can't get the integration to actually enable to the point that I can access the page and download the diagnostic logs. Basically, when I search for Protect and add the integration, it prompts me to enter host, username, password etc. but the submit form fails, and the integration never gets added. Relevant: I'm using Protect application 4.0.33. I was in Early Access but I changed back to stable. I believe this is the official release |
Same here! |
Please open a separate issue for protect |
Have you gotten it back to running? |
I had the same issue, the integration was working, then it wasn't I was complaining abut too many failed authentication attempts, however credentials had not changed, I removed the UDM controller from the integration and tried to re-add it, this failed to get past the add box with failed to connect. I removed the user from the local controller and waited a few hours, then re-added it all back and it worked. |
For the 429 - yes. Try disabling the integration and restarting the controller. Then re-enable the integration worked for me. |
The problem
Dear,
In July 2024, Unifi will require 2FA exept for local accounts.
I have created a local account with Administrator rights in my Unifi controller (Remote access disabled).
When trying to connect the local account to the Unifi integration, I always get the message "Failed to connect".
Please find enclosed the images with the setup of the account and the error.
Could you please assist me with this issue?
Many thanks.
Kind regards,
Robin
What version of Home Assistant Core has the issue?
2024.6.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
UniFi Network
Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifi/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: