# Presence Detection Based on Who Is Home

**URL:** <https://community.homey.app/t/presence-detection-based-on-who-is-home/149472>\
**Category:** Flows\
**Tags:** presence\
**Created:** [January 17, 2026, 4:12pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472 "2026-01-17T16:12:54Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eddimello](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eddimello/32/66450_2.png) [@Eddimello](https://community.homey.app/u/Eddimello)\
**Post date:** [January 17, 2026, 4:12pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/1 "2026-01-17T16:12:54Z")

</div>

I need your help. Normally, there are three of us living in our house. However, our daughter isn’t home much anymore because she’s studying, and my wife is often abroad for work.  
In short, there are three of us, two of us, or even just one person at home.  
I currently have the Presence app and the Locative app running on our iPhones, and they work really well. Homey knows exactly who’s home when, so it knows whether there’s one, two, or three of us.  
Obviously, I’d like the house to react differently when there’s one or three people at home.  
The best example of this is a sensor on the stairs leading downstairs. My lights on the first floor and attic turn on automatically, so when I walk down the stairs and am home alone, everything upstairs should automatically turn off.  
You’d think that would work if there’s no movement on the first floor or attic, but I often find that very unreliable.

In short, who can help build a flow based on 1, 2 or 3 people at home?

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [January 17, 2026, 5:13pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/2 "2026-01-17T17:13:22Z")

</div>

I would recount the number of people in the house every time someone comes or leaves home.

 ![Scherm­afbeelding 2026-01-17 om 18.06.30](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d858d6d2eed97b33f955885463884971e3ac0ee6.png)

So when there only one person at home ‘act this way’ else ‘act that way’

---

<div class="post-metadata">

**Author:** ![Eddimello](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eddimello/32/66450_2.png) [@Eddimello](https://community.homey.app/u/Eddimello)\
**Post date:** [January 17, 2026, 7:50pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/3 "2026-01-17T19:50:28Z")

</div>

Okay, thanks for your explanation, Wim. I can follow this if one person comes home and stays home. But what if another person comes and, for example, someone leaves for a while? I still have to figure out that flow.

It was valuable to read your response, and it’s funny that two Dutch people have to communicate in English.

---

<div class="post-metadata">

**Author:** ![Eddimello](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eddimello/32/66450_2.png) [@Eddimello](https://community.homey.app/u/Eddimello)\
**Post date:** [January 17, 2026, 7:54pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/4 "2026-01-17T19:54:39Z")

</div>

Oh, you mean the second time, Wim Post is the other person, and so on the third time?

---

<div class="post-metadata">

**Author:** ![Eddimello](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eddimello/32/66450_2.png) [@Eddimello](https://community.homey.app/u/Eddimello)\
**Post date:** [January 17, 2026, 7:57pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/5 "2026-01-17T19:57:52Z")

</div>

It’s working thanks. For now.

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [January 17, 2026, 8:07pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/6 "2026-01-17T20:07:35Z")

</div>

You figured it out. My homey has only one user​😜

---

<div class="post-metadata">

**Author:** ![Eddimello](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eddimello/32/66450_2.png) [@Eddimello](https://community.homey.app/u/Eddimello)\
**Post date:** [January 17, 2026, 8:18pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/7 "2026-01-17T20:18:04Z")

</div>

Yes, but I’m not done yet. Now I want the house to react differently when my wife and I are home, so whether we’re together or when my daughter is also home. This is because when my daughter is home, the lights in the hallway and bathroom need to be dimmer. That bothers her in her room. But when she’s with her boyfriend, we prefer the lights to be brighter.

In short, it’s not necessarily about whether one, two, or three people are home, but also who.

I still have to figure that out.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 17, 2026, 8:37pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/8 "2026-01-17T20:37:59Z")

</div>

So, boyfriend is the 4th condition 😉

> [@Eddimello](#):
>
> n short, it’s not necessarily about whether one, two, or three people are home, but also who.
> 
> I still have to figure that out.

You can add conditions like these

 ![Screenshot_20260117_213603_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/9/29f54581731470495fbe423289c7c895c81c9f33.jpeg)

---

<div class="post-metadata">

**Author:** ![s73nm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/s73nm/32/110438_2.png) [@s73nm](https://community.homey.app/u/s73nm)\
**Post date:** [January 18, 2026, 7:23am UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/9 "2026-01-18T07:23:59Z")

</div>

You might want to have a look at Flowbits. The app basically allows you to define modes/states for your house.

You would still need to build the logic for setting the desired state/mode depending on who is home, but once done, you can adapt all your flows react to the mode/state your house is in, rather than have the logic be repeated in different flows.

> [@\[App\]\[Pro\] FlowBits](https://community.homey.app/t/app-pro-flowbits/145855):
>
> Simplify your flows with FlowBits FlowBits is a utility app for Homey that helps you structure, control, and extend your flows without adding any new device types. Everything is defined directly within your flows, giving you full flexibility. Work in progress documentation is available at [https://flowbits.nl](https://flowbits.nl)Features Step sequences Count upwards within defined boundaries. Useful for giving simple switches multiple functions or scenes. Flags Create feature toggles for your home, such as a…

---

<div class="post-metadata">

**Author:** ![Eddimello](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eddimello/32/66450_2.png) [@Eddimello](https://community.homey.app/u/Eddimello)\
**Post date:** [January 18, 2026, 7:31am UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/10 "2026-01-18T07:31:12Z")

</div>

Allright this helps to

---

<div class="post-metadata">

**Author:** ![Eddimello](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eddimello/32/66450_2.png) [@Eddimello](https://community.homey.app/u/Eddimello)\
**Post date:** [January 18, 2026, 7:31am UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/11 "2026-01-18T07:31:30Z")

</div>

I look it up

---

<div class="post-metadata">

**Author:** ![Eddimello](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eddimello/32/66450_2.png) [@Eddimello](https://community.homey.app/u/Eddimello)\
**Post date:** [January 18, 2026, 8:21am UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/12 "2026-01-18T08:21:46Z")

</div>

I do not see this condition in the AND e-card of Presence not at home

---

<div class="post-metadata">

**Author:** ![s73nm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/s73nm/32/110438_2.png) [@s73nm](https://community.homey.app/u/s73nm)\
**Post date:** [January 18, 2026, 9:37am UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/13 "2026-01-18T09:37:11Z")

</div>

Use the “… is at home” card, and invert it.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/a/aa5bfe9c04301ae51848c371f25464fedfdfacd9.png)

---

<div class="post-metadata">

**Author:** ![Eddimello](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eddimello/32/66450_2.png) [@Eddimello](https://community.homey.app/u/Eddimello)\
**Post date:** [January 18, 2026, 12:46pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/14 "2026-01-18T12:46:23Z")

</div>

Thats great

---

<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:** [January 20, 2026, 10:40am UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/15 "2026-01-20T10:40:43Z")

</div>

hey, for my flows, I made a script that just counts the number of people at home, the number of people asleep, and the number of people at home and asleep on the fly and creates tags for them to be used in your flows. I used to work with variables which I updated on every presence event, but I found it to be unreliable and I much rather just calculate the values directly before I need them, so I know they are always correct.

To set it up, just go into the scripts section and create a script called Calculate Presence(.js). Then paste this script:

```auto
const users = await Homey.users.getUsers();
const userArray = Object.values(users);
await Promise.all([
  tag('Persons At Home', userArray.filter(({present}) => present).length),
  tag('Persons Asleep', userArray.filter(({asleep}) => asleep).length),
  tag('Persons Asleep At Home', userArray.filter(({present, asleep}) => present && asleep).length)
]);

```

here’s how I use the script in my flows:

 ![Screenshot 2026-01-20 at 11.33.58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/a/baace41d8ce2cdf3204a862f00747da7c04f1159.jpeg)

 ![Screenshot 2026-01-20 at 11.36.00](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/e/1e1070ef4c9c7dafbd54fca50e6a54c5e963aaee.jpeg)

The great advantage of this script is that people can just mark them selves asleep and awake, and at home or away independently. So people can be asleep while they are not at home, or asleep while they are home and it wouldn’t impact for the flows that depend on “Persons Asleep At Home”. So the automation regarding presence can be kept super simple. Just mark someone at home when they arrive home, mark someone away when they leave, mark someone asleep when sleep mode is enabled, and mark someone awake when sleep mode is disabled. No need to perform any other difficult checks there.  
You came home after your phone already went into sleep mode? No problem.  
You left the home but the phone is still in sleep mode? Not a problem.  
You go on holiday but the phone keeps marking you asleep and awake? Also, not a problem.  
You already left your parental house, but occasionally stay over? Again, not a problem.  
I wrote a full tutorial on how I Implemented presence detection using iPhones shortcuts app in Homey. You can read it here:

> [@\[Tutorial\] How I implemented Presence into my Smart Home Automation](https://community.homey.app/t/tutorial-how-i-implemented-presence-into-my-smart-home-automation/144109):
>
> Introduction In my household everyone goes to sleep and wakes up at different times. Also, not everyone sleeps at home every day, or some people might arrive while others are already asleep. This creates some tricky challenges when it comes to automating presence based behavior. Here are the problems I faced and how I tackled them. Problem 1: Reliable presence detection In many phones, but mainly iPhones, apps don’t have the same access level to location services, or will not always keep their …

I’ve also written a full tutorial on how I implemented motion sensors in my house and connected them to Virtual motion sensors to gain full control over the timeout values, and the ability to turn the whole sensor on and off. In this tutorial I use the Circadian app for my lighting schedules. The Circadian app has the ability to switch between manual, automatic and night modes, which might be useful in your use case as well. But you can also just as easily use the above setup without the Circadian app if that’s not what you need. You can read the full tutorial here.

> [@\[HOW TO\] Gain full control over Zone Activity using Motion Sensors (PIR) and Virtual Motion Triggers](https://community.homey.app/t/how-to-gain-full-control-over-zone-activity-using-motion-sensors-pir-and-virtual-motion-triggers/144082):
>
> Introduction This is not a guide on how to implement a specific use case, but rather a framework that will give you full control over zone activity. Many flows like turning on/off lights could be done much simpler. However, when my personal flows became more complex, I ran into a lot of caveats and quirks that caused me to rethink how I work with motion sensors. I came up with this system which allowed me to solve all the bugs I ran into and I would like to share it with all of you. The problem…

Maybe this setup combined with the script can also help you out.

---

<div class="post-metadata">

**Author:** ![WeWillSee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wewillsee/32/120753_2.png) [@WeWillSee](https://community.homey.app/u/WeWillSee)\
**Post date:** [March 12, 2026, 1:01pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/16 "2026-03-12T13:01:15Z")

</div>

Question also trying to use thes home functions. on my phonit works great and always detects. On my wifes phone (samsung) it only detects she leaves or is home 10% of the time :S not sure if there is away to improve this? or another app for snesing presence?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 12, 2026, 3:02pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/17 "2026-03-12T15:02:47Z")

</div>

Owntracks (Android) + Location & Presence (Homey) works very well, next to Macrodroid (Android) sending webhooks to Homey.  
Both have possibilities to define multiple geofences/waypoints and to define their diameter.

---

<div class="post-metadata">

**Author:** ![Eddimello](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eddimello/32/66450_2.png) [@Eddimello](https://community.homey.app/u/Eddimello)\
**Post date:** [March 13, 2026, 5:18pm UTC](https://community.homey.app/t/presence-detection-based-on-who-is-home/149472/18 "2026-03-13T17:18:31Z")

</div>

We only have iPhones in the house, so I don’t know exactly how it works with an Android, but I think Peter has good suggestions.

Furthermore, I can say that it has been working very well for us for months now and I am very happy with it. There are three of us living in the house, and recently I was at home alone with a few colleagues and I went out for a moment to get some food, and immediately the rest were sitting in the dark, and I knew the system was working well. 🙂
