UP Sense sensore losses automations randomly.
### Homebridge UniFi Protect Version

v7.8.2

### Homebridge Platform and OS

Rasberry    Raspbian / Debian GNU/Linux Bookworm (12)

### Homebridge Version

v1.8.5

### Node Version

v18.19.0

### UniFi OS Version

v4.0.20

### UniFi Protect Controller Version

v5.0.51

### Describe the problem

I’m using the plugin with UP Sense contact sensors. They operated correctly for a year or two. Following a series of Home app and iOS upgrades a few months ago I found Homekit loosing automations based on these sensors after a few days, as if the sensor is removed from the homebridge cache. After the contact sensor automations are removed, they need to be reconfigured. I updated Protect, homebridge and the plugin the other day, and observe the same behavior, but within a hour instead of days.

I also have a camera and a doorbell that operate without issues. 

### Homebridge HBUP JSON configuration

```json
"bridge": {
        "name": "Homebridge 9EEA",
        "username": "0E:D3:C4:2F:9E:EA",
        "port": 51820,
        "pin": "461-56-436",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config",
            "tempUnits": "f"
        },
        {
            "controllers": [
                {
                    "address": "192.168.1.138",
                    "password": "xxxxx",
                    "username": "xxx"
                }
            ],
            "name": "UniFi Protect",
            "platform": "UniFi Protect"
        },
        {
            "name": "Wemo",
            "mode": "auto",
            "wemoOutlets": [
                {
                    "label": "Wemo920",
                    "serialNumber": "M1BAB133D16920",
                    "showAs": "default"
                }
            ],
            "platform": "Wemo"
        },
        {
            xxx
            xxx
        }
    ]
}
```


### Relevant log output

```shell
[19/11/2024, 12:54:50] [UniFi Protect] CKey [UCK-G2-PLUS]: Connected to 192.168.1.138 (UniFi Protect 5.0.51 running on UniFi OS 4.0.20).
[19/11/2024, 12:54:50] [UniFi Protect] CKey [UCK-G2-PLUS]: Discovered nvr: CKey [UCK G2 Plus] (address: 192.168.1.138 mac: 70A741FD2E79).
[19/11/2024, 12:54:50] [UniFi Protect] CKey [UCK-G2-PLUS]: Discovered camera: G4 Driveway [G4 Instant] (address: 192.168.1.117 mac: 70A7415F8817).
[19/11/2024, 12:54:50] [UniFi Protect] CKey [UCK-G2-PLUS]: Discovered camera: G4 Doorbell Pro [G4 Doorbell Pro] (address: 192.168.1.12 mac: AC8BA90E07EF).
[19/11/2024, 12:54:50] [UniFi Protect] CKey [UCK-G2-PLUS]: Discovered light: FloodLight Driveway [UP FloodLight] (address: 192.168.1.118 mac: 245A4CD0E001).
[19/11/2024, 12:54:50] [UniFi Protect] CKey [UCK-G2-PLUS]: Discovered sensor: Door Garrage Sam [UP Sense] (mac: E438836AB6FE).
[19/11/2024, 12:54:50] [UniFi Protect] CKey [UCK-G2-PLUS]: Discovered sensor: Front Door [UP Sense] (mac: D8B3709AFD44).
[19/11/2024, 12:54:50] [UniFi Protect] CKey [UCK-G2-PLUS]: Discovered sensor: Door Garage Pat [UP Sense] (mac: F4E2C6EABC90).
[19/11/2024, 12:54:50] [UniFi Protect] CKey [UCK-G2-PLUS]: Discovered sensor: Door Basement 2 [UP Sense] (mac: F4E2C6F60885).
[19/11/2024, 12:54:50] [UniFi Protect] CKey [UCK-G2-PLUS]: Discovered sensor: Door Garage Back [UP Sense] (mac: F4E2C6F60837).
[19/11/2024, 12:54:50] [UniFi Protect] Door Garrage Sam [UP Sense]: Enabled sensor: contact.
[19/11/2024, 12:54:50] [UniFi Protect] Front Door [UP Sense]: Enabled sensors: contact, motion sensor.
[19/11/2024, 12:54:50] [UniFi Protect] Door Garage Pat [UP Sense]: Enabled sensor: contact.
[19/11/2024, 12:54:50] [UniFi Protect] Door Basement 2 [UP Sense]: Enabled sensor: contact.
[19/11/2024, 12:54:50] [UniFi Protect] Door Garage Back [UP Sense]: Enabled sensor: contact.
[19/11/2024, 12:54:50] [UniFi Protect] G4 Driveway [G4 Instant]: Disabling hardware-accelerated decoding and transcoding. Adjust the GPU memory configuration on your Raspberry Pi to at least 128 MB to enable it.
[19/11/2024, 12:54:50] [UniFi Protect] G4 Doorbell Pro [G4 Doorbell Pro]: Disabling hardware-accelerated decoding and transcoding. Adjust the GPU memory configuration on your Raspberry Pi to at least 128 MB to enable it.
[19/11/2024, 12:54:50] [UniFi Protect] G4 Doorbell Pro [G4 Doorbell Pro]: Enabled doorbell message switch: LEAVE PACKAGE AT DOOR.
[19/11/2024, 12:54:50] [UniFi Protect] G4 Doorbell Pro [G4 Doorbell Pro]: Enabled doorbell message switch: DO NOT DISTURB.
```


### 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.