# Ubiquiti UniFi Protect - Motion Sensor state/status

**URL:** <https://community.homey.app/t/ubiquiti-unifi-protect-motion-sensor-state-status/114854>\
**Category:** Apps\
**Tags:** advancedflow\
**Created:** [August 23, 2024, 3:17am UTC](https://community.homey.app/t/ubiquiti-unifi-protect-motion-sensor-state-status/114854 "2024-08-23T03:17:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 23, 2024, 10:18am UTC](https://community.homey.app/t/ubiquiti-unifi-protect-motion-sensor-state-status/114854/3 "2024-08-23T10:18:26Z")

</div>

If the Motion Sensor didn’t cancel the motion detection 4 hours after last motion detection, then there seems to be a hardware problem, a problem with the Ubiquiti UniFi Protect App or some configurations of the MS are not correct. But because I don’t use this MS nor the UUP App, I don’t have any experiences with this and can’t give you some suggestions.  
But in my opinion, these are the first things you should check.  
If there are issues with the UUP App or you need some help regarding the UUP App, please continue in the corresponding topic: → [[APP][Pro] Ubiquiti UniFi Protect](https://community.homey.app/t/app-pro-ubiquiti-unifi-protect/42966)

The second issue is, that your Advanced Flow is created incorrectly.  
The used flow card _ **The zone IS active** _ is an _ **And…** _ flow card or also called _ **Condition** _ flow card.  
Every flow **must** begin with a _ **When…** _ flow card, also called _ **Trigger** _ flow card. So something must happen or change to start a flow.  
In your case the first flow card must be one of these here: _ **The motion alarm turned on** _ or _ **The zone BECAME active** _.  
To ensure that the light will be switched off again when no movement is longer detected, you need at least a second flow with an other _ **When…** _ resp. _ **Trigger** _ flow card: _ **The motion alarm turned off** _, _ **The zone became inactive** _ or _ **The zone became inactive since x minutes** _.

---

_[View the full topic](https://community.homey.app/t/ubiquiti-unifi-protect-motion-sensor-state-status/114854)._
