# An easy advanced flow, or so I thought. Please help :-(

**URL:** <https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002>\
**Category:** Flows\
**Tags:** advancedflow\
**Created:** [October 6, 2022, 5:51pm UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002 "2022-10-06T17:51:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHRAND](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrand/32/38633_2.png) [@CHRAND](https://community.homey.app/u/CHRAND)\
**Post date:** [October 6, 2022, 5:51pm UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/1 "2022-10-06T17:51:54Z")

</div>

Hi.  
This flow is not working as intended. Is there someone that can see if there is something I done wrong?

Motion activated and the luminans is less than 12 then lit 2 lamps. If another lamp in the house is turned off start a 5 minutes timer then turn off lights.  
If the other lamp is on stop the flow, and let the 2 lights be on.

If the “other” lamp is on it works fine. If not it seems like the timer is ignored and the lamps flickers on and off as I walk by the motion detector.

 ![flow](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e02f9cfbbd08895f8cc53469ff74d0c133cc5aca.jpeg)

---

<div class="post-metadata">

**Author:** ![Jo\_San](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_san/32/3732_2.png) [@Jo\_San](https://community.homey.app/u/Jo_San)\
**Post date:** [October 6, 2022, 6:25pm UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/2 "2022-10-06T18:25:29Z")

</div>

A bit hard to see in your language but the “if another lamp is turned off” part seems a bit strange.  
You should probably split it in different parts each with its own trigger.

---

<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 6, 2022, 7:57pm UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/3 "2022-10-06T19:57:56Z")

</div>

When you install Device Capabilities, you can import working template flows  
Like this one f.i.:

> [@The Flow Exchange(r) - Exchange Your Flows with Others!](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/6):
>
> Motion activated Light/Device with Lux condition Here is a flow that lets you control a light or other device, based on the lux of a sensor, when a motion device detects motion. The light or device are only turned on/off when it’s not yet on/off. Just replace the items with your own: If your Luminance belongs to the Sensor you select, you can leave Luminance to Don’t change, and it will change with settings the Sensor. So, just select your Sensor en Light. Required Ap…

It’s pretty straightforward to import it from within the app settings:

 ![Screenshot from 2022-10-06 21-57-13](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/c/0c43bd255e228b7d7c35c4ec88dd42abbe362582.png)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [October 6, 2022, 10:04pm UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/4 "2022-10-06T22:04:10Z")

</div>

And let me know when you need help with using the Template, but like @Peter_Kawa said, it’s pretty easy to use and the flow Peter send you ise indeed the one you want 😉

---

<div class="post-metadata">

**Author:** ![CHRAND](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrand/32/38633_2.png) [@CHRAND](https://community.homey.app/u/CHRAND)\
**Post date:** [October 7, 2022, 3:54am UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/5 "2022-10-07T03:54:29Z")

</div>

Thnx for your replay. “Another lamp” is just a IF. IF OFF continue next. IF ON Stop.

---

<div class="post-metadata">

**Author:** ![CHRAND](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrand/32/38633_2.png) [@CHRAND](https://community.homey.app/u/CHRAND)\
**Post date:** [October 7, 2022, 3:58am UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/6 "2022-10-07T03:58:14Z")

</div>

@Arie_J_Godschalk and @Peter_Kawa Will look in to that 🙂 Good to know.

---

<div class="post-metadata">

**Author:** ![Jo\_San](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_san/32/3732_2.png) [@Jo\_San](https://community.homey.app/u/Jo_San)\
**Post date:** [October 7, 2022, 8:46am UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/7 "2022-10-07T08:46:53Z")

</div>

Maybe there is another flow also working on these lamps? It does not make sense that they are turned off immediately. If the “IF” condition would not be working, they would just never go out.

---

<div class="post-metadata">

**Author:** ![Mark\_Wingens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mark_wingens/32/34809_2.png) [@Mark\_Wingens](https://community.homey.app/u/Mark_Wingens)\
**Post date:** [October 12, 2022, 1:49pm UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/8 "2022-10-12T13:49:00Z")

</div>

I think this should do the trick, there should be an All between the turning on the lights and the “check” if the other light is off.

This makes sure that both lights are turned on before continuing with the check if the second light is on or off

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/3/7332f091adb2d1dca358d46073f614114d78dbea.png)

---

<div class="post-metadata">

**Author:** ![CHRAND](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrand/32/38633_2.png) [@CHRAND](https://community.homey.app/u/CHRAND)\
**Post date:** [October 12, 2022, 2:12pm UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/9 "2022-10-12T14:12:47Z")

</div>

Okay, I will try. Ended up with this. (Thnx @Peter_Kawa and @Arie_J_Godschalk )

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

---

<div class="post-metadata">

**Author:** ![Mark\_Wingens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mark_wingens/32/34809_2.png) [@Mark\_Wingens](https://community.homey.app/u/Mark_Wingens)\
**Post date:** [October 12, 2022, 2:31pm UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/10 "2022-10-12T14:31:22Z")

</div>

You could remove the All after the luminans 12 just draw 3 lines to the cards.  
Same is for the timer is finished, remove the all after the timer finished and draw 2 lines to the cards.

---

<div class="post-metadata">

**Author:** ![w1dg3r](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/w1dg3r/32/63108_2.png) [@w1dg3r](https://community.homey.app/u/w1dg3r)\
**Post date:** [October 18, 2022, 9:43am UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/11 "2022-10-18T09:43:32Z")

</div>

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

If I understand your text correctly, this should work

---

<div class="post-metadata">

**Author:** ![Mark\_Wingens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mark_wingens/32/34809_2.png) [@Mark\_Wingens](https://community.homey.app/u/Mark_Wingens)\
**Post date:** [October 18, 2022, 11:41am UTC](https://community.homey.app/t/an-easy-advanced-flow-or-so-i-thought-please-help/70002/12 "2022-10-18T11:41:03Z")

</div>

Yes that should work.

I have something similar working at home for me:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/c/2cd79f5e70f68bca1055632010d2d307deeeaae9.png)
