# Als de laatste persoon die thuis is…

**URL:** <https://community.homey.app/t/als-de-laatste-persoon-die-thuis-is/108330>\
**Category:** Flows\
**Created:** [April 16, 2024, 8:43pm UTC](https://community.homey.app/t/als-de-laatste-persoon-die-thuis-is/108330 "2024-04-16T20:43:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/derk/32/79237_2.png) [@Derk](https://community.homey.app/u/Derk)\
**Post date:** [April 16, 2024, 8:43pm UTC](https://community.homey.app/t/als-de-laatste-persoon-die-thuis-is/108330/1 "2024-04-16T20:43:45Z")

</div>

Wat is de beste manier om flows te laten starten als iedereen die thuis is, is gaan slapen. In dit scenario zijn er dus Homey gebruikers die niet thuis zijn maar wel geactiveerd zijn.

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [April 16, 2024, 9:36pm UTC](https://community.homey.app/t/als-de-laatste-persoon-die-thuis-is/108330/2 "2024-04-16T21:36:21Z")

</div>

Zoiets als telkens het aantal personen dat thuis is tellen en het aantal personen dat is gaan slapen tellen.  
Bv met een variabele die je 1 ophoogt als er iemand thuiskomt en met 1 verlaagt als er iemand gaat slapen. En dan de flow starten als de variabele nul wordt en dan als eerste testen of er iemand slaapt.
