# Detect phone connected to WiFi

**URL:** https://community.homey.app/t/detect-phone-connected-to-wifi/117303
**Category:** Flows
**Created:** [October 3, 2024, 7:39pm UTC](https://community.homey.app/t/detect-phone-connected-to-wifi/117303 "2024-10-03T19:39:36Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Lane\_Canada](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lane_canada/32/92195_2.png) [@Lane\_Canada](https://community.homey.app/u/Lane_Canada)
#### Post date: [October 3, 2024, 7:39pm UTC](https://community.homey.app/t/detect-phone-connected-to-wifi/117303/1 "2024-10-03T19:39:36Z")

</div>

Hello all,  
My son leaves the house daily and does not turn off the lights. What is the best and most reliable method of detecting when he is gone?

Thanks,  
Lane

---

<div class="post-metadata">

### Author: ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)
#### Post date: [October 3, 2024, 8:01pm UTC](https://community.homey.app/t/detect-phone-connected-to-wifi/117303/2 "2024-10-03T20:01:49Z")

</div>

Obviously your doors should lock themselves until Homey disengages the lock after your son switches off the lights 😂.

All jokes aside, depending on your WiFi router’s brand, there may be a Homey app that allows you to detect whether his phone/tablet is still connected to the WiFi. I use e.g. the Asus app for this purpose.

Alternatively there are also generic Homey apps that offer similar functionality, like the [Smart Presence](https://homey.app/nl-nl/app/nl.terryhendrix.smartpresence/Smart-Presence/) app.

---

<div class="post-metadata">

### Author: ![Lane\_Canada](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lane_canada/32/92195_2.png) [@Lane\_Canada](https://community.homey.app/u/Lane_Canada)
#### Post date: [October 3, 2024, 8:06pm UTC](https://community.homey.app/t/detect-phone-connected-to-wifi/117303/3 "2024-10-03T20:06:26Z")

</div>

lol… funny. I have a UniFi network but I find that the UniFi apps are buggy or don’t work. Was looking for something else. I’ll have a look at that Smart Presence app, thanks.

---

<div class="post-metadata">

### Author: ![dsdevries](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dsdevries/32/80220_2.png) [@dsdevries](https://community.homey.app/u/dsdevries)
#### Post date: [October 20, 2024, 10:05pm UTC](https://community.homey.app/t/detect-phone-connected-to-wifi/117303/4 "2024-10-20T22:05:42Z")

</div>

I have a flow that I can trigger to set myself home or away. I then use the shortcuts app on my iPhone to run the homey flow when I come home or when I leave. This works really well!  
The advantage of this is that i don’t need to give the homey app access to the location services. No app has to be running in the background for this. I use the native iOS algorithm to determine whether I’m home or not, which I find very accurate always.

---

<div class="post-metadata">

### Author: ![dsdevries](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dsdevries/32/80220_2.png) [@dsdevries](https://community.homey.app/u/dsdevries)
#### Post date: [October 21, 2024, 5:03am UTC](https://community.homey.app/t/detect-phone-connected-to-wifi/117303/5 "2024-10-21T05:03:50Z")

</div>

![IMG_3418](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/c/2cdc053f343ab033ee5c5c1ffdd8a9a7c184c943.jpeg)  
 ![IMG_3420](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/8/e8c0ba4788c331ec940bc67dd968bc9f2bb7b0f3.jpeg)  
 ![IMG_3425](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/4/d49252543bf313ece5485651152b74db257b05c2.jpeg)  
 ![IMG_3424](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/d/dd61eae24cc4033cdb03a8bc25ebe427b22f3efa.jpeg)  
 ![IMG_3422](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/9/697c941e35fafea93cddd973bd4a66b1e9963af3.jpeg)  
 ![IMG_3427](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/f/cf08fb015f3e1c40a1c62ec05724d0216a5be844.png)  
 ![IMG_3426](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/7/5720e9748b07a4ad99407b930a9040b5bef9de06.jpeg)

---

<div class="post-metadata">

### Author: ![Lane\_Canada](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lane_canada/32/92195_2.png) [@Lane\_Canada](https://community.homey.app/u/Lane_Canada)
#### Post date: [October 24, 2024, 4:03pm UTC](https://community.homey.app/t/detect-phone-connected-to-wifi/117303/6 "2024-10-24T16:03:59Z")

</div>

That’s a good approach @dsdevries I wouldn’t be able to setup the kids phone with that solution.

I tried the Smart Presence app suggested and it is perfect. Shuts off the lights in the basement when the kid leaves home.

---

<div class="post-metadata">

### Author: ![TimVW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvw/32/79069_2.png) [@TimVW](https://community.homey.app/u/TimVW)
#### Post date: [October 25, 2024, 10:54am UTC](https://community.homey.app/t/detect-phone-connected-to-wifi/117303/7 "2024-10-25T10:54:06Z")

</div>

Great idea!!!  
I can’t use advanced flows. Am I correct?

Tim

---

<div class="post-metadata">

### Author: ![dsdevries](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dsdevries/32/80220_2.png) [@dsdevries](https://community.homey.app/u/dsdevries)
#### Post date: [October 25, 2024, 11:14am UTC](https://community.homey.app/t/detect-phone-connected-to-wifi/117303/8 "2024-10-25T11:14:41Z")

</div>

You can use advance flows for this, however it doesn’t add much. In order to trigger an advanced flow you need to add the start button to it. Each advanced flow can only have one start button. So you would still need to create individual flows for each of these actions.  
Therefore in my homey, I have a folder called actions. These actions are used to expose functionality to the outside. They are all very simple in their essence. They all start with the card “when this flow is triggered”, and they all just set a state in homey. This state is then used by all advanced flows. This is my why to loosely couple homey to other systems or apps.

 ![Screenshot 2024-10-25 at 13.13.27](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/7/a719a380044b3a9db7034e5c6fc7dfb4db3e46c0.jpeg)  
 ![Screenshot 2024-10-25 at 13.18.18](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/f/cff489b7e89475da6fe943a1122e88c90a318bcf.jpeg)  
 ![Screenshot 2024-10-25 at 13.18.59](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/2/5226921d0f08f348827caf980225903f4033e082.jpeg)
