Custom Component: Unifi Protect

An exception has been made so we will be allowed to keep our existing domain. It sounds like plans for making migrations for domain names in the future.

6 Likes

Is there no longer a way to disable the infrareds? When I enable privacy mode the IR is still on so visitors starting over at my house get an impression that the cameras are on and recording.

Iā€™ve got infrared mode as a list on a G4 bullet.

1 Like

So do I :see_no_evil:

I was looking for a toggle and completely missed this. Sorry, and thanks :slight_smile:

The toggle was removed. In 0.10, I think? In favor of the select.

1 Like

When enabling realtime metrics and it says will increase cpu, is that CPU on the device running Protect or is that the CPU running Home Assistant?

Home Assistant. It just makes it process all of the Websocket messages from UniFi Protect instead of filtering a ton of them out. Processing the messages takes CPU.

Thanks so much! I have plenty of cpu to spare on my HA install. Hoping this helps with automations I running off person detections from my G4 cameras. They are good but seem to have a couple of seconds of lag.

Oh yeah one more thing, I have cameras that I have removed from protect yet reloading/restarting the protect integration doesnt seem to remove them? Known?

As @AngellusMortis wrote another place in this thread:

If you delete the Integration and re-add it, they will be gone.

I have everything installed am getting notifications with snapshots sent to the iOs app, but I get no actions. Not sure what I am doing wrong.

Regrading the HACS Repo (post 2022.2.0)

The HACS repo and HACS version of the integration is now deprecated following the release of 2022.2.0. The HACS version and repo will stay around until at least the 2022.4.0 release of HA. Please follow the migration instructions to get onto the HA core version before that time.

Reporting Issues

We have disable reporting issues to the HACS Github repo for the unifiprotect integration. If you have an issue you would like to report for the unifiprotect integration, please make you are running the HA core version of the integration provided by 2022.2.0 or new and then report your issue on the HA core repo.

If you would still like to discuss the HACS version of the unifiprotect integration, feel free to use the dicussions section or the HA Community forums thread.

3 Likes

Posting this in case anyone else has the same problem I did, I tried the upgrade 3 times and on each occasion, I needed to reconfigure Protect from scratch. Worked out I misunderstood the instructions. Point 2 tells you to ā€™ Remove your HACS unifiprotect integrationā€™, you need to remove it from HACS not from ā€˜Integrationsā€™ :slight_smile:

1 Like

Instructions updated everything. Thanks for pointing out the confusion.

I should have said, migration was flawless. Thank you so much to everyone who has been involved in both the creation of the Custom Component and the work in porting it over to core. Amazing work!

6 Likes

Looks like Iā€™m in a bit of bother here.

I already updated to Home Assistant 2022.2.5 and now I see the Protect is depreciated in HACS and moved to core. The instructions clearly say:

" You must remove the HACS integration efore upgrading to 2022.2.0 first to prevent a conflicting version of pyunifiprotect from being installed."

So where does that leave me? How to proceed?

I donā€™t mind clean deleting and reinstalling if needs must, as Iā€™m currently only using the integration for the G4-Doorbell in one automation. I just need it to work.

Cheers!

Delete config/deps/pyunifiprotect to remove the conflicting dep. Then restart HA.

And make sure you also remove the HACS version before restarting as well. If you are coming from a version older then 0.11.x. you will need to rollback HA to 2021.12 and upgrade to at least 0.11 (preferably 0.12) test everything and then upgrade to 2022.2.

Since you missed the deprecated notice, please make sure you also review the 0.11.0 patchnotes as a lot of things were deprecated and removed for the HA core version.

1 Like

Thanks for the tips, just getting around to this point now. So Iā€™m on 2022.2.5 as you know, and Iā€™m now running HACS Protect version v0.12.0 (I upgraded from v0.11.4 as per instruction).

I donā€™t appear have any pyunifiprotect file in the deps directory (nothing in there in fact). I also did a search for the pyunifiprotect file $ find . -name "pyunifiprotect" , but didnā€™t return anything either.

I am in the same boat as you. I upgraded before deleting the HACS integration. The integration works, however, the ā€˜personā€™ detection doesnā€™t seem to be functioning.

On the Unifi app, I am getting accurate ā€˜personā€™ smart alerts, however, the object_detection sensor in the official integration doesnā€™t seem to be pulling in. Any thoughts?

Not often, but sometimes, I get notifications of movement on one of my outdoor G4s without Unifi showing anything in their app. So I get false alerts often (maybe always) with the object detected as ā€œNoneā€ and no thumbnail attached.

Any idea why that might happen?