# Presence detection recommendation

**URL:** <https://community.homey.app/t/presence-detection-recommendation/7557>\
**Category:** Questions & Help\
**Created:** [January 21, 2019, 9:22am UTC](https://community.homey.app/t/presence-detection-recommendation/7557 "2019-01-21T09:22:15Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![Tycho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tycho/32/16864_2.png) [@Tycho](https://community.homey.app/u/Tycho)\
**Post date:** [December 15, 2019, 8:54pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/110 "2019-12-15T20:54:35Z")

</div>

I am using Ubiquity UniFi for presence detection. It works flawlessly. A requirement for this is to have UniFi access points and a UniFi controller.

Next to home/away detection, I am also using it for detecting sleep. If a phone is connected to the access point on the first floor and you turn off the light of the bedroom within a time range, then that person is marked as sleeping. The next morning, when your phone roams from the first floor to the ground floor, you are marked as awake and you are greeted by Homey with a summary of the day and the minimum temperature of last night.

Usually this app is also fast enough to turn off the alarm system when you get home before the alarm goes off.

You can find the app here: [Ubiquiti UniFi Network App voor Homey | Homey](https://homey.app/nl-nl/app/com.ubnt.unifi/Ubiquiti-UniFi/)

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [December 16, 2019, 3:56pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/111 "2019-12-16T15:56:07Z")

</div>

I had bought a Ubiquity UAP-AC-Lite a year ago and tried to get this working. After a lot of hours found out that i needed antother device to get it working. I did not have the cloud key and as this was another 90 euros ti invest. so i chose another option a that time. Also i was not sure again that this would work with the Huawei phones that we have at home. Can you tell me wich phones you are using?

gr,  
Frans

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [December 16, 2019, 4:19pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/112 "2019-12-16T16:19:21Z")

</div>

> [@Tycho](#):
>
> A requirement for this is to have UniFi access points and a UniFi controller.

Could you please specify the hardware you are using. Thanks!

---

<div class="post-metadata">

**Author:** ![Tycho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tycho/32/16864_2.png) [@Tycho](https://community.homey.app/u/Tycho)\
**Post date:** [December 17, 2019, 7:05pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/113 "2019-12-17T19:05:00Z")

</div>

I am using Ubiquity UniFi NanoHD access points and a 24 ports UniFi managed switch with PoE (Power over Ethernet) to power the access points. The switch is not required since you can also power the access points with a power injector for the ethernet cable.

For the UniFi system to work, you need a UniFi controller indeed. For that, you have multiple options. You can buy a UniFi cloud key, which runs the controller software on a piece of hardware that you buy. You can also run the controller software on a normal Windows/Linux pc or on a Synology NAS. You can even run it in the cloud if you want. I am running the controller software on a Windows 10 Intel NUC that I use as a media pc, which is always on anyway. This controller software is used to manage all the settings, to optimize the network and to monitor client connections. It has an api and that is what Homey can connect to.

Overall, this UniFi network is the best I ever had. I used Asus routers as access points in the past, but this is much more stable.

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [December 18, 2019, 1:16pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/114 "2019-12-18T13:16:38Z")

</div>

@Tycho  
Thanks for your response and detailed answer! Much appreciated. I will check out the Synology NAS route!

---

<div class="post-metadata">

**Author:** ![Hempie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hempie/32/7905_2.png) [@Hempie](https://community.homey.app/u/Hempie)\
**Post date:** [December 18, 2019, 4:13pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/115 "2019-12-18T16:13:50Z")

</div>

Here’s posted an Dutch explanation on how to do UniFi with presence detection on a Homey

> **[UniFi aanwezigheids detectie via een Flow](https://unifi-forum.nl/handleidingen/unifi-aanwezigheids-detectie-via-een-flow.12/)**
>
> Via Homey installeer je eerst de UniFi App
> 
> 
> Configureer vervolgens de App van UniFI en zorg dat je verbonden bent.
> 
> 
> 
> Heb je de App draaien dan gaan we de clients toevoegen.
> In de Homey App ga naar Apparaten en klik op de + rechtsboven in en tik...

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [December 18, 2019, 8:53pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/116 "2019-12-18T20:53:14Z")

</div>

A previously tried other presence apps that worked with wifi. Every other time the phone puts the wifi into a sleeping mode and therfore Disconnects from homey. In this case that would be disconnecting from the ubicuiti asses point. You never had this experience?

---

<div class="post-metadata">

**Author:** ![Tycho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tycho/32/16864_2.png) [@Tycho](https://community.homey.app/u/Tycho)\
**Post date:** [December 18, 2019, 10:18pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/117 "2019-12-18T22:18:13Z")

</div>

I have never had that problem. We are using Sony Android phones and an iPhone. None of them disconnects when you turn the screen off. Wifi always stays connected as long as it is within range. Actually, even my Windows 10 laptops stay connected in stand-by, but I do not use them for Homey.

The only thing I sometimes experience, is that it takes up to a minute before my phone connects to wifi when I arrive home. If your phone is on stand-by, it does not constantly search for wifi, probably to save battery. When you turn on the screen, it connects immediately.

When your phone loses wifi for a minute or so, UniFi does not directly report the client as disconnected. If you explicitly turn off wifi, you are seen as disconnected, but if you go out of range, it waits a bit before it reports the client as disconnected. This is probably also to save energy, otherwise devices would have to talk to the access point constantly to let it know they are still there.

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [December 21, 2019, 9:16am UTC](https://community.homey.app/t/presence-detection-recommendation/7557/118 "2019-12-21T09:16:13Z")

</div>

i would love to know i there’s anyone here on the forum that has a combination of the unify app with a huawei p10 lite or the huawei mate 20 pro before i decide to buy a controller and spend a 90 euro’s.

so is there anyone that has this combi?

gr,  
Frans

---

<div class="post-metadata">

**Author:** ![Thomas\_Bodegrim](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomas_bodegrim/32/19006_2.png) [@Thomas\_Bodegrim](https://community.homey.app/u/Thomas_Bodegrim)\
**Post date:** [December 23, 2019, 9:42am UTC](https://community.homey.app/t/presence-detection-recommendation/7557/119 "2019-12-23T09:42:34Z")

</div>

Im also on huawei and have similar issues. Might have something to do with the software being aggressive closing down gps and stuff while inactive.

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [December 23, 2019, 10:25am UTC](https://community.homey.app/t/presence-detection-recommendation/7557/120 "2019-12-23T10:25:18Z")

</div>

Same problem with my P10 lite and the P9 lite from my girlfriend act the sameway.

For presence detection i realy love macrodroid, it works always and the app never go to sleep in the background.

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [December 24, 2019, 7:56am UTC](https://community.homey.app/t/presence-detection-recommendation/7557/121 "2019-12-24T07:56:31Z")

</div>

thanks guys for the reply, what i don’t get out of your answers if you both have used the ubiquiti variant? I already bought it yesterday so lets see how it works. Hope its not for nothing again

---

<div class="post-metadata">

**Author:** ![Jeroen\_Reijling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_reijling/32/12749_2.png) [@Jeroen\_Reijling](https://community.homey.app/u/Jeroen_Reijling)\
**Post date:** [January 3, 2020, 9:46am UTC](https://community.homey.app/t/presence-detection-recommendation/7557/122 "2020-01-03T09:46:57Z")

</div>

I use Life360, it has an app for Android and iPhone and works great. I only restart the app on the Homey from time to time…

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [January 3, 2020, 12:04pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/123 "2020-01-03T12:04:48Z")

</div>

Well I tried it after having bought the cloud key for 99 euro’s. And again useless. When we are inside the house for 5 minutes it sees the phone. That’s way to late. Heimdall already has set the alarm on. Making a delay in heimdall for 5 minutes makes the alarm useless so that’s not an option. Back to the virtual button again. Automatic pressence detection is not going to work overhere. Life 360 I already tried. Did not work also

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [January 3, 2020, 12:57pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/124 "2020-01-03T12:57:23Z")

</div>

Heave you tried Macrodroid? It works realy great, i use it now for half a year en dit the job every time… It’s verry importend that you turn off every powersave setting for the macrodroid app otherwise the app goos into sleep when the screen of your phone is off.

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [January 3, 2020, 2:51pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/125 "2020-01-03T14:51:28Z")

</div>

and thats just the problem with all the presence solution. We all have huawei phones and they don’t work with these solutions.

ah just now i read back your previous replies. See you have huawei also. Hm maybe i’l try

---

<div class="post-metadata">

**Author:** ![Dennis\_H74](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennis_h74/32/11177_2.png) [@Dennis\_H74](https://community.homey.app/u/Dennis_H74)\
**Post date:** [January 3, 2020, 2:52pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/126 "2020-01-03T14:52:38Z")

</div>

Ifttt works in 99% of the cases for me.

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [January 3, 2020, 2:53pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/127 "2020-01-03T14:53:29Z")

</div>

been there tried it. doesn’t work flawless also.

---

<div class="post-metadata">

**Author:** ![Frans\_Keeman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frans_keeman/32/79711_2.png) [@Frans\_Keeman](https://community.homey.app/u/Frans_Keeman)\
**Post date:** [January 3, 2020, 3:04pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/128 "2020-01-03T15:04:40Z")

</div>

well just downloaded the Macrodroid app. Seems as i am on EMUI 9+ that i have installed PowerGenie on my huawei p20 pro wich you cannot customise. So you have to uninstall this system app. For this you need to install a android debug bridge on your pc. i have to do this on 2 phones the other one you can change the settings. So i think you will understand i aint gonna mess with my android 9.1 system. So again not a working option.

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [January 3, 2020, 3:45pm UTC](https://community.homey.app/t/presence-detection-recommendation/7557/129 "2020-01-03T15:45:02Z")

</div>

I also have an huawei (p10 lite) and it works great 😉

[Previous page](https://community.homey.app/t/presence-detection-recommendation/7557.md?page=5)

[Next page](https://community.homey.app/t/presence-detection-recommendation/7557.md?page=7)
