Skip to content
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

Unifi won't let me reconfigure item in "Failed to set up" state with error "UniFi integration is not set up" #117742

Closed
reedy opened this issue May 19, 2024 · 7 comments
Assignees

Comments

@reedy
Copy link
Contributor

reedy commented May 19, 2024

The problem

I originally setup the unifi integration using a non local user, and now enabling 2FA has broken the HA access to it. That's fine, and is completely understandable.

However, when I try and use "Configure" to change/update the credentials in HA, I get an unhelpful error message of "UniFi integration is not set up"

Screenshot 2024-05-19 at 19 49 59

For the other entry (FTC CK) it did let me enter new credentials, and updated fine.

I can presumably delete the existing entry, and re-add it. Or temporarily disable 2FA on the UI side, let the auth reconnect on HA, and then update to a local user...

But I should be able to able to configure entry from the menu for the other device, in the same way as I did for the first one...

What version of Home Assistant Core has the issue?

core-2024.5.4

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

Link to integration documentation on our website

https://www.home-assistant.io/integrations/unifi

Diagnostics information

home-assistant_unifi_2024-05-19T18-48-20.907Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @Kane610, mind taking a look at this issue as it has been labeled with an integration (unifi) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of unifi can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign unifi Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


unifi documentation
unifi source
(message by IssueLinks)

@viseniv
Copy link

viseniv commented May 19, 2024

I have a previously working integration and now it says my authentication is expired. I alwas log in with my local user

@G4Cab
Copy link

G4Cab commented May 20, 2024

Same here, 2FA activated.
HA 2024.5.4 is complaining

@Kane610
Copy link
Member

Kane610 commented May 20, 2024

Hello, the configure button is to set the integration options like what entities you want created. The Reauthentication flow would solve this which was introduced to the framework two months ago but is currently not supported by the integration.

What you can do in the mean time is you can manually edit the config entry (make a backup first), by going to .storage/core.config_entries and edit username and password there

How to properly create a local user see https://community.home-assistant.io/t/ubiquiti-unifi-network-add-on-integration/678411/17?u=robban

@Kane610 Kane610 closed this as completed May 20, 2024
@reedy
Copy link
Contributor Author

reedy commented May 20, 2024

What you can do in the mean time is you can manually edit the config entry (make a backup first), by going to .storage/core.config_entries and edit username and password there

Cheers, useful hint.

Quick question. Why did HA let me change the username/password for one of them (both using the same original login that had 2FA enabled) using an inbuilt config window?

@G4Cab
Copy link

G4Cab commented May 20, 2024

Hello, the configure button is to set the integration options like what entities you want created. The Reauthentication flow would solve this which was introduced to the framework two months ago but is currently not supported by the integration.

What you can do in the mean time is you can manually edit the config entry (make a backup first), by going to .storage/core.config_entries and edit username and password there

How to properly create a local user see https://community.home-assistant.io/t/ubiquiti-unifi-network-add-on-integration/678411/17?u=robban

Thanks, worked for me.

Created a additional local admin on the controller.

Didn't need to manually edit the config files, the HA assistent for reauthentication worked.

@Kane610
Copy link
Member

Kane610 commented May 21, 2024

Didn't need to manually edit the config files, the HA assistent for reauthentication worked.

Yes the integration can prompt for a reconfiguration, but there is also a new way as a user to manually trigger a reauthentication flow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants