Ubiquiti UniFi Protect - Motion Sensor state/status

Hello,
I am brand new to Homey… My first Advanced flow challenge is to create a flow that turns on the entry lights when motion detected there and then off after x minutes. I am using a UniFi Protect Sensor, motion and LUX enabled. The motion alarm has gone off on the sensor, 4 hours ago when I first installed it and it is still flashing “YES Motion Alarm”. There seems to be TWO motion icons, one reports motion with a date and when I hover the mouse over, indicates 4 hrs ago. The other reports Last motion but time. THIS one is realtime and reports immediately when there is motion.

Despite all this, if there IS motion, the lights do not turn on. I tried a flow where “If motion, dim to 100%” Trying in zone active…" as well but no luck. Anyone have experience working with the motion sensor? Any help appreciated.

Start by making the simplest flow and excluding all possible errors:
WHEN motion detected THEN make a timeline notification.
If that works, extend the flow step by step.

2 Likes

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

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.

1 Like

I have re-asked the question in the appropriate topic section. Thank you for the suggestions and advice here.

Better, use Simple Log log cards:
The timeline process can get rate limited (= shut down) w/o any notification whatsoever.
Can result in many new gray hairs :stuck_out_tongue_winking_eye:

Sorry, I don’t understand what you wrote

In that case you would notice a lot of messages in the time line. And it is making things complexer as you can see by the response of the topic starter :disappointed_relieved:
So it is even better to start with simple flows, so see the difference between triggers/events and conditions. In Homey terms in WHEN and AND carts. Quite basic but essential principles to know.
Some how advanced flows seem very attractive to novice Homey users. Probably because it does not look like programming, but it is. A pitfall.

1 Like

Appreciate the feedback. It is definitely not programming. The issue isn’t that I am a novice. It is that the motion alarm NEVER stops… still going 8 hours later. Yes, I get that my initial post here looked bad… I fixed it quickly here on my end.

I put the Hue motion sensor back in the entryway and it uses a “motion alarm” as well but when motion stops the alarm turns off. The UniFi Protect sensor integration with Homey just simply does not work. A pitfall of community or open source I suppose. Always bugs, always something broken.

Here is the flow I have now using the Hue motion sensor and it works fine.

In the Advanced Settings there might be a “Time out to reset sensor value” which you can set for example to 1 minute.

Please don’t use the build-in delay card to turn off the lights. Instead of The motion alarm turned off in combination with the build-in delay card, please use the flow card The zone is inactive for 2 minutesTurn All Lights off.
In this post I tried to explain the reason, why the build-in delay card can lead to an unwanted behavior. It’s just in German, but with a translator I guess it will be understandable. If not, just ask.

2 Likes