Custom Component: Unifi Protect

Hey, what blueprint are you referring to?
I would like to test that as well, so I can get the short video clip instead of a static image.

Thanks

Have a look here:

This plugin is awesome! I only seem to have one minor issue… for some reason when I open Homekit and view the Unifi Protect camera stream over there it doesn’t render the livestream (it does render the preview and works in home assistant ootb). Does anyone have a clue what I misconfigured here?

edit: nvm I forgot to active my rtsp stream :sweat_smile:

Is there a way to get ID of the latest event for a camera? or indicate that I want to get the most recent one?

Another question. When I do a camera snapshot, it seems that it doesn’t give me a snapshot taken at the moment I call for it, but gets something that was taken several seconds ago. Is there a way to get a current snapshot?

Having a couple of issues for some time now.

  1. When the camera recording mode is set to “Never” the motion sensor is “unavailable”, but when set to either “Always” or “Detections”, they appear as available.

image

image

I use the inbuilt motion sensors for other automations and was wondering if there is a workaround? (besides using another form of sensor)

  1. There appears to be an obvious lag (~ +14 seconds) between the real time stream and what appears within HA. All my cameras are ethernet based. The “Pre-load” stream is enabled.

Thanks

Have a look at using go2rtc add-on, it will reduce the lag to near zero

2 Likes

Can someone advise on how to pull Smart Detections thumbnails from media into automations? Not upon event but for let’s say last 24hrs? I can see them in media but have not found any ways to access the images form automations.

1 Like

Hey guys, I am having a terrible time getting the G4 Doorbell Bro integrated into HomeKit. No matter what I do I cannot get the video to show up there. I have it in HA. I have it exposed to HomeKit, I have tried the setting about the H.264 setting. I have enabled RTSP in the UI Settings. Nothing seems to work?

Big thank you. Very useful integration. I love the notification feature of protect when I am away. It shows me instantly the cam and I can view the clip when someone approaches my house. Is there a way to turn off/on notification … e.g. when at home turn it off … when away … turn it on via an HA automation?

Currently having an issue,

When i create a picture component for my cameras and click “Live” View. Cameras load up fine and work fine. However, after a random amount of time. The feed freezes and i get an error “Stream Never Started”. What could be causing this and is there any fix?

If i put the component in “Auto” Mode and then only view the cameras by clicking on them i do not seem to have this issue (i have just enabled it so maybe i will just going to leave it for a bit and will let you know).

Any advice is appreciated!

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.