hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.45k stars 93 forks source link

Homebridge Unifi Protect app is not logging in #1056

Closed cheltboy closed 6 months ago

cheltboy commented 6 months ago

Homebridge UniFi Protect Version

6.20.0

Homebridge Platform and OS

Raspberry Pi - Homebridge

Homebridge Version

1.7.0

Node Version

18.16.0

UniFi OS Version

3.2.12

UniFi Protect Controller Version

3.0.26

Describe the problem

Homebridge Unifi Protect app won't log into the controller - always shows error message

Homebridge HBUP JSON configuration

{
    "controllers": [
        {
            "address": "192.168.0.5",
            "password": "REDACTED",
            "username": "REDACTED"
        }
    ],
    "name": "UniFi Protect",
    "platform": "UniFi Protect"
}

Relevant log output

[06/04/2024, 15:53:36] [Homebridge UI] [homebridge-unifi-protect] Incoming Request: /getDevices
[06/04/2024, 15:53:36] [Homebridge UI] [homebridge-unifi-protect] (node:23387) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version.
(Use `node --trace-deprecation ...` to show where the warning was created)
[06/04/2024, 15:53:37] [Homebridge UI] [homebridge-unifi-protect] 192.168.0.5: API error: 499 - %s
[06/04/2024, 15:53:38] [Homebridge UI] [homebridge-unifi-protect] Incoming Request: /getErrorMessage
[06/04/2024, 15:53:44] [UniFi Protect] 192.168.0.5: API error: 499 - 
[06/04/2024, 15:53:55] [UniFi Protect] 192.168.0.5: API error: 499 -

Acknowledgment that you are only running UniFi OS and UniFi Protect releases from the Ubiquiti Official release channel

Blkcheech commented 6 months ago

This error is due to MFA being enabled within Unifi account. Once this is enabled, you can no longer log in. I just submitted an enhancement to prompt for the MFA code after logging in.

hjdhjd commented 6 months ago

This is not a bug...you should use a local account for HBUP, as stated in the documentation.

github-actions[bot] commented 5 months ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.