# \[APP\]\[PRO\] Smart Presence - Presence detection based on smartphones connected to your Wi-Fi

**URL:** <https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794>\
**Category:** Apps\
**Tags:** app\
**Created:** [August 20, 2020, 6:09am UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794 "2020-08-20T06:09:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [August 20, 2020, 6:09am UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/1 "2020-08-20T06:09:02Z")

</div>

# Smart Presence

 ![presence](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/14ec5233ac65d018888d9c66ad5cc13dd7179e7c.jpeg)

- **Device Tracking** : The app tracks devices by their IP address. You would need to set a static IP address for each device you want to track. This is necessary because if the device’s IP address changes (which can happen with DHCP), the app won’t be able to track it properly.
- **Port Scanning** : The app checks whether the specified devices are reachable on the network by attempting to connect to a specified port. Closed ports are often used for this purpose. When a device is connected to Wi-Fi, the port, although closed, will respond in a certain way (usually by refusing the connection), indicating the device is present. If there’s no response (like the device is off or disconnected from Wi-Fi), it’s assumed to be away.

_It’s important to note that the reliability of this method can vary based on several factors, like network configuration, device settings (some devices may turn off Wi-Fi to save power), and the accuracy of the IP address configuration. Additionally, with the increasing use of random MAC addresses by smartphones for privacy, tracking based on IP might be less reliable unless fixed IP addresses are assigned to devices._

**Link to live version** ⏩ [app store](https://homey.app/a/nl.terryhendrix.smartpresence).  
Link to test version [app store](https://homey.app/a/nl.terryhendrix.smartpresence/test).  
Link to the [source](https://github.com/shaarkys/homey-smartpresence).

#### Installing:

For adding a device, please follow these steps:

1. Check the IP address of the smartphone. This can be done from the admin UI of the Wi-Fi router.
2. Make a static reservation for the IP address. Also done from the admin UI of the Wi-Fi router.
3. Add the device by entering a name, and the IP address of the smartphone. Check the ‘Is guest’ or ‘Is kid’ - checkboxes for guests or kids.

**Ensure you do not use RANDOMIZED MAC when connecting your phone to your Wifi.(current defaults on Android phones)**

## Device: Smartphone

#### Triggers

- A household member arrived / left
- A kid (part of the household) arrived / left
- A specific user arrived / left
- A guest arrived / left
- Someone arrived / left
- The first household member arrived
- The first kid arrived
- The first guest arrived
- The first person arrived
- The last household member left
- The last kid left
- The last guest left
- The last person left

#### Conditions

- Household members home / No household members home
- Kids at home / Kids not at home
- Having guests / Not having guests
- Someone is home / Nobody is home
- A specific user is home / away

## Acknowledgements:

- The original ‘Smart Presence’ app created by Terry Hendrix, developed then for some time by Bjørnar Almli. Thank you guys ! 🎩

## Feedback:

Please report issues at the [issues section on Github](https://github.com/shaarkys/homey-smartpresence/issues).

**If you like the app, you can donate [here](https://www.paypal.com/paypalme/bkubesa) to keep my ChatGPT running 😉** 🤖

## Release Notes:

available as Changelog on [Smart Presence | Homey](https://homey.app/en-us/app/nl.terryhendrix.smartpresence/Smart-Presence)

## Recommended settings of devices :

_Android_

```auto
'Away Delay': '90 seconds',
'Normal Mode Check Interval': '15000 ms',
'Normal Mode Timeout': '2 seconds',
'Stress Period': '60 seconds',
'Stress Mode Check Interval': '2500 ms',
'Stress Host Timeout': '2 seconds'

```

_iPhone_

```auto
'Away Delay': '200 seconds',
'Normal Mode Check Interval': '15000 ms',
'Normal Mode Timeout': '2 seconds',
'Stress Period': '60 seconds',
'Stress Mode Check Interval': '2500 ms',
'Stress Host Timeout': '2 seconds'

```

_(unfortunately have seen some strange behavior for iPhone, so try to increase AWAY delay even more in case you get false indication of presence)_

**Also please ensure Wifi Assist is turned off on iPhone !! - [https://www.xda-developers.com/how-stop-iphone-switching-wi-fi-cellular/](https://www.xda-developers.com/how-stop-iphone-switching-wi-fi-cellular/)**

**Please note that application bugs / debug logs / should be communicated in English only. I do not respond to debug logs written in any other language. Also, I do not answer support queries - for those, we have this dedicated thread. Thank you for your understanding.** \*

### Support the development

## ❤ Community apps and appreciation

These Homey Community apps are developed and maintained in my spare time.

**Did you know?** In my experience maintaining community Homey apps, only a very small proportion of users choose to support their development financially—even when a new device integration or specific feature has been implemented at their request.

Contributions are never required, but they are a meaningful way to recognise the time invested in development, testing, compatibility updates and ongoing user support. If one of my apps has been useful to you, you can optionally show your appreciation here:

### [❤ Send an optional thank-you via PayPal](https://www.paypal.me/bkubesa)

A contribution does not unlock additional features or affect the support you receive. It is simply a way to say _thank you_.

### My Homey apps

| | | | | | |
| --- | --- | --- | --- | --- | --- |
| [![Smart Presence | 72x72](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/5/5572294d53fb2189c45a72a9383363a452d463c1.png)](https://homey.app/a/nl.terryhendrix.smartpresence)  
[**Smart Presence**](https://homey.app/a/nl.terryhendrix.smartpresence)  
Wi-Fi presence detection | [![Xiaomi Mi Home | 72x72](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/e/de1dc51865d236d901288d617df6f988396b25f6.jpeg)](https://homey.app/a/com.xiaomi-miio)  
[**Xiaomi Mi Home**](https://homey.app/a/com.xiaomi-miio)  
Xiaomi Mi Home devices | [![Broadlink | 72x72](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/76034ca18b53c920f581b84b16735f02ada00fd8.jpeg)](https://homey.app/a/com.broadlink)  
[**Broadlink**](https://homey.app/a/com.broadlink)  
IR, RF and smart devices | | | |
| [![TP-Link KASA LAN | 72x72](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/7/c75e3118bdfa1181c879a8e594b3124b86e19636.png)](https://homey.app/a/nu.baretta.tplink)  
[**TP-Link KASA LAN**](https://homey.app/a/nu.baretta.tplink)  
Local Kasa control | [![Yeelights LAN | 72x72](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/b/1bf376963ce7d9557001643f126a3c83a968c460.jpeg)](https://homey.app/a/com.yeelight)  
[**Yeelights LAN**](https://homey.app/a/com.yeelight)  
Local Yeelight control | [![Xiaomi Miija | 72x72](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/970146bee00c1112556ff9ad9e7a127bd1f144ce.png)](https://homey.app/a/hu.corenet.mitemp)  
[**Xiaomi Miija**](https://homey.app/a/hu.corenet.mitemp)  
Temperature and humidity sensors | | | |
| [![Octoprint | 72x72](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/8/68c7dac99b9b3142e69c5b4d8703eaa963b15238.png)](https://homey.app/a/no.jonkristian.octoprint)  
[**Octoprint**](https://homey.app/a/no.jonkristian.octoprint)  
Monitor your 3D printer | [![Virtual Radar | 72x72](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/e/9e7cc61abfbfa7922163b466b9179e85496c7c34.jpeg)](https://homey.app/a/com.gruijter.virtualradar)  
[**Virtual Radar**](https://homey.app/a/com.gruijter.virtualradar)  
ADS-B aircraft tracking | [![enigma2 | 72x72](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/8/88d9a3cf5c03b83d34a6a6e3fd2c772c2223b190.png)](https://homey.app/a/eu.carp3-noctem.enigma2)  
[**enigma2**](https://homey.app/a/eu.carp3-noctem.enigma2)  
Control Enigma2 receivers | | | |

[**View all my Homey apps →**](https://homey.app/en-us/apps/author/5cc0b0a87a00d60e7682a494/page/0/)

---

<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:** [August 20, 2020, 6:31am UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/2 "2020-08-20T06:31:41Z")

</div>

Love this! Do you have a download link? Btw the link to github leads to a 404 page

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [August 20, 2020, 6:46am UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/3 "2020-08-20T06:46:22Z")

</div>

I’m waiting for the previous developer to transfer the app to my account, and then I will release a new version for you to test.

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [August 20, 2020, 7:25am UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/4 "2020-08-20T07:25:20Z")

</div>

Hey @balmli, pleased that you are taking over the development of the app!

I use non-purpose Smart Presence to detect the general readiness of IP devices on the network with a Fritzbox. So analogous to the ubiquity function. Works very well.

Just as a hint for you that there is more potential in the app that can be expanded in the future 😉

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [August 20, 2020, 8:06am UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/5 "2020-08-20T08:06:42Z")

</div>

Very well ! Just put all your improvement suggestions here 🙂

---

<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 20, 2020, 8:25am UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/6 "2020-08-20T08:25:38Z")

</div>

And don’t forget your PayPal donation link! 👍🏽

---

<div class="post-metadata">

**Author:** ![Tb1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tb1/32/8934_2.png) [@Tb1](https://community.homey.app/u/Tb1)\
**Post date:** [August 20, 2020, 9:48am UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/7 "2020-08-20T09:48:57Z")

</div>

Wow, this was fast 👏 now I’m just waiting for the download link 👍

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [August 20, 2020, 1:13pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/8 "2020-08-20T13:13:51Z")

</div>

Now version 0.6.0 is ready for testing:

> **[Smart Presence](https://homey.app/en-us/app/nl.terryhendrix.smartpresence/Smart-Presence/)**
>
> Presence detection based on smartphones connected to your Wi-Fi

Please test 🙂

- That upgrading from 0.5.0 / 0.5.1 goes well
- That the flows work as expected
- That it works on your devices. I’ve only tested on iPhone.

---

<div class="post-metadata">

**Author:** ![Ton\_van\_Rijnsoever](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ton_van_rijnsoever/32/6351_2.png) [@Ton\_van\_Rijnsoever](https://community.homey.app/u/Ton_van_Rijnsoever)\
**Post date:** [August 20, 2020, 1:23pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/9 "2020-08-20T13:23:34Z")

</div>

Downloaded and it works on Android, thanks

---

<div class="post-metadata">

**Author:** ![Tb1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tb1/32/8934_2.png) [@Tb1](https://community.homey.app/u/Tb1)\
**Post date:** [August 20, 2020, 2:54pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/10 "2020-08-20T14:54:49Z")

</div>

Testing 🙂

---

<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:** [August 20, 2020, 3:42pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/11 "2020-08-20T15:42:49Z")

</div>

Working here, on my Android phone.

Thanks!

---

<div class="post-metadata">

**Author:** ![Tb1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tb1/32/8934_2.png) [@Tb1](https://community.homey.app/u/Tb1)\
**Post date:** [August 20, 2020, 4:09pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/12 "2020-08-20T16:09:09Z")

</div>

Tested on some devices like TV, printer and android. It works fine 👍🙏

---

<div class="post-metadata">

**Author:** ![Ton\_van\_Rijnsoever](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ton_van_rijnsoever/32/6351_2.png) [@Ton\_van\_Rijnsoever](https://community.homey.app/u/Ton_van_Rijnsoever)\
**Post date:** [August 20, 2020, 6:34pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/13 "2020-08-20T18:34:31Z")

</div>

dear Balmli, thanks for quickly customizing the app. maybe you still have some time to adjust a few more apps haha. keep up the good work

---

<div class="post-metadata">

**Author:** ![Bart\_v\_R](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bart_v_r/32/15706_2.png) [@Bart\_v\_R](https://community.homey.app/u/Bart_v_R)\
**Post date:** [August 31, 2020, 1:25pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/14 "2020-08-31T13:25:42Z")

</div>

I am using the app for a while now with good results, but since the update to 0.6.2 today it seems that my phone is not being noticed anymore on connecting to WiFi.

The flows I use work fine with the test button but when connecting/disconnecting from WiFi nothing happens anymore. My flows aren’t changed in any way and my IP address is still fixed and correct defined in the app config.

Is there something wrong with the update or do I need to reconfigure something? Please help, because I use smart presences for controlling my lighting every evening! Now it just stays dark 🙂

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [August 31, 2020, 1:47pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/15 "2020-08-31T13:47:23Z")

</div>

Hi,

Have you checked the default Away delay in adv. settings?

It’s 900 seconds / 15 minutes.

If you still have problems, please press the «Create diagnostics report» - button from App-settings, and I might see what’s wrong

---

<div class="post-metadata">

**Author:** ![Bart\_v\_R](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bart_v_r/32/15706_2.png) [@Bart\_v\_R](https://community.homey.app/u/Bart_v_R)\
**Post date:** [August 31, 2020, 2:05pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/16 "2020-08-31T14:05:08Z")

</div>

Thanks for the quick reply!

And yes, delay is 900s (unchanged after update of the app).  
I will try to remove and add the flows and see if that makes a difference. If not I will send a diagnostic report to you.

Greets,

Bart

---

<div class="post-metadata">

**Author:** ![Annie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/annie/32/14900_2.png) [@Annie](https://community.homey.app/u/Annie)\
**Post date:** [August 31, 2020, 4:42pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/17 "2020-08-31T16:42:20Z")

</div>

Same here. Not detecting my phone anymore since the update to 0.6.2. Rebooted Homey w/o succes. Is there a fix for this?

---

<div class="post-metadata">

**Author:** ![balmli](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/balmli/32/1308_2.png) [@balmli](https://community.homey.app/u/balmli)\
**Post date:** [August 31, 2020, 4:44pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/18 "2020-08-31T16:44:59Z")

</div>

Hi all, thanks for reporting!

Yes, there’s a bug in 0.6.2 for existing users. Install v. 0.6.3 please, just released to test.

> **[Smart Presence](https://homey.app/en-us/app/nl.terryhendrix.smartpresence/Smart-Presence/)**
>
> Presence detection based on smartphones connected to your Wi-Fi

Or you can wait for Athom to approve it.

---

<div class="post-metadata">

**Author:** ![Annie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/annie/32/14900_2.png) [@Annie](https://community.homey.app/u/Annie)\
**Post date:** [August 31, 2020, 4:47pm UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/19 "2020-08-31T16:47:51Z")

</div>

Thanks! v 0.6.3 is OK!

---

<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:** [September 1, 2020, 9:22am UTC](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794/20 "2020-09-01T09:22:49Z")

</div>

Hey all,  
could someone please share a flow for leaving home (A household member left)?  
Which variable I have to use in the „And…“ section?

Thanks in advance!

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/eeb1becc954a1e3bcbcfdd4c01c1b6bd39b900d7.jpeg)

[Next page](https://community.homey.app/t/app-pro-smart-presence-presence-detection-based-on-smartphones-connected-to-your-wi-fi/33794.md?page=2)
