# Flow: Warning, light has remained on

**URL:** <https://community.homey.app/t/flow-warning-light-has-remained-on/93249>\
**Category:** Flows\
**Created:** [October 30, 2023, 5:19pm UTC](https://community.homey.app/t/flow-warning-light-has-remained-on/93249 "2023-10-30T17:19:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudu\_95](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dudu_95/32/93061_2.png) [@dudu\_95](https://community.homey.app/u/dudu_95)\
**Post date:** [October 30, 2023, 5:19pm UTC](https://community.homey.app/t/flow-warning-light-has-remained-on/93249/1 "2023-10-30T17:19:25Z")

</div>

Hello, could you help me solve this problem? I’m currently stuck. My goal is to have my motion sensor detect when the light is above 20 lx, and if the value doesn’t drop below 20 lx for 10 minutes, it sends me an alert that the light has been on for 10 minutes. So far, it’s working well, but then the flow doesn’t trigger as long as the lx remains at the same value. I would like that once the counter reaches 0, the flow starts triggering again as long as the lx is above 20. However, as soon as they go below this threshold, the counter should stop. Could you show me a flow that accomplishes this?

 ![lumss](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/8/c8748d22d8f7af4850ea49ff7b77610b57725cf4.png)

---

<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:** [October 30, 2023, 5:26pm UTC](https://community.homey.app/t/flow-warning-light-has-remained-on/93249/2 "2023-10-30T17:26:36Z")

</div>

With this trigger card from the [Device Capabilities app](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287), it’s a piece of cake:  
 ![Screenshot from 2023-10-30 18-27-39](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/6/960be24fa9e6ce69b42a7fc21419576c60b74932.png)

Flow:  
 ![Screenshot from 2023-10-30 18-24-42](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/d/dd5f5065bd67f9006b9a19d5684a1fb8032c305c.png)

---

<div class="post-metadata">

**Author:** ![dudu\_95](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dudu_95/32/93061_2.png) [@dudu\_95](https://community.homey.app/u/dudu_95)\
**Post date:** [October 30, 2023, 7:49pm UTC](https://community.homey.app/t/flow-warning-light-has-remained-on/93249/3 "2023-10-30T19:49:23Z")

</div>

> [@Peter\_Kawa](#):
>
> [Device Capabilities](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287)

Thank you, I will try.

---

<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:** [October 31, 2023, 1:03pm UTC](https://community.homey.app/t/flow-warning-light-has-remained-on/93249/4 "2023-10-31T13:03:04Z")

</div>

All you need to do is to add a condition card in the second flow. So in general no additional App needed.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/b/fb0e8a8604b31cf15beeb5ddba1697b547587a70.png)

---

<div class="post-metadata">

**Author:** ![dudu\_95](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dudu_95/32/93061_2.png) [@dudu\_95](https://community.homey.app/u/dudu_95)\
**Post date:** [October 31, 2023, 2:00pm UTC](https://community.homey.app/t/flow-warning-light-has-remained-on/93249/5 "2023-10-31T14:00:13Z")

</div>

Thank you, I will also test this scenario.
