# Inactivity of two motions sensors

**URL:** https://community.homey.app/t/inactivity-of-two-motions-sensors/125304
**Category:** Questions & Help
**Tags:** flow, homey-pro, advancedflow
**Created:** [December 24, 2024, 9:50pm UTC](https://community.homey.app/t/inactivity-of-two-motions-sensors/125304 "2024-12-24T21:50:39Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![gary.osullivan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gary.osullivan/32/119418_2.png) [@gary.osullivan](https://community.homey.app/u/gary.osullivan)
#### Post date: [December 24, 2024, 9:50pm UTC](https://community.homey.app/t/inactivity-of-two-motions-sensors/125304/1 "2024-12-24T21:50:39Z")

</div>

I have two motion sensors in different zones. I require both to be inactive for a given period, say 5 minutes, then turn off some lights. I have tried the community app, which will combine the sensors, but there is no inactive card.

Would you expect this to work?

 ![Inactivity](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/e/3ee4d112163dac57e2242646afb917d503e1b6f2.png)

I’m open to better suggestions/examples. Thank you in advance.

---

<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: [December 24, 2024, 10:19pm UTC](https://community.homey.app/t/inactivity-of-two-motions-sensors/125304/2 "2024-12-24T22:19:20Z")

</div>

Two triggers before an ‘ALL’-card will never work.

---

<div class="post-metadata">

### Author: ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)
#### Post date: [December 24, 2024, 10:23pm UTC](https://community.homey.app/t/inactivity-of-two-motions-sensors/125304/3 "2024-12-24T22:23:14Z")

</div>

I think because you have two sensors as trigger, this is not able to work.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/8445ccca8cc34aaa6105ada2db022510830b55a4.jpeg)  
Using this type of a flow will work as you want

---

<div class="post-metadata">

### Author: ![gary.osullivan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gary.osullivan/32/119418_2.png) [@gary.osullivan](https://community.homey.app/u/gary.osullivan)
#### Post date: [December 24, 2024, 10:43pm UTC](https://community.homey.app/t/inactivity-of-two-motions-sensors/125304/4 "2024-12-24T22:43:37Z")

</div>

Thank you for your reply.

I read this as two inactive zones, waiting for 20 min. What would you expect to happen if the zone became active again? Would they not switch off in 20 mins? Albeit, they would come on again if the zone were active.

Sorry if I am being dense.

---

<div class="post-metadata">

### Author: ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)
#### Post date: [December 24, 2024, 10:52pm UTC](https://community.homey.app/t/inactivity-of-two-motions-sensors/125304/5 "2024-12-24T22:52:25Z")

</div>

I read again your first post. You like to do something when both zones are inactive, not only 1 of them

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

If zone 1 become inactive and zone 2 is inactive start timer  
If zone 2 become inactive and zone 1 is inactive start timer

When 1 of both zones become active timer is stopped

When timer is ended, light will turn off or whatever action you place behind this card

Of course you can set the time to any value you want.

edit and you can add as many time, date or whatever cards in between as you want, but that is not shown in this example

---

<div class="post-metadata">

### Author: ![gary.osullivan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gary.osullivan/32/119418_2.png) [@gary.osullivan](https://community.homey.app/u/gary.osullivan)
#### Post date: [December 24, 2024, 11:00pm UTC](https://community.homey.app/t/inactivity-of-two-motions-sensors/125304/6 "2024-12-24T23:00:09Z")

</div>

Thanks again.

“When 1 of both zones become active timer is stopped”. That’s the part I wasn’t sure about.

Thank you. Off to try it.

---

<div class="post-metadata">

### Author: ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)
#### Post date: [December 24, 2024, 11:40pm UTC](https://community.homey.app/t/inactivity-of-two-motions-sensors/125304/7 "2024-12-24T23:40:29Z")

</div>

> [@gary.osullivan](#):
>
> “When 1 of both zones become active timer is stopped”. That’s the part I wasn’t sure about.
> 
> Thank you. Off to try it.

That stopped the timer, not ending it. So when new activation take place, timer will restart after a new stop of both motion sensors.

I hope I am clear

---

<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: [December 25, 2024, 8:23am UTC](https://community.homey.app/t/inactivity-of-two-motions-sensors/125304/8 "2024-12-25T08:23:25Z")

</div>

Make a copy of the sensors by using two virtual devices.Put these 2 virtual devices in a new zone and use zone activity to switch on and off the light.
