# Struggling with simple Active / Inactive zone settings

**URL:** <https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861>\
**Category:** Questions & Help\
**Created:** [September 14, 2022, 9:44am UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861 "2022-09-14T09:44:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Erik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tom_erik/32/56514_2.png) [@Tom\_Erik](https://community.homey.app/u/Tom_Erik)\
**Post date:** [September 14, 2022, 9:44am UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/1 "2022-09-14T09:44:33Z")

</div>

OK, this should be really simple, but I’m still struggling with this…

The scenario is simple:

- Walk into bathroom - motion is triggered (Aqara Motion Sensor) and lights turn on.
- When no movement has been sensed for 5 minutes → turn off lights.

So my flows work as long as I’m in the bathroom for less than 5 minutes, or standing still for 5 minutes.  
(Actually as long there is no movement for 120 sec (the setting “Disable Motion Alarm After” - 120 sec) and I move after this the inactive count for 5 minutes “resets”)

However, when I am in the bathroom for more than 5 minutes (and moving around) the lights still turn off.  
Looking at the Aqara sensor in Homey App I see that it’s motion alarm is turned on during this time.

I have a theory that Homey Inactive only reads state and not motion…?  
I.e. if the state (motion alarm) = on (or yes) for the set amount of time, in this case 5 minutes, it goes inactive as the state (on/off, yes/no, true/false) has not changed?  
_ **Can anyone confirm this theory?** _

The flows are:  
Bathroom turn ON:  
[https://homey.app/f/o-BsWc](https://homey.app/f/o-BsWc)

Bathroom turn OFF:  
[https://homey.app/f/OCHsWc](https://homey.app/f/OCHsWc)

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [September 14, 2022, 11:27am UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/2 "2022-09-14T11:27:52Z")

</div>

To achieve what you want, you need the app “Chronograph”.  
Two flows are then necessary:

Flow 1:  
When:  
The zone becomes active  
And:  
The brightness is less than xx  
Then:  
Switch on light  
Start or replace chronograph timer (name) with a length of xx minutes

Flow 2:  
When:  
Chronograph Timer (name) has expired  
Then:  
switch off light

The chronograph timer has the advantage that the timer always starts again from the beginning as soon as a new movement is detected. The light will only go out as soon as no more movement is detected in the set time xx.

---

<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:** [September 14, 2022, 11:28am UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/3 "2022-09-14T11:28:46Z")

</div>

> [@\[Simple\] Lights turning on/off based on motion](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889):
>
> Simple flow for turning lights on and off based on motion What to use Timer app. In this case i used [the Countdown app](https://apps.athom.com/app/nl.bevlogenheid.countdown) Motion sensor. Used a Neo Coolcam pir v1 in this case. A light to switch on and off. Used a Fibaro Dimmer2 in this case to turn a “dumb bulb”. Start making the timer We click more/apps/Countdown. Then we click configure app. Here we make the timer. Choose a name for your timer. In this case i used “Badkamer” Click “Add timer” Start making the flows In this case i used…

I also use Chronograph instead of Countdown

---

<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 14, 2022, 11:47am UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/4 "2022-09-14T11:47:36Z")

</div>

Sorry @Undertaker and @Peter_Kawa, but in my opinion your answers are not very helpful, because the real problem is not solved.  
I myself have two rooms in use with “Becomes active” and “Is inactive for x minutes”, and they work fine.  
For example this flow:

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

However, I have NEO Coolcam motion sensors in use with a motion cancellation delay of 30 s. I don’t have an Aqara Motion Sensor in use, so I can’t comment anything about the settings and behavior, but normally his flows should work. So why always these workarounds?  
Btw, maybe Tom is using the Homey Bridge, in which case he wouldn’t be able to use the Chronograph app at all.

---

<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:** [September 14, 2022, 11:53am UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/5 "2022-09-14T11:53:10Z")

</div>

Zone activity puts me in the dark sometimes. That’s the odd part. It does not function all the time, but sometimes it does as we should expect from zone activity.  
So I rather use the timer option, then the light does not turn off when the inactivity time has been reached while there’s still movement.

About having a homey cloud/bridge or not, I’ve stopped asking when users don’t mention it. 🤗 😬

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [September 14, 2022, 12:08pm UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/6 "2022-09-14T12:08:23Z")

</div>

Unfortunately, I have not had good experiences with the zone activity in terms of reliability either. Yes, actually the flows described above should work, but they don’t with him !  
My example with the Chronograph app always works.

---

<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 14, 2022, 12:09pm UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/7 "2022-09-14T12:09:30Z")

</div>

My flows have been working for months without any problems. So if your flows doesn’t work as they should, did you contacted Athom?

Based on the description it seems that is a reproducible error. Therefore, I suspect that the problem is with the Aqara motion sensor. For example, I know that the lux value is only sent when motion is detected. How the Aqara Motion Sensor works on motion detection, I do not know.

> [@Tom\_Erik](#):
>
> However, when I am in the bathroom for more than 5 minutes (and moving around) the lights still turn off.

@Tom_Erik, please check in the Homey smartphone app, if the zone is active or inactive when the lights turn off.

---

<div class="post-metadata">

**Author:** ![Tom\_Erik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tom_erik/32/56514_2.png) [@Tom\_Erik](https://community.homey.app/u/Tom_Erik)\
**Post date:** [September 14, 2022, 12:27pm UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/8 "2022-09-14T12:27:00Z")

</div>

Have also tried with the (Aeotec) Smartthings motion sensor and the Aeotec Multisensor 6 - same problem.

I’ll try more tonight.

.  
.

**My current theory** is that Homey’s inactive card **doesn’t actually check motion but only change in state**  
This again means that as long as a motion sensor (of any kind) is constantly triggered as ON/YES/TRUE etc because of constant movement registered by sensor, the state never changes.  
Since the state doesn’t change Homey counts this as inactivity because no change in state happened, right?

Perhaps you guys could do a test for me?  
Make a similar simple flow like mine and move constantly within the time limit of the inactive zone and see if the light turns off for you as well…? Would be helpful to eliminate that it is not my sensors that are broken…

.  
.  
.  
.  
I got the Homey Pro btw.

---

<div class="post-metadata">

**Author:** ![Tom\_Erik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tom_erik/32/56514_2.png) [@Tom\_Erik](https://community.homey.app/u/Tom_Erik)\
**Post date:** [September 14, 2022, 12:34pm UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/9 "2022-09-14T12:34:34Z")

</div>

Could you try the following in your setup here?

1. Activate the zone with movement.
2. Wait 15 seconds and move again (so that you are well within the 30 second cancellation delay)
3. Wait another 15 seconds and move again
4. Wait another 15 seconds and move again
5. Wait 15 seconds - if the light turns off now, you have the same issue as me.  
If the light stays on for another minute (while your standing still) the flow works for you.

---

<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 14, 2022, 1:48pm UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/10 "2022-09-14T13:48:09Z")

</div>

What I already did is, I created this test flow:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/c/6c549ed33fa3d1a40020dfc8c5e4e23cec99cb54.png)  
I activated the zone and I moved continuously around for about 2 minutes, so that the motion sensor was activated (yellow exclamation mark) all the time. The light didn’t switched off.  
After the approximate 2 minutes, I left the zone and observed in the Homey smartphone app when the motion sensor became inactive (after about 30 s). After another 60 seconds, the light turned off.  
So everything as it should work.

> [@Tom\_Erik](#):
>
> Could you try the following in your setup here?

I can also try this, but…

> [@Tom\_Erik](#):
>
> (so that you are well within the 30 second cancellation delay)

…the cancellation delay, mentioned in the advanced setting of the motion sensor, is not the only parameter for detecting/cancellation motion with Z-Wave motion sensors.  
Besides “cancellation delay”, these sensors have another parameter that is responsible for motion detection. This parameter is called “blind time”. After the sensor has detected motion, the sensor is “blind” for a certain time. This means that the sensor does not detect any new motion during this time, until this time has elapsed. The “blind time” is set to 8 seconds in my motion sensors (I just noticed that this is actually too little and not good for the battery life).  
So it’s possible that my Z-Wave motion sensors set the motion status **again** to “active” (while it’s active because of the 30 s “cancellation time”) after the “blind time” has elapsed.

Therefore, it would probably make more sense that this test is performed under identical conditions (Zigbee Motion Sensor). For this, someone else has to perform this test. What do you think?

---

<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 15, 2022, 9:35am UTC](https://community.homey.app/t/struggling-with-simple-active-inactive-zone-settings/68861/11 "2022-09-15T09:35:36Z")

</div>

Hi @Tom_Erik,  
today I did your test and the _ **Zone Activation** _ works as it should.  
After the last movement it takes approx. 90 seconds for the light to go out (30 s cancellation time + 60 s inactivity). 🤷🏼‍♂️
