# \[APP\]\[Pro\] Ubiquiti UniFi Protect

**URL:** <https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966>\
**Category:** Apps\
**Tags:** app, camera\
**Created:** [February 14, 2021, 9:51am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966 "2021-02-14T09:51:40Z")\
**Posts on this page:** 20\
**Page:** 20

<div class="post-metadata">

**Author:** ![SachaH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sachah/32/30357_2.png) [@SachaH](https://community.homey.app/u/SachaH)\
**Post date:** [March 27, 2024, 7:12pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/385 "2024-03-27T19:12:39Z")

</div>

I also have issues for a few months now.

I have a advanced flow that sets the recording mode for my camera’s if i’m away and when i’m coming home:

 ![Homey Pro](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/8/48267f6e47965a1d826a5a31f9b57513540aa525.png)  
However, the recording mode is not set. It does not matter what I try.  
I even removed the camera devices from Homey, re-added them and modified and even recreated flows to be sure I did everything possible.

I use a _local only_ account with _View Only_ rights from day one and have no issues connecting the app with my UCK G2 Plus. The ‘Use camera snapshot’ option is also unchecked within the app settings. If I look at the camera device settings, the camera screenshots work perfectly.

My UCK G2 Plus is currently running on version 3.2.12 with Protect on 3.0.22.

---

<div class="post-metadata">

**Author:** ![Drakennest](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/drakennest/32/85081_2.png) [@Drakennest](https://community.homey.app/u/Drakennest)\
**Post date:** [April 1, 2024, 8:11pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/386 "2024-04-01T20:11:12Z")

</div>

HI there,

First post, and I think I’ve searched enough to feel comfortable to post. Help if I could have done better 🙂

Unifi Protect G4 has 3 actions: motion alarm turned on (start), motion alarm is on (continue) and, motion detection off. This is connected to a Shelly for the outdoor lamp, very basic.

I want the lamp to go off after 10 seconds of no motion, but also continue to stay on when there is motion for, lets say 30 seconds.

I need to start the flow with a “motion alarm turned on”. I experimented with several turn off options, in delay, or with a new flow. But if I have continuous motion, the lamp does not stay on.

Any suggestion, or reference article? Thanks!

 ![Screenshot 2024-04-01 221015](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/e/de835982b30da2b4a414757ecad43dc05b24106a.jpeg)

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [April 1, 2024, 8:44pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/387 "2024-04-01T20:44:38Z")

</div>

> [@Drakennest](#):
>
> Unifi Protect G4 has 3 actions: motion alarm turned on (start), motion alarm is on (continue) and, motion detection off.

When I read [Ubiquiti UniFi Protect App voor Homey | Homey](https://homey.app/nl-nl/app/com.ubnt.unifiprotect/Ubiquiti-UniFi-Protect/) there are 2 triggers and 1 condition: 2 WHEN cards and 1 AND card.  
The simplest solution is:  
WHEN zone becomes active THEN switch on the light

WHEN zone is inactive for 3 minutes switch off the light

Another solution is using a timer, and 3 flows:

1. one to switch on the light when motion is detected the first time
2. one to reset the timer when motion is detected again
3. and one to switch off the light when timer ends.

See [[APP] Fibaro - Your home is your castle (by Athom) - #876 by Peter\_Kawa](https://community.homey.app/t/app-fibaro-your-home-is-your-castle-by-athom/362/876)

---

<div class="post-metadata">

**Author:** ![Drakennest](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/drakennest/32/85081_2.png) [@Drakennest](https://community.homey.app/u/Drakennest)\
**Post date:** [April 1, 2024, 9:05pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/388 "2024-04-01T21:05:24Z")

</div>

Gonna work on this! Will let you know and thanks for the quick feedback.

---

<div class="post-metadata">

**Author:** ![Drakennest](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/drakennest/32/85081_2.png) [@Drakennest](https://community.homey.app/u/Drakennest)\
**Post date:** [April 1, 2024, 9:14pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/389 "2024-04-01T21:14:49Z")

</div>

By the way… Turning it on for 3 min is to easy 😉 and I think that still if someone stays there for 3 min, it will turn off

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [April 1, 2024, 9:43pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/390 "2024-04-01T21:43:13Z")

</div>

Good luck experimenting. The general idea of these scripts is that the light does not switch on and off with every motion alarm on and off. But that the light stays on during a series of on-off alarms from the motion sensor, until the last off alarm.

---

<div class="post-metadata">

**Author:** ![tweaqie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tweaqie/32/13906_2.png) [@tweaqie](https://community.homey.app/u/tweaqie)\
**Post date:** [April 22, 2024, 8:48pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/391 "2024-04-22T20:48:06Z")

</div>

Just wanted to give an update for people that get stuck with the '“Failed to GET url:/proxy/protect/api/cameras?acessKey=null (status code: 401)” problem.

If you didnt read the instructions here then you could follow the steps described here (under ‘LOCAL USER’):

> **[UniFi Protect](https://www.home-assistant.io/integrations/unifiprotect/)**
>
> Instructions on how to configure the Ubiquiti UniFi Protect integration.

I installed a AI Pro today using these steps; works to get smart notifcations.

**Update**  
To get the snapshots working you need to enable ‘Anonymous Snapshot’:

1. First of all get into Protect UI [https://protect.ui.com/](https://protect.ui.com/)
2. Select NVR you’d like to use
3. On left bottom corner click the “wheel”
4. Click the Advanced
5. On the right side, you’ll see Device password, click REVEAL
6. Copy the password
7. Now connect to the Camera IP through https, e.g. [https://your.camera.ip.address](https://your.camera.ip.address/)
8. Login with username ubnt and password from point number 6)
9. Don’t worry and click through, keep it in Unifi Video mode - they’ll stay under the NVR and everything will work as usual
10. Once you go through the setup - Enable the “Anonymous Snapshot” on the camera

I’m sure this is all writen down here somewere, but I’m new to this and I had to dig a little so you can use this as the summery 🙂

---

<div class="post-metadata">

**Author:** ![NalaSimba](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nalasimba/32/34929_2.png) [@NalaSimba](https://community.homey.app/u/NalaSimba)\
**Post date:** [April 24, 2024, 3:04pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/392 "2024-04-24T15:04:43Z")

</div>

Hello, I would like to reintegrate Unifi Protect into homey.  
Unfortunately, I always get the error message INVALID

I enter:

IP: 192.168.40.89(Cloud Key gen2) (but also tried with Unifi Recorder 192.168.40.43  
Port:443

user: personal user and password

alternatively I tried admin as user and the Unifi recovery code as password as well as ubnt as user and the recovery code as password. (So you can watch every camera live with IP and user & password.

But why does this not work?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/6/266551b5aa0154f3ffd3b425f236836c35314e9e.png)

---

<div class="post-metadata">

**Author:** ![NalaSimba](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nalasimba/32/34929_2.png) [@NalaSimba](https://community.homey.app/u/NalaSimba)\
**Post date:** [April 25, 2024, 6:06am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/393 "2024-04-25T06:06:38Z")

</div>

Can anyone help?

---

<div class="post-metadata">

**Author:** ![Fabien\_BOCH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fabien_boch/32/79698_2.png) [@Fabien\_BOCH](https://community.homey.app/u/Fabien_BOCH)\
**Post date:** [April 28, 2024, 4:51pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/394 "2024-04-28T16:51:05Z")

</div>

Hello everyone,  
I’ve been using Homey Pro for a few months now and I was very happy to use the Unifi Protect integration for Homey with my UDM Pro. A few weeks ago I added a UNVR Pro and it no longer works. Can anyone help me?  
Here is the message I get when the status is ‘connected’ in the plugin settings.  
Thank you in advance for your help.

 ![Capture d’écran](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/e/5e2deb3df97e54d9a10e5a170c17d7a600fc456c.png)

---

<div class="post-metadata">

**Author:** ![tweaqie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tweaqie/32/13906_2.png) [@tweaqie](https://community.homey.app/u/tweaqie)\
**Post date:** [May 3, 2024, 8:59pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/395 "2024-05-03T20:59:00Z")

</div>

Maybe try the guide above in which I refer to the 401 error?

---

<div class="post-metadata">

**Author:** ![tweaqie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tweaqie/32/13906_2.png) [@tweaqie](https://community.homey.app/u/tweaqie)\
**Post date:** [May 3, 2024, 9:00pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/396 "2024-05-03T21:00:58Z")

</div>

Try connecting locally to your unifi protect first (not just the camera) without homey if that all works well use the credentials for homey

---

<div class="post-metadata">

**Author:** ![NalaSimba](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nalasimba/32/34929_2.png) [@NalaSimba](https://community.homey.app/u/NalaSimba)\
**Post date:** [May 6, 2024, 12:15pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/397 "2024-05-06T12:15:04Z")

</div>

> [@tweaqie](#):
>
> e guide above in which I refer to the 401 error?

i found the misstake. it was in the firewall

---

<div class="post-metadata">

**Author:** ![NalaSimba](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nalasimba/32/34929_2.png) [@NalaSimba](https://community.homey.app/u/NalaSimba)\
**Post date:** [May 7, 2024, 5:08am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/398 "2024-05-07T05:08:28Z")

</div>

Hallo zusammen, ich habe nun homey und Unifi erfolgreich gekoppelt. Wenn ich nun einen Flow anlege, dass wenn Unifi Kamera “Lounge” eine Bewegung erkannt hat, dann Licht an.

Leider funktioniert dies nicht. Der Licht Shelly schaltet und funktioniert auch im Test.

Leider wird die “Bewegung” nicht erkannt. Also in unifi wird die Bewegung erkannt, jedoch von homey nicht verarbeitet. Woran kann das liegen?

Hello everyone, I have now successfully paired homey and Unifi. If I now create a flow that when Unifi camera “Lounge” has detected a movement, then light on.

Unfortunately this does not work. The light shelly switches and also works in the test.

Unfortunately, the “movement” is not recognised. So the movement is recognised in unifi, but not processed by homey. What could be the reason for this?

Translated with [DeepL.com](http://DeepL.com) (free version)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/4/d4a59ad2eaf6d9e4bad1515531d6ca8f1e241bcf.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/c/bc5c25332ddf9ac3f85a3701d0bbe72a41bb90ff.jpeg)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/0/704be7ab5ec249b1df57c311cb7d700f80ccc275.jpeg)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/0/b0272e6c0c6ca405a283cdaaaad9cc98d7601af4.png)

---

<div class="post-metadata">

**Author:** ![Panser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/panser/32/12508_2.png) [@Panser](https://community.homey.app/u/Panser)\
**Post date:** [May 16, 2024, 6:57am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/400 "2024-05-16T06:57:04Z")

</div>

Hi.

Will there be added support for MFA authentication?  
From July 22, 2024, **multi-factor authentication (MFA) will be mandatory for all Ubiquiti Accounts.**

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [May 16, 2024, 12:29pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/401 "2024-05-16T12:29:21Z")

</div>

That would apply to the [ui.com](http://ui.com) accounts. For this app you will use local account and that I would assume not to be affected.

---

<div class="post-metadata">

**Author:** ![Panser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/panser/32/12508_2.png) [@Panser](https://community.homey.app/u/Panser)\
**Post date:** [May 16, 2024, 1:03pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/402 "2024-05-16T13:03:36Z")

</div>

The App stopped working (connection failure) once I enabled MFA. When I disabled it again, the App were able to login again…

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [May 16, 2024, 1:48pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/403 "2024-05-16T13:48:10Z")

</div>

And did you create an local account on your Unifi Controller to be used only by the app as instructed in the first post. You won’t need MFA for that.

Here is some good instruction how to setup local only accounts.

> **[Using the UniFi API? Switch to a local admin account asap](https://artofwifi.net/blog/important-update-for-all-unifi-api-users-switch-to-local-admin-accounts-before-july-2024)**
>
> Ubiquiti mandates MFA for UniFi cloud accounts by July 2024

---

<div class="post-metadata">

**Author:** ![Panser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/panser/32/12508_2.png) [@Panser](https://community.homey.app/u/Panser)\
**Post date:** [May 16, 2024, 2:19pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/404 "2024-05-16T14:19:38Z")

</div>

Thanks a lot. I was not aware that it was possible to add a local account. Thanks again, it worked! 🙂

---

<div class="post-metadata">

**Author:** ![SachaH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sachah/32/30357_2.png) [@SachaH](https://community.homey.app/u/SachaH)\
**Post date:** [May 29, 2024, 6:15pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/405 "2024-05-29T18:15:26Z")

</div>

Hi everyone, regarding to my previous post: [[APP][Pro] Ubiquiti UniFi Protect - #385 by SachaH](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966/385)

I’m still having the same issues. Whatever I try, setting the recording mode is not picked up by UniFi Protect.

Is there anybody or maybe @ObelixNL to help me out with this?

Update @01-06:  
Found a fix for this. The local account needs ‘Full Management’ rights for Protect to set recording modes. I looked over it 😝

[Previous page](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966.md?page=19)

[Next page](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966.md?page=21)
