# \[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:** 1\
**Showing post:** 387

<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)

---

_[View the full topic](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966)._
