Unifi Protect Raw Detections Data

I have 22 cameras in my unifi protect system. I was snooping on the websocket api for detections and discovered that the boundaries of detected objects like vehicles and people are readily accessible.

I would like to have access to this data alongside the binary sensors for people and vehicle detections on supported devices in home assistant, so I can use automations to limit notifications for people and vehicles to specific boundaries of the video. For example, I want unifi protect to store people detections for the entire view of my camera, but I only want home assistant to send me a notification when a person is detected in my yard.

This would be very easy to do if the json for the detections was provided as an attribute on binary sensors for detections.

Another way would be to provide the data as an event.

(post deleted by author)