# Flow Randomly stops working

**URL:** <https://community.homey.app/t/flow-randomly-stops-working/60331>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [February 13, 2022, 11:13am UTC](https://community.homey.app/t/flow-randomly-stops-working/60331 "2022-02-13T11:13:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![siggajones](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/siggajones/32/48234_2.png) [@siggajones](https://community.homey.app/u/siggajones)\
**Post date:** [February 13, 2022, 11:13am UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/1 "2022-02-13T11:13:14Z")

</div>

Hi New to homey so i setup a flow for my WC with a motion sensor and ikea light bulb

it works most of the time but some times it do not work and the light wont turn on.

Flow is  
When this Zone is active

then  
Turn on all the units on (changed the units to all the lights)

anyone one know why this is happening ?

---

<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:** [February 13, 2022, 11:42am UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/2 "2022-02-13T11:42:09Z")

</div>

What motion sensor?

> [@siggajones](#):
>
> some times it do not work

Exactly when?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [February 13, 2022, 11:56am UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/3 "2022-02-13T11:56:36Z")

</div>

> [@siggajones](#):
>
> anyone one know why this is happening ?

as a clairvoyant I think it is best to start reading here

> [@\[Tip\] Problems with Homey?](https://community.homey.app/t/problems-with-homey/35744):
>
> When u have problems with Homey and you are reaching out to the community members here on the forums it’s important to give as much info as u can. First of All: New Homey Family members! Since September 2021: Homey (Service / Premium), and the first “old” Homey is rebranded as Homey Pro (early 201x) Since Januari 2023:\* Homey Pro Early 2023 started to get shipped. And while using Homey with or without a Homey Bridge on many aspects CAN be the same as the Homey Pro, they differ in capabili…

---

<div class="post-metadata">

**Author:** ![siggajones](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/siggajones/32/48234_2.png) [@siggajones](https://community.homey.app/u/siggajones)\
**Post date:** [February 13, 2022, 12:05pm UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/4 "2022-02-13T12:05:30Z")

</div>

i use the Aqara motion sesnor with an ikea light bulb.

to say exactly when is hard casue for me it seems random- it works fine maybe 2-3 times in a row then it stops and fails.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 13, 2022, 12:36pm UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/5 "2022-02-13T12:36:57Z")

</div>

You have to be methodical about this:

- does the motion sensor work?
- does Homey activate the zone correctly?
- does the light work?

To find out if the motion sensor works, create a flow: _“WHEN motion is detected THEN write a message to the timeline”_.

Run that flow for a few days to see if it always detects motion. If it does, change the flow to _“WHEN this zone is active THEN write a message to the timeline”_.

And again, run that flow for a few days.

When both those flows work as expected, it’s time to suspect an issue with the light.

By the way, what does “all units/lights” mean, specifically? How many devices are you switching?

Also, because you’re using Zigbee, you need to be aware of all the Zigbee pitfalls related to Homey (the limited amount of Zigbee devices Homey can control, interference between Zigbee and WiFi, etc).

---

<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:** [February 13, 2022, 12:51pm UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/6 "2022-02-13T12:51:46Z")

</div>

What I thought was about the „Blind time“ of motion sensors. So if you go out of the WC and quickly go in again, it could be that the motion sensor didn’t recognize you because the blind time is still active.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 13, 2022, 1:07pm UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/7 "2022-02-13T13:07:56Z")

</div>

Good point, the Aqara motion sensor has a default blind time of 60 or 90 seconds.

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [February 13, 2022, 1:46pm UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/8 "2022-02-13T13:46:37Z")

</div>

> [@robertklep](#):
>
> the Aqara motion sensor has a default blind time of 60 or 90 seconds

@robertklep What do you mean by “ blind time”?

When I look in the settings of the aqara motion help text states:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/3/53f95396db7d22d02769441dce9bdcba43e87800.png)  
But this does bot seem to be a blind time (at every movement the internal timer will be restarted.

@siggajones please also share your flows that turn off the light.  
The combination of the setting and your off flow can still cause issues:

Suppose the setting is 300s and your flow switches off the light after 1min:  
1 motion switches on the light  
2 your off flow switches off the light after 2 min  
3 the motion sensor will still stay in the “motion detected” state for 300s (=5min)  
4 so if you enter the room after 4 minutes:

- motion sensor is still in “active” state and.
- therefore zone activity is still in active
- so the light will not turn on! Only thing that happens is the 300ms timer will reset  
So the zone

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 13, 2022, 1:54pm UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/9 "2022-02-13T13:54:24Z")

</div>

> [@FKey](#):
>
> What do you mean by “ blind time”?

The amount of time the sensor is “blind” (insensitive) to motion after last detection. In other words, when it detects and reports motion, it will not report new motion until after the blind time has expired.

> [@](#):
>
> But this does bot seem to be a blind time (at every movement the internal timer will be restarted.

Correct, this setting sounds like something else.

---

<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:** [February 13, 2022, 5:14pm UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/10 "2022-02-13T17:14:24Z")

</div>

> ![Screenshot_20220213-180632_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/b/bb26817d3b17de0923ea1b4fd11bbb4b22af0a71.jpeg)

This _is_ the blind time.  
Set it to 60s to have the “quickest” response.  
Blind time is probably only to save battery.

So, when you keep the light on for 65s / 125s / 185s and use a Homey timer, the light should not be switched off if you keep moving around 😁

You can (or could…) “hack” the Aqara sensor, then you can set the blind time to 5s.

> ![Screenshot_20220213-180942_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/1/d156e9feb220370bcc143a7f3524455df8905a5f.jpeg)

Example flows

The “replace timer” part is the trick, if there’s a motion detection before the timer has finished, it re-starts again.

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [February 13, 2022, 6:29pm UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/11 "2022-02-13T18:29:59Z")

</div>

If its “blind time” or not depends on how you build your flows.

- if your light is switched **off** based on a timer after **zone active**. Then this time is blind time. (Since the zone will stay active even if the timer has passed, so ot will not trigger again)

- if your light is switched **off** based on a timer after **zone inactive**. Then its not blind time. (Since the zone is already inactive during this time, so motion will trigger the zone activity)

PS: make sure you cancel the timer when the zone becomes active again and the timer is on. (Zone de-active will restart the tomer)

---

<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:** [February 14, 2022, 7:49am UTC](https://community.homey.app/t/flow-randomly-stops-working/60331/12 "2022-02-14T07:49:25Z")

</div>

It’s really funny. Experienced homey users intensively discuss one of x possible reason, while only very little is known about the actual problem.  
@siggajones, it’s your turn. Give us more information, as @Dijker has already requested. Share your flows. How many Zigbee routers are in use? And so on, and so on…
