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
72.69k stars 30.44k forks source link

Failed to Connect Unifi network integration #128348

Open tiagonmas opened 1 week ago

tiagonmas commented 1 week ago

The problem

I have installed Unifi Controller as a Home Assistant Add on that is working on a RPI (https://192.168.1.65:8443/). The contrller works fine but when I try to install the Unifi network integration I always get "Failed to Connect". I'm already using a local admin to bypass multi factor authentication. I'm putting the host as 192.168.1.65 ...

Any idea on how to connect the integration ?

What version of Home Assistant Core has the issue?

core-2024.10.2

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

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

024-10-14 11:47:32.582 ERROR (MainThread) [homeassistant.components.unifi] Error connecting to the UniFi Network at 192.168.1.65: Error requesting data from https://192.168.1.65:443: Cannot connect to host 192.168.1.65:443 ssl:False [Connect call failed ('192.168.1.65', 443)]

Additional information

No response

home-assistant[bot] commented 1 week 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)

cdavidc commented 1 week ago

I have the same problem with my local Unifi controller (I am not sure for how long, sorry...).

Looking at a nework capture:

I had a quick look at the Unifi controller logs on its docker container but could not see any error unfortunately.

noozo commented 5 days ago

+1 on this

tiagonmas commented 5 days ago

screengrab of the error. SSL should not be validated image

nickgarrard commented 5 days ago

+1

78andyp commented 5 days ago

I had to change port to 8443.

Thijxx commented 5 days ago

Same issue Tried ip, host, all ports, all combinations

Super frustrating that the input field are demented forcing me to fill in the username and password every single time I try to use this integration