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

**URL:** <https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967>\
**Category:** Apps\
**Created:** [February 14, 2021, 9:54am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967 "2021-02-14T09:54:13Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Mr\_Horizon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mr_horizon/32/8322_2.png) [@Mr\_Horizon](https://community.homey.app/u/Mr_Horizon)\
**Post date:** [May 18, 2021, 9:18pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/41 "2021-05-18T21:18:47Z")

</div>

Hi, I got the test version connected now as well. Could someone please share an example of a flow that based on a mobile device connecting to the netwerk will trigger a subsequent process? I am struggling to understand how to use the card ‘apparaat verbonden met wifi’ as I would expect in the ‘and’ then to be able to use a validation like ‘apparaat verbonden has MAC --’ for example. But I do not seem to get parameters based on the first card.  
Thanks in advance.

P.S. Running 6.2.25 on udmpro with 1.10.0-11

---

<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:** [May 19, 2021, 4:26am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/42 "2021-05-19T04:26:39Z")

</div>

You already added your device as Homey device?  
 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee153499d27f9070e34ea99ce07e710071adf171.png)

Then you can react on the “a device just connected” Flow card.  
Use the Homey device name (the homey device has information about MAC from Unifi, so it’s not needed for flows) as conditon for the “Who” tag.

![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/e/1e80d873ef165f08977318c88f1c61927d459511.png)

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [May 19, 2021, 5:08am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/43 "2021-05-19T05:08:32Z")

</div>

You can also start with the device. If device connected or roams

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/6/f6598753beeba618c56d5103fe4b32661a2a1734.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:** [May 19, 2021, 5:41am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/44 "2021-05-19T05:41:15Z")

</div>

I’m wondering if that was already possible last year?  
I migrated from SmartPresence to Unifi and used the same logic. Thanks for pointing at this possibility 🙂

---

<div class="post-metadata">

**Author:** ![Mr\_Horizon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mr_horizon/32/8322_2.png) [@Mr\_Horizon](https://community.homey.app/u/Mr_Horizon)\
**Post date:** [May 19, 2021, 6:58am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/45 "2021-05-19T06:58:44Z")

</div>

Thanks! I should have known. I was taken off guard due to the fact that without adding devices I see as options the rooms that I have created as zones. Anyways, ‘problem’ solved.

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [May 19, 2021, 7:07am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/46 "2021-05-19T07:07:00Z")

</div>

Yes, this is the way i have been using it for a few years now. But with this many possibilities there is no way you can know everything 😉

---

<div class="post-metadata">

**Author:** ![Mr\_Horizon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mr_horizon/32/8322_2.png) [@Mr\_Horizon](https://community.homey.app/u/Mr_Horizon)\
**Post date:** [May 19, 2021, 10:32am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/47 "2021-05-19T10:32:00Z")

</div>

So, it should be so simply. I created this [flow](https://homey.app/f/qu5b4C/). The device itself shows correctly the connection status depending on switching on/off wifi. But the status of me being home or not is not changed. Am I missing something (again 😊)?

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [May 19, 2021, 10:34am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/48 "2021-05-19T10:34:29Z")

</div>

Nah, it should work like this. i would however built a timer , sometimes it disconnects and does a reconnect when roaming from ap to ap.

What doesn’t work for you? Doesn’t set it you to away?

---

<div class="post-metadata">

**Author:** ![Mr\_Horizon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mr_horizon/32/8322_2.png) [@Mr\_Horizon](https://community.homey.app/u/Mr_Horizon)\
**Post date:** [May 19, 2021, 10:58am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/49 "2021-05-19T10:58:30Z")

</div>

Indeed, it does not set me to ‘away’.

---

<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:** [May 19, 2021, 12:31pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/50 "2021-05-19T12:31:56Z")

</div>

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

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/2/d2c9cf976b0a0779a90b30df2752d875f6e17e32.png)

**Unifi-Disconnect:**  
Start timer (delay is taken from a logic variable):

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/8/88f3cc081c776cc16005231fbba88885299c9d60.png)

**Disconnect-Timer (delay) finished:**  
Set me away.

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

---

<div class="post-metadata">

**Author:** ![Ruud\_Verrijk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruud_verrijk/32/903_2.png) [@Ruud\_Verrijk](https://community.homey.app/u/Ruud_Verrijk)\
**Post date:** [May 19, 2021, 1:05pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/51 "2021-05-19T13:05:04Z")

</div>

Great to see someone working on this app. It opens up a long list of possibilities.

Do you know if this presence flow also works with iPhones? They sometimes disconnect from wifi to save power.  
What is the delay that you use on your timer?

I am not so worried by a delay in reporting “away”, but the presence should be set at “at-home” before I open my front door, or my alarm will trigger. Do you think that is possible?

---

<div class="post-metadata">

**Author:** ![Mr\_Horizon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mr_horizon/32/8322_2.png) [@Mr\_Horizon](https://community.homey.app/u/Mr_Horizon)\
**Post date:** [May 19, 2021, 1:31pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/52 "2021-05-19T13:31:52Z")

</div>

Thanks, I have a similar approach but took out the logic check in the AND card to rule out as much as possible. Indeed a connect or disconnect as flow trigger in combination with a Then card that sets the presence accordingly. I’ll do some testing tonight in order to narrow down possible reasons for this not functioning.

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [May 19, 2021, 5:08pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/53 "2021-05-19T17:08:56Z")

</div>

And your phone is disconnected from the WiFi and that status gets reflected by the device? Eg, there is no longer a escalation mark

---

<div class="post-metadata">

**Author:** ![Mr\_Horizon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mr_horizon/32/8322_2.png) [@Mr\_Horizon](https://community.homey.app/u/Mr_Horizon)\
**Post date:** [May 19, 2021, 8:57pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/54 "2021-05-19T20:57:40Z")

</div>

Correct. I have the suspicious feeling roaming between the APs in combination with disconnecting trigger seems to be interfering. Not sure, will built in a timer or something like that (can you use a delay in combination with an AND card?) in combination with 2nd validation of disconnect prior to switching status.  
Setup to test:  
[https://homey.app/f/z1Xr6C/](https://homey.app/f/z1Xr6C/)  
[https://homey.app/f/DY8s6C/](https://homey.app/f/DY8s6C/)

---

<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:** [May 20, 2021, 6:57am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/55 "2021-05-20T06:57:30Z")

</div>

Just take my Screenshots as example (my last post).  
Use Chronograph app for a timer.  
You can’t work with timer in one flow. Xou have to start timernon disconnect and react on the timer event in a second flow. If you get reconnected while timer is running then stop the timer.  
This way you get only set as away if you are offline tje whole delay (timer running).

---

<div class="post-metadata">

**Author:** ![DoctorBazinga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/doctorbazinga/32/39686_2.png) [@DoctorBazinga](https://community.homey.app/u/DoctorBazinga)\
**Post date:** [May 21, 2021, 12:06pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/56 "2021-05-21T12:06:22Z")

</div>

I can’t get it to work with my USG-Pro and My cloud key Gen 2 (2.17) and Unifi 6.2.25.

trying Local super admin and cloud (main+owner )user. on port 443 and latesr experim=ental version 2.12

(I can’t add (or have) any devices(yet).

please help.

---

<div class="post-metadata">

**Author:** ![ObelixNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/obelixnl/32/172250_2.png) [@ObelixNL](https://community.homey.app/u/ObelixNL)\
**Post date:** [May 21, 2021, 3:45pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/57 "2021-05-21T15:45:13Z")

</div>

Can you send me screenshot from you app settings? by private message?

---

<div class="post-metadata">

**Author:** ![DoctorBazinga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/doctorbazinga/32/39686_2.png) [@DoctorBazinga](https://community.homey.app/u/DoctorBazinga)\
**Post date:** [May 21, 2021, 6:56pm UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/58 "2021-05-21T18:56:06Z")

</div>

![image0.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a285a8491e38994328ac74b0dfcbc4a6d8322045.png) ![image2.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/7/f7073ed794466b411f627444faf510b5209581c2.png) ![image3.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/a/1a42dd0d5bb7b1a9141c6cb7490dd74f44d656be.png) ![image4.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/7/370072239056af46d4291f9704ae534f43368046.png) ![image5.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/1/0185f436075b707aeb543a041e22d55c51496b3d.png) ![image6.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/c/bcd9b0ed685f219fb4ba82625bbed923c459fbe1.png) ![image7.jpg](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/e/6ea8503cd177c51d161f90ebaa9d973f65ab0b28.jpeg)  
Red Iphonitis rigorosa : level 11

---

<div class="post-metadata">

**Author:** ![ObelixNL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/obelixnl/32/172250_2.png) [@ObelixNL](https://community.homey.app/u/ObelixNL)\
**Post date:** [May 24, 2021, 9:43am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/59 "2021-05-24T09:43:39Z")

</div>

Please check the UnifiOS option!

---

<div class="post-metadata">

**Author:** ![DoctorBazinga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/doctorbazinga/32/39686_2.png) [@DoctorBazinga](https://community.homey.app/u/DoctorBazinga)\
**Post date:** [May 24, 2021, 9:57am UTC](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967/60 "2021-05-24T09:57:11Z")

</div>

Ooops … Didn’t know that was an option to toggle. 😔 😊

That with the “default” as site did the trick(with the local Super admin (“DoctorHomeyPro”) ! 🙃  
(“Default” or my real sites name “BazingaHome” didn’t work.)

It’s connected now.

Thank you very much.

Wifi devices I could now add.

But LAN/Wired devices it gets an error in the adding screen. 😕 -\>\> Fixed! had to restart the app after adding the WiFi devices.

[Previous page](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967.md?page=2)

[Next page](https://community.homey.app/t/app-pro-ubiquiti-unifi-network/42967.md?page=4)
