API error: Resuming connectivity to the UniFi Protect API after pausing for 5 minutes.
### Homebridge UniFi Protect Version

v7.1.2

### Homebridge Platform and OS

Synology

### Homebridge Version

3.1.1

### Node Version

v20.9.0

### UniFi OS Version

4.0.6

### UniFi Protect Controller Version

4.1.53

### Describe the problem

I have 10 cameras, latest firmware for unifi, for HomeBridge, etc. I’ve been using it for about a year now, and the cameras always turn off after a few days in HB. The overload turns on the connection and everything works well for a few days. How can this be solved?

<img width="1088" alt="image" src="https://github.com/user-attachments/assets/07731185-7ddc-4276-ac56-6690916449cf">

<img width="371" alt="image" src="https://github.com/user-attachments/assets/45d1b2d2-2ede-4eb2-9066-1064fa63a0c4">

<img width="828" alt="image" src="https://github.com/user-attachments/assets/22e785da-0a66-4f6e-95e8-209ad562824d">

<img width="728" alt="image" src="https://github.com/user-attachments/assets/f40ab551-2acb-4f7e-a4ed-c4b9d92f4a66">

<img width="1092" alt="image" src="https://github.com/user-attachments/assets/b048eb46-6448-4367-a0c5-681c7ad4f242">

### Homebridge HBUP JSON configuration

```json
{
	"bridge": {
		"name": "***************",
		"username": "*****************",
		"port": 51400,
		"pin": "*******************",
		"advertiser": "avahi"
	},
	"accessories": [],
	"platforms": [
		{
			"name": "Config",
			"port": 8581,
			"auth": "form",
			"theme": "auto",
			"tempUnits": "c",
			"lang": "ru",
			"platform": "config"
		},
		{
			"controllers": [
				{
					"address": "**************",
					"password": "*****************",
					"username": "****************"
				}
			],
			"name": "UniFi Protect",
			"options": [
				"Enable.Device.StatusLed.***************",
				"Enable.Video.DynamicBitrate.(****************)",
				"Enable.Video.DynamicBitrate.Switch.******************",
				"Enable.Video.DynamicBitrate.Switch",
				"Enable.Video.Transcode.Hardware.**************",
				"Enable.Video.Transcode.Hardware",
				"Disable.Video.Transcode.***************",
				"Enable.Video.DynamicBitrate",
				"Enable.Device.StatusLed.***************",
				"Enable.Device.SyncName",
				"Disable.Device.***************",
				"Disable.Device.****************"
			],
			"verboseFfmpeg": false,
			"_bridge": {
				"username": "******************",
				"port": 45573
			},
			"platform": "UniFi Protect"
		},
		{
			"mqtt": {
				"base_topic": "zigbee2mqtt",
				"server": "***********************",
				"reject_unauthorized": false,
				"keepalive": 60,
				"version": 4,
				"disable_qos": false
			},
			"defaults": {
				"exclude": false
			},
			"exclude_grouped_devices": false,
			"platform": "zigbee2mqtt"
		},
		{
			"name": "UPS",
			"hosts": [
				{
					"host": "localhost:3493",
					"name": "UPS",
					"username": "**********",
					"password": "***********"
				}
			],
			"platform": "UPS"
		}
	],
	"disabledPlugins": [
		"homebridge-z2m",
		"homebridge-ups"
	]
}
```


### Relevant log output

```shell
Failed to create listener for avahi-daemon server state. The system will not be notified about restarts of avahi-daemon and will therefore stay undiscoverable in those instances. Error message: Error: No such interface found
[8/26/2024, 3:32:29 AM] [UniFi Protect] Using FFmpeg version: 6.0-homebridge-alpine-x86_64-static.
(node:21722) [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)
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Connected to ************ (UniFi Protect 4.0.33 running on UniFi OS 4.0.6).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered nvr: UDM-Pro [UDM Pro] (address: *************** mac: **************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************* mac: ***************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************** mac: *****************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************** mac: ****************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************** mac: **************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************** mac: *****************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************** mac: ***************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************** mac: ***************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G4 Doorbell Pro PoE] (address: ************** mac: ****************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************** mac: *****************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************** mac: *****************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************** mac: ******************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered camera: ****** [G3 Bullet] (address: ************** mac: ****************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Discovered chime: UP Chime PoE [Smart PoE Chime] (address: ************** mac: *****************).
[8/26/2024, 3:32:30 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: Syncing Protect device names to HomeKit.
[8/26/2024, 3:32:30 AM] [UniFi Protect] ****** [G4 Doorbell Pro PoE]: Enabled doorbell message switch: LEAVE PACKAGE AT DOOR.
[8/26/2024, 3:32:30 AM] [UniFi Protect] ****** [G4 Doorbell Pro PoE]: Enabled doorbell message switch: DO NOT DISTURB.
[8/26/2024, 3:32:30 AM] [UniFi Protect] ****** [G4 Doorbell Pro PoE]: Enabled doorbell message switch: **********.
[8/26/2024, 3:32:30 AM] [UniFi Protect] ****** [G4 Doorbell Pro PoE]: Enabled doorbell message switch: ******************.
[8/27/2024, 1:10:26 AM] [Homebridge UI] Running job to cleanup config.json backup files older than 60 days...
[8/27/2024, 3:20:46 AM] [Homebridge UI] Running scheduled instance backup...
[8/27/2024, 3:20:46 AM] [Homebridge UI] Creating temporary backup archive at ********************.tar.gz
[8/28/2024, 1:10:26 AM] [Homebridge UI] Running job to cleanup config.json backup files older than 60 days...
[8/28/2024, 3:20:46 AM] [Homebridge UI] Running scheduled instance backup...
[8/28/2024, 3:20:46 AM] [Homebridge UI] Creating temporary backup archive at **********************.tar.gz
[8/29/2024, 1:10:26 AM] [Homebridge UI] Running job to cleanup config.json backup files older than 60 days...
[8/29/2024, 3:20:46 AM] [Homebridge UI] Running scheduled instance backup...
[8/29/2024, 3:20:46 AM] [Homebridge UI] Creating temporary backup archive at ***************.tar.gz
[8/29/2024, 8:58:49 PM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Connection refused.
[8/29/2024, 8:58:51 PM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Connection refused.
[8/29/2024, 8:58:51 PM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to retrieve the UniFi Protect controller configuration.
[8/29/2024, 8:59:01 PM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Connection refused.
[8/29/2024, 8:59:01 PM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Connection refused.
[8/29/2024, 8:59:01 PM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to retrieve the UniFi Protect controller configuration.
[8/29/2024, 8:59:11 PM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Connection refused.
[8/29/2024, 8:59:11 PM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Connection refused.
[8/29/2024, 8:59:11 PM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to retrieve the UniFi Protect controller configuration.
[8/29/2024, 8:59:21 PM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to parse response from UniFi Protect. Will retry again later.
[8/29/2024, 8:59:22 PM] [UniFi Protect] *********: API error: Error: Unexpected server response: 200
[8/30/2024, 12:37:45 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[8/30/2024, 12:37:45 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[8/30/2024, 12:37:45 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to retrieve the UniFi Protect controller configuration.
[8/30/2024, 12:37:55 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[8/30/2024, 12:37:55 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[8/30/2024, 12:37:55 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to retrieve the UniFi Protect controller configuration.
[8/30/2024, 12:38:05 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[8/30/2024, 12:38:05 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[8/30/2024, 12:38:05 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to retrieve the UniFi Protect controller configuration.
[8/30/2024, 12:38:15 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[8/30/2024, 12:38:15 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to connect to the Protect controller. This is usually temporary and will occur during Protect controller reboots and firmware updates.
[8/30/2024, 12:38:15 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Unable to retrieve the UniFi Protect controller configuration.
[8/30/2024, 12:38:29 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[8/30/2024, 12:38:32 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Protect controller is taking too long to respond to a request. This error can usually be safely ignored.
[8/30/2024, 12:38:42 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Throttling API calls due to errors with the 10 previous attempts. Pausing communication with the Protect controller for 5 minutes.
[8/30/2024, 12:43:42 AM] [UniFi Protect] UDM-Pro [UDM-PRO]: API error: Resuming connectivity to the UniFi Protect API after pausing for 5 minutes.
[8/30/2024, 1:10:26 AM] [Homebridge UI] Running job to cleanup config.json backup files older than 60 days...
[8/30/2024, 3:20:46 AM] [Homebridge UI] Running scheduled instance backup...
[8/30/2024, 3:20:46 AM] [Homebridge UI] Creating temporary backup archive at ***************.tar.gz
[8/31/2024, 1:10:26 AM] [Homebridge UI] Running job to cleanup config.json backup files older than 60 days...
[8/31/2024, 3:20:46 AM] [Homebridge UI] Running scheduled instance backup...
[8/31/2024, 3:20:46 AM] [Homebridge UI] Creating temporary backup archive at ****************.tar.gz
[9/1/2024, 1:10:26 AM] [Homebridge UI] Running job to cleanup config.json backup files older than 60 days...
[9/1/2024, 3:20:46 AM] [Homebridge UI] Running scheduled instance backup...
[9/1/2024, 3:20:46 AM] [Homebridge UI] Creating temporary backup archive at *****************.tar.gz
[9/2/2024, 1:10:26 AM] [Homebridge UI] Running job to cleanup config.json backup files older than 60 days...
[9/2/2024, 3:20:46 AM] [Homebridge UI] Running scheduled instance backup...
[9/2/2024, 3:20:46 AM] [Homebridge UI] Creating temporary backup archive at *****************.tar.gz
[9/3/2024, 1:10:26 AM] [Homebridge UI] Running job to cleanup config.json backup files older than 60 days...
[9/3/2024, 3:20:46 AM] [Homebridge UI] Running scheduled instance backup...
[9/3/2024, 3:20:46 AM] [Homebridge UI] Creating temporary backup archive at ******************.tar.gz
[9/3/2024, 11:24:38 PM] [Homebridge UI] [homebridge-unifi-protect] Incoming Request: /getOptions
[9/3/2024, 11:24:38 PM] [Homebridge UI] [homebridge-unifi-protect] Incoming Request: /getDevices
[9/3/2024, 11:24:38 PM] [Homebridge UI] [homebridge-unifi-protect] (node:5827) [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)
[9/3/2024, 11:24:47 PM] [Homebridge UI] [homebridge-unifi-protect] Incoming Request: /getOptions
[9/3/2024, 11:24:47 PM] [Homebridge UI] [homebridge-unifi-protect] Incoming Request: /getDevices
```


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

- [X] I acknowledge that I am not running any early access / beta firmwares or operating systems from either Ubiquiti or Apple.