Custom Component: Unifi Protect

I’ve had this integration running great for about a year now, but lost a connection today and can’t seem to get it back. I’ve since tried reinstalling the integration and rebooting my Unifi hardware, but no luck.

I can still access my Unifi Protect services locally, but the integration doesn’t seem to like that IP. I keep getting “Error retrieving data from Unifi Protect.”

Any thoughts?

Check that the local user you have setup for accessing UniFi Protect is still active, and has admin rights. It need to look like the picture below. I have experienced cases where the local users somehow got disabled after a Protect upgrade.

You could also try to enable debug for the Integration and maybe also update to the latest Beta version 09.1-beta1, which improves error logging.

Yeah, verified my local user is setup correctly. I also tried to disable 2FA from my Unifi account, but no luck on that either. How do I get the beta version? I don’t see any beta releases in the HACS control panel.

@briis Thanks for your outstanding work !
Due to stream delay (aprox 18sec) i would like to use the camera snapshot to send a snapshot to my google home devices. Can someone help me out with this ? Kind of a beginner with these automations. I managed it to work with my mobile.

Thanks in advance

Nope. 10 charrrr

1 Like

@briis I want to thank you greatly for making this. This is a huge help to fully integrate the Unifi system and truly helps the community. I’m loving the controls that are available

Tack så mycket!

1 Like

Thank you so much for this addon it works great but trying to understand one thing and maybe this is a simple easy question someone can answer or maybe not, sorry still kind of new to all this, when I click enable RTSP it seems to just implement it on my cameras threw home assistant that I enable, does anybody know if it is using the secure RTSPS or is it just pulling from the RTSP link? I didn’t specify so trying to understand this or maybe I missed something :frowning:

Nope. 10 charrrr

yep! I was on that boat ready to sail out on using the secure then I jumped over to this addon maybe ill jump back over, for now, I would much prefer the secure link it does indeed work! unless I am missing something…

Nope. 10 charrrr

Looks interesting, and the more secure we can make this the better. Let us do some testing on this, and se if it works.
Could one of you create an issue on Github, to make sure this is added to the list of things to do?

1 Like

Nope. 10 charrrr

1 Like

Is there a way to use my G3 flex camera as a light sensor?
If I for example got the live lux value for each camera that could controll when the lights should turn on in node red.

Nope. 10 charrrr

Thank you for the respons! The “is_dark” status is is not useful since I wan´t to turn on the light quite long before the nightvison on the camera is activated.

Nope. 10 charrrr

UniFi Protect V1.20.0 Beta breaks this Integration

There are some underlying changes in the UniFi Protect API introduced with V1.20.0 Beta, which means that this integration will stop working in some essential areas like changing recording mode etc.

So until there is a release out, that supports these changes I recommend that you do not update to the beta version of 1.20.0. I will post here when this version is supported.

UPDATE:
There is now a Beta 1 of V0.10.0 out, that does support 1.20.0 of UniFi Protect. Please read the CHANGELOG very carefully before upgrading as there are a few Breaking Changes. This release is only for people running UniFi Protect V1.20.0 or later. Do not try to upgrade if you are not on that release or the Integration will not function correctly.
If you have Beta releases enabled in HACS, it should show up there. If beta releases are not enabled, just click Reinstall from the three dots in the lower right corner and then you can enable it. (This is on the UniFi Protect Integration in HACS)

UPDATE 2
Beta 3 has just been released with a lot of changes and new stuff. Please note, quite a few of these changes are Breaking Changes, so make sure to read the release notes before you upgrade. With the introduction of the new Select and Number entities, we can now move f.ex. 3 switches in to 1 Select entity, and we can make a UI Entity where we previously could only use a Service. Making that transition is the biggest reason for the many breaking changes.

5 Likes

Hey folks,
I currently use frigate, but, seeing as there are snapshots of person and car detection for the cameras and a produced recording/snapshot is it possible to pull them in to HA.

I’m guessing there would be a couple of ways to do it?

  1. Create a camera for snapshot, and a camera for recording (camera.name_recording_latest)
  2. Somehow leverage the media browser in HA to pull in all the snapshots/recordings - however this wouldn’t allow there to always be a latest.

I checked the docs, but couldn’t see anything, but would be cool to cast/PiP someone at the doorbell or if a car pulls up after 10PM or if you’re alarm is armed away and a person is detected send snapshot to cell phone.

Nope. 10 charrrr

1 Like

Can you use the unifiprotect.save_thumbnail_image service ?
That wouldn’t pull the video though