Custom Component: Unifi Protect

Crossing Line Detection - Available?

Hi. I’m hoping that someone can point me in the correct direction please. There is a Smart Detection "Cross Line’’ capability in UniFi Protect, where a smart (person/vehicle/animal) detection is made if crossing a line created in the protect camera config.

I’d like to get this Cross Line detection in Home Assistant, separate from other smart/person/vehicle detection (i.e. to know that the vehicle is inside the driveway, rather than outside). Is this possible please?

Note: I do have smart detections working in Home Assistant already, I’m hoping there is a way to separate Cross Line detections from general smart detections. I have searched around for info on this, but can’t seem to find …

Thanks

@AngellusMortis
Are you actively deleting all your posts on the forum or has your account been compromised?

Either way it doesn’t look good.
Tagging @cogneato @frenck @petro as well just in case something fishy is going on.

1 Like

Yep.

Thanks for confirming. Does this mean that the UniFi Protect integration is likely to go unsupported soon?

Probably. We are hoping someone picks it up.

1 Like

If anyone else was confused about the state of the latest UniFi versions and the compatibility with the HA integration, this GitHub PR should help clear things up.

TL;DR:
UniFi OS 4.x : Incompatible
UniFi Protect 4.x: Compatible, with caveat

This is also worth a read as it provides some background.

1 Like

I read about the solcast integration maintainer’s quit yesterday, and now this… shame, two integrations I use a lot. I’ve had “interesting” interactions with both, so I’m not surprised to see the behaviours.

In my experience over more years than I care to think about, individual contributors often think they are irreplaceable, but rarely are, once the initial change shock passes.

1 Like

UnifiOS 4.0.6 has now gone to Official release status.

I think though that this is now ‘compatible’ given work done in recent weeks - can anyone confirm?

I upgraded my UDM Pro to UnifiOS 4.0.6 about 12 hours ago and the Unifi Protect integration on HA Core 2024.6.4 is working fine.

2 Likes

Mine was also working fine with UnifiOS4.0.6 until I updated Home Assistant to 2024.7.1 and now all my object, person, and vehicle detections are unavailable. It’s broken so many of my automations. I used all my cameras as sensors for lighting. The whole integration is useless now. I think I’ll have to roll back.

Mine is working OK with UnifiOS 4.0.6 and 2024.7.1. All entities are available working.

Yes. Sorry I jumped the gun. I reloaded the integration and all came back online.

Hoping someone can help me out here. I want to use the Unifi cameras ability to AI detect smoke detectors to set up a smoke detector in home assistant.

Background: I have a bunch of G5 Flex cameras outside. The only camera inside is one G4 Instant in my young child’s room.

In the Unifi interface, both the G5 Flex and G4 Instant can detect smoke/CO alarms:

But when I look in home assistant, only the Flex has access to the smoke/CO alarm signals:

Not super useful to me, since all my Flex’s are outdoors-- only the Instant is indoors.

Is there any way to get the Instant’s Smoke/CO alarm functionality into HA?

Did you ever find a solution of using downloader.download_file to download the thumbnail?