# Check if zone has been inactive for more than X minutes

**URL:** <https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728>\
**Category:** Flows\
**Created:** [August 1, 2024, 7:28am UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728 "2024-08-01T07:28:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [August 1, 2024, 7:28am UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/1 "2024-08-01T07:28:32Z")

</div>

Anyone know if there’s an option to check how long a zone has been inactive for? There are several use-cases for me.

I have some flows that will turn on all lights (by design). There’s no way to check if the zone was active in the last X minutes in order to limit some of the zones.

One would think it would be fairly easy to add an “AND zone has been inactive for \> x minutes” flowcard 🤔

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [August 1, 2024, 9:15am UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/2 "2024-08-01T09:15:51Z")

</div>

Yes, there are WHEN cards already for the zones.

 ![Screenshot_20240801_111349_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/764cd7827c7ba43cdd05834a819fd703272698e2.jpeg)

---

<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:** [August 1, 2024, 9:19am UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/3 "2024-08-01T09:19:53Z")

</div>

When there is no card that realizes your use case at once, you will have to do some more programming. When you describe your use case a little more, we can think about a solution, which might be quite easy.

For example: when zone has been inactive for 15 minutes set variable to yes. And then test this variable.  
Or you check if a lamp in zone is on.

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [August 1, 2024, 11:11am UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/4 "2024-08-01T11:11:51Z")

</div>

Not as “and”-cards. I cannot use the “when”-cards for this.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/1/61e8ea865577e9f406a7c0b2da2e57ad573c0698.png)

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [August 1, 2024, 11:13am UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/5 "2024-08-01T11:13:27Z")

</div>

Hmmm…so basically set up variables for each zone and trigger a flow for every 5 minutes of inactivity up 'til 30 minutes or so, and then do a logic comparison? Hmmm…Interesting solution 🙂

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [August 1, 2024, 12:09pm UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/6 "2024-08-01T12:09:14Z")

</div>

Or setup separate timers for each zone, that starts when becoming inactive.

Then use timer values for comparison.

---

<div class="post-metadata">

**Author:** ![Erikvl87](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erikvl87/32/112784_2.png) [@Erikvl87](https://community.homey.app/u/Erikvl87)\
**Post date:** [September 6, 2024, 7:52am UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/7 "2024-09-06T07:52:56Z")

</div>

> [@Tiwas](#):
>
> One would think it would be fairly easy to add an “AND zone has been inactive for \> x minutes” flowcard 🤔

Could the app I recently launched be of any solution to you? It adds the condition (AND) flow card “The zone… has been inactive for at least 10 minutes.”

> **[Zone Activity](https://homey.app/en-nl/app/nl.erikvl87.zoneactivity/Zone-Activity/)**
>
> Enhance your Homey flows by adding conditions based on zone (in)activity.

---

<div class="post-metadata">

**Author:** ![Marius\_Stensrod](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_stensrod/32/56540_2.png) [@Marius\_Stensrod](https://community.homey.app/u/Marius_Stensrod)\
**Post date:** [September 6, 2024, 3:29pm UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/8 "2024-09-06T15:29:07Z")

</div>

@Erikvl87 , really high hopes of your app. Hope it functions as intended, as the Homey-built-in-functions does not. Maybe you can make a support topic for the app in this forum?

---

<div class="post-metadata">

**Author:** ![Erikvl87](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erikvl87/32/112784_2.png) [@Erikvl87](https://community.homey.app/u/Erikvl87)\
**Post date:** [September 6, 2024, 4:17pm UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/9 "2024-09-06T16:17:42Z")

</div>

@Marius_Stensrod Thank you for setting such a high bar! I hope my app will meet your expectations. I do plan to set up a support topic for the app soon, but right now, my focus is on the GitHub repository. Balancing my time has become crucial, especially since I recently became a father, so managing support in one place (GitHub) is more practical for me. If you have any requests or suggestions, please reach out via an issue at [Erikvl87/nl.erikvl87.zoneactivity: Enhance your Homey flows by adding conditions based on zone (in)activity. (github.com)](https://github.com/Erikvl87/nl.erikvl87.zoneactivity)

---

<div class="post-metadata">

**Author:** ![Marius\_Stensrod](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_stensrod/32/56540_2.png) [@Marius\_Stensrod](https://community.homey.app/u/Marius_Stensrod)\
**Post date:** [September 6, 2024, 4:36pm UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/10 "2024-09-06T16:36:11Z")

</div>

@Erikvl87 , first of all, congratulations! I understand the time issue. Then GitHub is good enough. I will test your app and report issues at GitHub 👌

---

<div class="post-metadata">

**Author:** ![mroomer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mroomer/32/30193_2.png) [@mroomer](https://community.homey.app/u/mroomer)\
**Post date:** [January 7, 2025, 12:25pm UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/11 "2025-01-07T12:25:55Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/6/866366bd8c33994e8cf52b7362537df082e63313.png)

If my topology of my rooms is like the image I would expect that activity of 'slaapkamer’also depends on badkamer because it’s a subroom. But I think it is not because it does not work in Flows. Anybody comments about this.  
And if so how to use in a flow when als the rooms are inactive for 15 minutes ?

---

<div class="post-metadata">

**Author:** ![mroomer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mroomer/32/30193_2.png) [@mroomer](https://community.homey.app/u/mroomer)\
**Post date:** [January 7, 2025, 12:33pm UTC](https://community.homey.app/t/check-if-zone-has-been-inactive-for-more-than-x-minutes/113728/12 "2025-01-07T12:33:28Z")

</div>

This is the only solution I think to do this but very nonlogical

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