#Unable to get unifi protect integration to setup

1 messages · Page 1 of 1 (latest)

sterile fog
#

So this is being discovered in via the UI but I am unable to set it up. I see nothing in the logs about it... just an instant Failed to connect error in the UI. When I goto the dev tools in the browser the response from HA is as follows

{
    "type": "form",
    "flow_id": "01JYW24FXKPHM4C21758G3HFDY",
    "handler": "unifiprotect",
    "data_schema": [
        {
            "type": "string",
            "name": "username",
            "required": true,
            "default": "hass"
        },
        {
            "type": "string",
            "name": "password",
            "required": true
        }
    ],
    "errors": {
        "base": "cannot_connect"
    },
    "description_placeholders": {
        "name": "Dream-Machine-Professional",
        "ip_address": "192.168.120.1",
        "local_user_documentation_url": "https://www.home-assistant.io/integrations/unifiprotect#local-user"
    },
    "last_step": null,
    "preview": null,
    "step_id": "discovery_confirm"
}
#

what I find super strange is there is zero indications of failure in the core logs

haughty orbit
#

so did you create a local user on the Dream Machine Pro?

verbal bluff
#

Enable debug logging and it'll show up in your logs

sterile fog
haughty orbit
#

ok but it needs different permissions, that also configured correctly?

sterile fog
#

but the user I am using has protect full perms and network full perms

#

did find an error in debug

#
2025-06-30 12:20:12.431 DEBUG (MainThread) [homeassistant.components.unifiprotect.config_flow] Request failed: https://7483c2da3d1b043f2e46046db58605d8efdc9.id.ui.direct/proxy/protect/api/bootstrap - Status: 400 - Reason: {'code': 400, 'message': 'Bad Request'}
2025-06-30 12:20:12.434 DEBUG (MainThread) [uiprotect.api] Successfully loaded session from config
2025-06-30 12:20:12.434 DEBUG (MainThread) [uiprotect.api] Request url: https://192.168.120.1/proxy/protect/api/bootstrap
2025-06-30 12:20:12.465 DEBUG (MainThread) [homeassistant.components.unifiprotect.config_flow] Request failed: https://192.168.120.1/proxy/protect/api/bootstrap - Status: 400 - Reason: {'code': 400, 'message': 'Bad Request'}
neat dove
#

I’m having the same issue. I know the IP & login creds are correct. So I’m left with asking what Port handles the login request on the gateway?