Homebrridge Log is saying that homekit has recorded an event but no notification or timeline.
<!-- BUG REPORTS THAT ARE NOT FILLED OUT COMPLETELY WILL BE CLOSED AUTOMATICALLY WITHOUT WARNING AND WILL NOT RECEIVE A RESPONSE. THE FORM IS HERE FOR A REASON. :). -->
<!-- Please ensure you read the documentation before creating a support request, especially the Troubleshooting page. -->
<!-- BUG REPORTS ABOUT BETA VERSIONS OF UNIFI / UBIQUITI FIRMWARE OR EARLY-ACCESS/BETA HARDWARE WILL BE CLOSED WITHOUT A RESPONSE. ALL BETA RELEASES FROM UBIQUITI ARE UNSUPPORTED -->

I can't seem to get my G4 bullet to detect and record vehicles. So I went to look at logs directly after driving in front of the camera and sure enough it acts like everything went okay saying that homekit had recorded the video. But there is no notification or recording on the timeline. I also realized that my G3 instant was doing something similar even though these were natural un forced events, as in logs are saying an event has been recorded but no clip or notification on homekit side. I know that the motion detection is working because "any motion" mode works as intended and I have automations that set off a chime when motion is detected. Both of the cameras are set to notify and record on specific motion and all four options are enabled. I have tried with motion zones enabled and not. Both cameras work very fast when I jump in front of them and trigger a notification from home app that says a person has been detected. Again the logs say that a clip has been recorded after jumping in front of them only this time I actually have a clip in my timeline. I have four different home hubs in my house, an apple tv 4k, home pod, home pod mini, and ipad (though I don't normally keep the hub function enabled on the ipad but have tried to see if it would change the results with no luck). I have tried all of these hubs in turn as the "connected" hub with no change. My default hub is my apple tv because its connected via Ethernet. My homebridge host is also connected vie lan cable. I have tried setting Disable.Motion.SmartDetect, Enable.Motion.SmartDetect, Disable.Motion.SmartDetect.NvrEvents, Enable.Motion.SmartDetect.NvrEvents, Enable.Motion.NvrEvents, Disable.Motion.NvrEvents, Enable.Motion.SmartDetect.Person, Enable.Motion.SmartDetect.Vehicle, Enable.Video.DynamicBitrate, Enable.Video.HKSV.Recording.Only.Low, Disable.Video.Stream.High, Enable.Video.Transcode all in different logical combinations and many on their own even though I know some of them are a default I am just trying to throw shit at the wall to see what would stick. I have also tried turning off smart detect on the unifi controller as well as disabling recording and detection in the home app for affected cameras and re-enabling and restarting cameras. I have tried running the HBUP in child bridge mode as well with no change. I feel I should mention that the cameras mentioned in this issue work perfectly in the protect app even the smart detection features on the G4-Bullet. Also I have tried both the owner login for my controller as well as an administrator account.

_A side note: As well as my current macOS environment listed at the bottom of this issue, I have also ran the same setup, configuration and versions on an ARM based linux machine inside of a podman container that had the same level of functionality and the same exact issue._

**To Reproduce:**
1. Set your G4-Bullet camera to detect and record specific motion in the home app and enable all 4 options.
2. Open homebridge log so as to pinpoint the new logs from your forced motion in the next step.
3. Drive a vehicle within the frame and any applicable detection zones.
4. Look for a notification on your device.
5. Check logs to see if homebridge picked up any event.
6. Check your timeline on the camera to see if the forced event is present.




***Here are the logs following a homebridge reset and a forced motion detection by walking in front of the G4 Bullet. You will see from screenshots that the notification was triggered as well as an even posted to the timeline.***

```[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Connected to the UniFi Protect controller API (address: 192.168.0.1 mac: redacted).
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Connected to the UniFi Protect realtime update events API.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Discovered camera: Front Door [UVC G3 Instant] (address: 192.168.0.106 mac: redacted).
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Discovered camera: Second Floor [UVC G3 Flex] (address: 192.168.0.16 mac: redacted).
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Discovered camera: Back [UVC G4 Bullet] (address: 192.168.0.218 mac: redacted).
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Controller refresh interval set to 10 seconds.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Front Door [UVC G3 Instant]: HomeKit Secure Video support enabled.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Second Floor [UVC G3 Flex]: HomeKit Secure Video support enabled.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: HomeKit Secure Video support enabled.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: Video streaming configured to use only: Low.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: HomeKit Secure Video event recording configured to use only: Low.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Front Door [UVC G3 Instant]: HomeKit Secure Video event recording enabled: 1920x1080@30fps (High), 2000 kbps with a 4 second timeshift buffer.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Front Door [UVC G3 Instant]: HomeKit Secure Video recordings will be no longer than ~10 seconds.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Second Floor [UVC G3 Flex]: HomeKit Secure Video event recording enabled: 1920x1080@25fps (High), 2000 kbps with a 4 second timeshift buffer.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Second Floor [UVC G3 Flex]: HomeKit Secure Video recordings will be no longer than ~10 seconds.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: HomeKit Secure Video event recording enabled: 640x360@24fps (Low), 2000 kbps with a 4 second timeshift buffer.
[4/21/2022, 10:27:50 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: HomeKit Secure Video recordings will be no longer than ~10 seconds.
[4/21/2022, 10:28:55 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: HomeKit Secure Video has recorded a 14 second motion event.
```
![1](https://user-images.githubusercontent.com/71227952/164586591-eb929bfc-4221-4793-bf7c-3586c66d6506.png)
![2](https://user-images.githubusercontent.com/71227952/164586611-c773837a-39e5-4314-8848-5482c86f78e5.png)

***Now here are the logs after forcing a detected event by driving my vehicle in front of the G4 Pro after another homebridge reset (just to keep things a little cleaner). Also below is another screen shot (with the time at top of picture that corelates to the logged motion event in homebridge) of the timeline where you can see the absence of a new event that homebridge said was recorded by homekit at 10:40:02 PM.***

```[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Connected to the UniFi Protect controller API (address: 192.168.0.1 mac: redacted).
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Connected to the UniFi Protect realtime update events API.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Discovered camera: Front Door [UVC G3 Instant] (address: 192.168.0.106 mac: redacted).
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Discovered camera: Second Floor [UVC G3 Flex] (address: 192.168.0.16 mac: redacted).
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Discovered camera: Back [UVC G4 Bullet] (address: 192.168.0.218 mac: redacted).
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO]: Controller refresh interval set to 10 seconds.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Front Door [UVC G3 Instant]: HomeKit Secure Video support enabled.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Second Floor [UVC G3 Flex]: HomeKit Secure Video support enabled.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: HomeKit Secure Video support enabled.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: Video streaming configured to use only: Low.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: HomeKit Secure Video event recording configured to use only: Low.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Front Door [UVC G3 Instant]: HomeKit Secure Video event recording enabled: 1920x1080@30fps (High), 2000 kbps with a 4 second timeshift buffer.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Front Door [UVC G3 Instant]: HomeKit Secure Video recordings will be no longer than ~10 seconds.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Second Floor [UVC G3 Flex]: HomeKit Secure Video event recording enabled: 1920x1080@25fps (High), 2000 kbps with a 4 second timeshift buffer.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Second Floor [UVC G3 Flex]: HomeKit Secure Video recordings will be no longer than ~10 seconds.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: HomeKit Secure Video event recording enabled: 640x360@24fps (Low), 2000 kbps with a 4 second timeshift buffer.
[4/21/2022, 10:39:28 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: HomeKit Secure Video recordings will be no longer than ~10 seconds.
[4/21/2022, 10:40:02 PM] [homebridge-unifi-protect] Dream Machine Pro [UDM-PRO] Back [UVC G4 Bullet]: HomeKit Secure Video has recorded a 14 second motion
```

![3](https://user-images.githubusercontent.com/71227952/164586639-eeedb639-bfd0-4511-b79a-02d474f2c847.png)

**Homebridge Configuration:**

```json
{
            "controllers": [
                {
                    "address": "192.168.0.1",
                    "password": "redacted",
                    "username": "redacted"
                }
            ],
            "options": [
                "Enable.Video.Stream.Only.Low.redacted_mac",
                "Enable.Video.HKSV.Recording.Only.Low.redacted_mac",
                "Enable.Video.HKSV.Recording.MaxDuration.10"
            ],
            "verboseFfmpeg": false,
            "videoProcessor": "/opt/homebrew/Cellar/ffmpeg/5.0.1-with-options_1/bin/ffmpeg",
            "_bridge": {
                "username": "redacted child bridge mac",
                "port": redacted but set to default
            },
            "platform": "UniFi Protect"
```



**Screenshots:**

<!-- If applicable, add screenshots to help explain your problem. -->
![4](https://user-images.githubusercontent.com/71227952/164588060-753a8118-4f4b-40ab-8ea0-9241c66e1159.png)
![5](https://user-images.githubusercontent.com/71227952/164588068-bf643e0d-1a2c-458e-81b6-9ddf3e9a75c9.png)
![6](https://user-images.githubusercontent.com/71227952/164588073-9f6aefb6-902a-4d8c-a023-2d89791bcfc2.png)

**Environment:**

* **Homebridge Version: 1.4.0** <!-- homebridge -V-->
* **Node Version:16.14.2** <!-- node -v -->
* **Homebridge-UniFi-Protect Plugin Version:5.5.0**
* **UniFi Protect Version:1.21.5** <!-- Read the Protect version line from https://unifi-controller/protect/settings -->
* **UniFi Protect Controller Type:UDMP** <!-- UCKgen2+, UDMP, UNVR, etc. -->
* **UniFi Protect Controller Firmware Version:1.11.0** <!-- Read the firmware line from https://unifi-controller/settings/general -->
* **Apple Device and iOS / macOS / iPadOS / tvOS Version: iPhone 12 Pro Max iOS 15.4.1, Apple TV 4K tvOS 15.4.1, Homepod mini 15.4.1, Homepod 15.4.1**<!-- Type of Apple device you're using and associated OS version -->
* **Operating System and OS Version: macOS Monterey 12.3.1** <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker -->

<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
