Throttling API calls due to errors with the 10 previous attempts. I'll retry again in 5 minutes.
**Describe The Problem:**
[31/10/2022, 12:57:44] [UniFi Protect] 10.0.2.2: Throttling API calls due to errors with the 10 previous attempts. I'll retry again in 5 minutes.
[31/10/2022, 13:02:44] [UniFi Protect] 10.0.2.2: Resuming connectivity to the UniFi Protect API after throttling for 5 minutes.
[31/10/2022, 13:03:15] [UniFi Protect] 10.0.2.2: Throttling API calls due to errors with the 10 previous attempts. I'll retry again in 5 minutes.

I have created new admin users, both local and Unifi accounts. I have uninstalled and reinstalled the plugin. I have re-written the config multiple times. I have restarted both the UDM-Pro and UNVR. All OS updates have been applied on my Ubiquiti equipment as well as the Raspberry Pi running Homebridge. I have removed non-Homebridge or Protect messages from logs presented.

**To Reproduce:**
Start Homebridge with the Unifi Protect plugin installed

**Logs:**
^[[39m 10.0.2.2: Throttling API calls due to errors with the 10 previous attempts. I'll retry again in 5 mi$
^[[37m[31/10/2022, 04:14:09] ^[[39m^[[36m[UniFi Protect]^[[39m 10.0.2.2: Resuming connectivity to the UniFi$
^[[37m[31/10/2022, 04:14:40] ^[[39m^[[36m[UniFi Protect]^[[39m 10.0.2.2: Throttling API calls due to errors$
^[[37m[31/10/2022, 04:19:40] ^[[39m^[[36m[UniFi Protect]^[[39m 10.0.2.2: Resuming connectivity to the UniFi$
^[[37m[31/10/2022, 04:20:11] ^[[39m^[[36m[UniFi Protect]^[[39m 10.0.2.2: Throttling API calls due to errors$
^[[37m[31/10/2022, 04:25:11] ^[[39m^[[36m[UniFi Protect]^[[39m 10.0.2.2: Resuming connectivity to the UniFi$
^[[37m[31/10/2022, 04:25:41] ^[[39m^[[36m[UniFi Protect]^[[39m 10.0.2.2: Throttling API calls due to errors$
^[[37m[31/10/2022, 04:30:41] ^[[39m^[[36m[UniFi Protect]^[[39m 10.0.2.2: Resuming connectivity to the UniFi$


```
Show the Homebridge logs here.
[31/10/2022, 12:57:06] [HB Supervisor] Starting Homebridge with extra flags: -I
[31/10/2022, 12:57:06] [HB Supervisor] Started Homebridge v1.5.1 with PID: 4402
[31/10/2022, 12:57:07] Loaded config.json with 6 accessories and 7 platforms.
[31/10/2022, 12:57:08] Loaded 44 cached accessories from cachedAccessories.
[31/10/2022, 12:57:08] ---
[31/10/2022, 12:57:10] Loaded plugin: homebridge-config-ui-x@4.50.1
[31/10/2022, 12:57:10] Registering platform 'homebridge-config-ui-x.config'
[31/10/2022, 12:57:12] ---
[31/10/2022, 12:57:13] Loaded plugin: homebridge-unifi-protect@5.5.4
[31/10/2022, 12:57:13] Registering platform 'homebridge-unifi-protect.UniFi Protect'
[31/10/2022, 12:57:13] ---
[31/10/2022, 12:57:13] Loading 7 platforms...
[31/10/2022, 12:57:13] [UniFi Protect] Initializing UniFi Protect platform...
[31/10/2022, 12:57:13] Loading 6 accessories...
Setup Payload:
X-HM://0024E8RLF8WB3
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 000-00-000 │     
    └────────────┘     
                       
[31/10/2022, 12:57:13] Homebridge v1.5.1 (HAP v0.10.4) (Homebridge) is running on port 51683.
[31/10/2022, 12:57:44] [UniFi Protect] 10.0.2.2: Throttling API calls due to errors with the 10 previous attempts. I'll retry again in 5 minutes.
[31/10/2022, 13:02:44] [UniFi Protect] 10.0.2.2: Resuming connectivity to the UniFi Protect API after throttling for 5 minutes.
[31/10/2022, 13:03:15] [UniFi Protect] 10.0.2.2: Throttling API calls due to errors with the 10 previous attempts. I'll retry again in 5 minutes.

**Homebridge Configuration:**
{
    "bridge": {
        "name": "Homebridge",
        "username": "00:00:00:00:00:00",
        "port": 12345,
        "pin": "000-00-000"
    },
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "none",
            "theme": "dark-mode",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "controllers": [
                {
                    "address": "10.0.2.2",
                    "password": "xxxxxxxxx",
                    "username": "Homekit"
                }
            ],
            "platform": "UniFi Protect"
        },
    ],
    "disabledPlugins": []
}

**Screenshots:**
Same as errors posted above and offer no additional value

**Environment:**

* **Homebridge Version:** 1.5.1
* **Node Version:** 16.15.0
* **Homebridge-UniFi-Protect Plugin Version:** 5.5.4
* **UniFi Protect Version:** 2.2.6
* **UniFi Protect Controller Type:** UNVR
* **UniFi Protect Controller Firmware Version:** 2.5.11
* **Apple Device and iOS / macOS / iPadOS / tvOS Version:** Not relevant
* **Operating System and OS Version:** Raspbian GNU/Linux Buster (10)

