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.39k stars 84 forks source link

Why does UP Floodlight require full admin rights? #1074

Closed nielsth closed 1 month ago

nielsth commented 1 month ago

Homebridge UniFi Protect Version

6.22

Homebridge Platform and OS

macOS Sanoma 14.4.1 (23E224)

Homebridge Version

1.8.2

Node Version

18.19

UniFi OS Version

3.2.12

UniFi Protect Controller Version

3.0.26

Describe the problem

When using a custom role for the HBUP user on UniFi OS with full management permission enabled for the UP Floodlight, Homebridge reports the following error.

Working:

Screenshot 2024-05-22 at 21 43 12

Not working:

Screenshot 2024-05-22 at 21 43 35

The floodlight can be controlled when the user is updated to the super admin role.

Shouldn't full control over just the floodlight be enough to control it? In other words, is this a bug?

Homebridge HBUP JSON configuration

{
    "controllers": [
        {
            "address": "192.168.1.8",
            "password": "XXX",
            "username": "hb_protect"
        }
    ],
    "name": "UniFi Protect",
    "options": [
        "Enable.Device.StatusLed.6022329DDE71"
    ],
    "platform": "UniFi Protect"
}

Relevant log output

Floodlight Terrace [UP FloodLight]: Unable to turn the light on. Please ensure this username has the Administrator role in UniFi Protect

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

hjdhjd commented 1 month ago

It is what it is. Take it up with Ubiquiti. :smile:

It is not a bug in HBUP.

Best of luck.

github-actions[bot] commented 1 month 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.