home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.11k stars 29.17k forks source link

Can't setup the Ubiqiti UniFi Network integration on UDM Pro Max #116609

Closed robertwebbe closed 2 months ago

robertwebbe commented 2 months ago

The problem

I just got myself the new Ubiquiti Dream Machine Pro Max. Tried to add UniFi Network integration but that doesn't work. When I try to setup a new network, I get "Uknown error occured". I've rebooted Home Assistant and the UDM, tried another account (with Super Admin role), username, password, no succes. Is it because the new UDM Pro Max isn't supported yet?

What version of Home Assistant Core has the issue?

core-2024.5.0

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

Ubiquiti 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?

Since the integration couldn't be setup, there is no log file.

Additional information

In the log file of the UDM Pro Max, I can see that it logged in using the username I've created. UniFi OS version: 4.0.3 UniFi Network version: 8.1.127

The UniFi Protect integration is working fine.

home-assistant[bot] commented 2 months ago

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)

Kane610 commented 2 months ago

There are no difference between the gateways that warrant extra work to support it up to this point at least.

What version of UniFi OS and Network app are you running

robertwebbe commented 2 months ago

UniFi OS version: 4.0.3 UniFi Network version: 8.1.127

robertwebbe commented 2 months ago

I can see in the security log of my profile that there are active sessions with the UDM.

Kane610 commented 2 months ago

Unifi OS 4 is not yet support as its in early access and stuff has broken on that release, https://github.com/home-assistant/core/issues/116411

I will try a suggested patch tonight that might resolve the issue, if it doesnt break Unifi OS 3 I will put up a PR.

Closing this as a duplicate of #116411

robertwebbe commented 2 months ago

Thank you very much!