# Precense and advanced flow with Ubiquiti

**URL:** <https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045>\
**Category:** Flows\
**Tags:** advancedflow\
**Created:** [August 28, 2022, 2:54pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045 "2022-08-28T14:54:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anders\_Green](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_green/32/5127_2.png) [@Anders\_Green](https://community.homey.app/u/Anders_Green)\
**Post date:** [August 28, 2022, 2:54pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/1 "2022-08-28T14:54:02Z")

</div>

Cannot make this flow work. Connected status is working in Homey from wifi.

Seems that all clients needs to be disconected at the same time for it to trigger. Need some help on how I can make it work.

 ![unifi-flow](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0fa23d3c907af5f65f9d3fef1999b648bae8d7af.png)

---

<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 28, 2022, 4:24pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/2 "2022-08-28T16:24:50Z")

</div>

The problem is, that all person have to disconnect at **exactly the same time**. And this will never happen.  
A workaround could look like this:

_ **When…** _  
— Anders disconnected  
_ **And…** _  
— Anette is disconnected  
— Ella is disconnected  
— Liam is disconnected  
_ **Then…** _  
— Push

_ **When…** _  
— Anette disconnected  
_ **And…** _  
— Anders is disconnected  
— Ella is disconnected  
— Liam is disconnected  
_ **Then…** _  
— Push

And the same flow with Ella and Liam.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [August 28, 2022, 5:50pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/3 "2022-08-28T17:50:41Z")

</div>

Another way to solve this:  
For a better usability, I created a Homey user for every person.  
Now I can set each single person as present/away based on Unifi state.  
For “nobody is at home” I use the default trigger from Homey presence “last person left”. And the other way the “first person came home” trigger.

---

<div class="post-metadata">

**Author:** ![Anders\_Green](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_green/32/5127_2.png) [@Anders\_Green](https://community.homey.app/u/Anders_Green)\
**Post date:** [August 28, 2022, 9:08pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/4 "2022-08-28T21:08:41Z")

</div>

Yepp thats what I suspected  
Thanks for the tip.  
Going to try it out tomorrow

---

<div class="post-metadata">

**Author:** ![Anders\_Green](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_green/32/5127_2.png) [@Anders\_Green](https://community.homey.app/u/Anders_Green)\
**Post date:** [August 28, 2022, 9:10pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/5 "2022-08-28T21:10:13Z")

</div>

How do you connect the user to UniFi?  
Or does it mean that all users have homey app installed and logged on?

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [August 28, 2022, 9:16pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/6 "2022-08-28T21:16:22Z")

</div>

I created every user in Homey. You need seperate email addresses for.  
If you have the users in Homey, you can set the user state via flows.

Here are example flows:

> [@\[APP\]\[Pro\] Ubiquiti UniFi Network](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/50):
>
> The Unifi device represents only the phone, not your person (Homey account). Just set you at home/away in the flow. I use it rhis way to make all other home/away logics with the homey user state. In addition I use a timer for away state to prevent a state change if teh phone is roaming between APs. Unifi-Connect: Set me at home and stop timer (if running). Unifi-Disconnect: Start timer (delay is taken from a logic variable): Disconnect-Timer (delay) finished: Set me…

I use a timer to prevent too fast reaction on disconnects to prevent state changes in case of access poit roaming.

---

<div class="post-metadata">

**Author:** ![Anders\_Green](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_green/32/5127_2.png) [@Anders\_Green](https://community.homey.app/u/Anders_Green)\
**Post date:** [September 23, 2022, 10:04pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/7 "2022-09-23T22:04:24Z")

</div>

That did the trick  
Works good!

Tnx

---

<div class="post-metadata">

**Author:** ![millennium1980](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/millennium1980/32/122616_2.png) [@millennium1980](https://community.homey.app/u/millennium1980)\
**Post date:** [April 6, 2025, 6:29pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/8 "2025-04-06T18:29:00Z")

</div>

dear Ronny i want to use your flow with the time to wait if it’s not connecting to another AP.  
Ik don’t understand and how you do it with the timer. Can you explain it and tel me which app u use for it.

ik did this advanced flow .

 ![afwezigheidhomey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/0/2055273c028f2e841469f106074c870b4ca92361.jpeg)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [April 6, 2025, 8:29pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/9 "2025-04-06T20:29:54Z")

</div>

I use the “Chronograph” app.  
You can set a name for a timer and the timeframe in the flow action.  
Then use a WHEN card to react on a finished timer or clear the timer with a THEN card.

---

<div class="post-metadata">

**Author:** ![Yankee\_Delta](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yankee_delta/32/83449_2.png) [@Yankee\_Delta](https://community.homey.app/u/Yankee_Delta)\
**Post date:** [August 11, 2025, 5:57am UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/10 "2025-08-11T05:57:09Z")

</div>

I see u use the same way as i, but i have a problem that my app randomly says my phone is disconnected.  
While in my unifi logs they just roamed or did nothing.  
Do you have the same issues?

---

<div class="post-metadata">

**Author:** ![Tyrone\_Hart](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tyrone_hart/32/120934_2.png) [@Tyrone\_Hart](https://community.homey.app/u/Tyrone_Hart)\
**Post date:** [January 6, 2026, 11:44am UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/11 "2026-01-06T11:44:12Z")

</div>

Hi, RonnyW;

Interesting in your Chronograph app flow as, could you share any other flow you used with it?

thank you!

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [January 6, 2026, 4:38pm UTC](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/12 "2026-01-06T16:38:50Z")

</div>

3 posts above 😉 Just follow the link.

> [@Precense and advanced flow with Ubiquiti](https://community.homey.app/t/precense-and-advanced-flow-with-ubiquiti/68045/6):
>
> I created every user in Homey. You need seperate email addresses for. If you have the users in Homey, you can set the user state via flows. Here are example flows: I use a timer to prevent too fast reaction on disconnects to prevent state changes in case of access poit roaming.
