# Advanced flow does not trigger

**URL:** <https://community.homey.app/t/advanced-flow-does-not-trigger/81988>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [June 9, 2023, 10:07am UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988 "2023-06-09T10:07:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![GianmarcoCicuzza](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gianmarcocicuzza/32/72594_2.png) [@GianmarcoCicuzza](https://community.homey.app/u/GianmarcoCicuzza)\
**Post date:** [June 9, 2023, 10:07am UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/1 "2023-06-09T10:07:08Z")

</div>

Dear community, i have created an advanced flow for my blinds.  
Essentially the idea is to lower the blinds in my house by “following” the sun to keep the temperature inside the house manageable.  
I have a fibaro smart sensor which works without any issue and i set the flow to start based on luminance and temperature levels (as per picture).  
However, it is now 12.04pm, the sensor tells me that it is reading 914lx and the temp is 26 celsius (the sensor reported the luminance to homey 14 mins ago). Any reason why the flow related to time between 11.30 and 14.30 does not start?  
Did i do anything wrong in the start of the flow?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/1/81240d3f7e459552c9bca2aba1fdddb661fab13f.png)

Thanks

PS: when i test the flow all works fine. It is just that the flow does not auto trigger based on temp and luminance + time of the day!

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [June 9, 2023, 10:39am UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/2 "2023-06-09T10:39:59Z")

</div>

Luminance probably was already above 800lux before your time window.

Luminance triggers only once, when it becomes greater than 800.

---

<div class="post-metadata">

**Author:** ![GianmarcoCicuzza](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gianmarcocicuzza/32/72594_2.png) [@GianmarcoCicuzza](https://community.homey.app/u/GianmarcoCicuzza)\
**Post date:** [June 9, 2023, 10:41am UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/3 "2023-06-09T10:41:53Z")

</div>

Hi @OH2TH correct…luminance was already above 800lux as well as temperature was already above 25.

Should i then create a logic that say if Luminance is above 800lux at that time of the day the card is YES and then if YES the flow is triggered?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [June 9, 2023, 10:50am UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/4 "2023-06-09T10:50:33Z")

</div>

You would probably need to use the time trigger to:

- trigger every N minutes
- test for the lux and/or temp conditions
- test for the time window
- execute what you want

I wouldn’t trigger any flow more often than every 5 minutes.

You could use [Action Scheduler](https://community.homey.app/t/75592) to execute every 5 minutes during the hours of 10-14. This would prevent unnecessary triggers. Time pattern for the app would be `*/5:10-14` meaning during the hours of 10:00 - 14:59, trigger every 5 mins.

---

<div class="post-metadata">

**Author:** ![GianmarcoCicuzza](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gianmarcocicuzza/32/72594_2.png) [@GianmarcoCicuzza](https://community.homey.app/u/GianmarcoCicuzza)\
**Post date:** [June 9, 2023, 10:53am UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/5 "2023-06-09T10:53:03Z")

</div>

Ok - thanks a lot!  
I am clear about the triggering each N minutes and i will have a look into action scheduler.  
The question is can I use always action scheduler to test lux and temp via the sensor?  
Thanks

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [June 9, 2023, 10:57am UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/6 "2023-06-09T10:57:09Z")

</div>

There should be variables (tags) set also for lux and temperature. You can the use logic with thise variables.

I’m travelling today, otherwise could draw a sample flow.

---

<div class="post-metadata">

**Author:** ![GianmarcoCicuzza](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gianmarcocicuzza/32/72594_2.png) [@GianmarcoCicuzza](https://community.homey.app/u/GianmarcoCicuzza)\
**Post date:** [June 9, 2023, 10:58am UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/7 "2023-06-09T10:58:27Z")

</div>

Ok thanks - i will have a look also on the advanced scheduler and then maybe come back to you if i have more questions…(i am quite new to homey so not that advanced yet) thanks for your patience and support

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [June 9, 2023, 11:02am UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/8 "2023-06-09T11:02:30Z")

</div>

Welcome to the community. I can continue tomorrow with help. But I’m sure you will solve it or get help before that.

---

<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:** [June 9, 2023, 2:37pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/9 "2023-06-09T14:37:01Z")

</div>

> [@OH2TH](#):
>
> \*/5:10-14

That would be neat, but can’t get it to work. Is it me?  
 ![Screenshot from 2023-06-09 16-12-03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/d/dd22b7b8049e28be369c75c79224ee62ace0974a.png)

![Screenshot from 2023-06-09 16-08-58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/6/6611199842229a7fec9f178eb26dfdf555e5fdd5.png)

While it is always a good practice to keep an eye on all triggers going on, I see no real issues in using a ‘every 5mins’ trigger, with a little variable delay (to prevent multiple triggers triggering flow conditions and -actions simultanuously).  
Imho things can go really wild when one uses, like, every 1 or 2 or 3 sec triggers.

My flow suggestion would be:

 ![Screenshot from 2023-06-09 16-34-11](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/5/d54d71d3c4b191f9d784b122bc50f128b10dab47.png)

---

<div class="post-metadata">

**Author:** ![Pixi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pixi/32/109087_2.png) [@Pixi](https://community.homey.app/u/Pixi)\
**Post date:** [June 9, 2023, 2:56pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/10 "2023-06-09T14:56:37Z")

</div>

i use the flows like this, works like a charm.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/9/29593680dc7e380f427eb751fc8e735360aa65bd.png)  
the flows call the conditions, and the conditions call the actions… the system load has reduced this way, is my experience.

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [June 9, 2023, 3:42pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/11 "2023-06-09T15:42:54Z")

</div>

> [@Peter\_Kawa](#):
>
> That would be neat, but can’t get it to work. Is it me?

Hmm, true. My regex does not allow that syntax. Need to check that the library used supports this, as that should be allowed by crontab syntax.

---

<div class="post-metadata">

**Author:** ![Pixi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pixi/32/109087_2.png) [@Pixi](https://community.homey.app/u/Pixi)\
**Post date:** [June 9, 2023, 3:53pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/12 "2023-06-09T15:53:00Z")

</div>

my simple advice is do not overthink,([KISS principle - Simple English Wikipedia, the free encyclopedia](https://simple.wikipedia.org/wiki/KISS_principle)) the @jobs (date and time) are cronjobs in homey.  
Drilling down using te date, time and seconds of the date and time cards should provide the requested results.

---

<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:** [June 9, 2023, 3:53pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/13 "2023-06-09T15:53:01Z")

</div>

> [@GianmarcoCicuzza](#):
>
> PS: when i test the flow all works fine. It is just that the flow does not auto trigger based on temp and luminance + time of the day!

What happens after your Conditions on the right? (At the RED Arrow Down)  
I don’t see Lines out of the Right-most conditions  
So I guess you can’t know if the Trigger was active.

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

Or is this not your complete flow?

---

<div class="post-metadata">

**Author:** ![GianmarcoCicuzza](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gianmarcocicuzza/32/72594_2.png) [@GianmarcoCicuzza](https://community.homey.app/u/GianmarcoCicuzza)\
**Post date:** [June 9, 2023, 4:17pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/14 "2023-06-09T16:17:00Z")

</div>

Hi @Dijker here is my complete flow…the bottom left part is the continuation but if i cannot fix the top part first it makes not so much sense to work on the rest.

@Peter_Kawa many thanks. I will clearly try your suggestion and let you know if that works.

Thanks

---

<div class="post-metadata">

**Author:** ![GianmarcoCicuzza](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gianmarcocicuzza/32/72594_2.png) [@GianmarcoCicuzza](https://community.homey.app/u/GianmarcoCicuzza)\
**Post date:** [June 9, 2023, 4:17pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/15 "2023-06-09T16:17:20Z")

</div>

> [@Peter\_Kawa](#):
>
> That would be neat, but can’t get it to work. Is it me?

It did not work for me as well…

---

<div class="post-metadata">

**Author:** ![GianmarcoCicuzza](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gianmarcocicuzza/32/72594_2.png) [@GianmarcoCicuzza](https://community.homey.app/u/GianmarcoCicuzza)\
**Post date:** [June 9, 2023, 5:08pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/16 "2023-06-09T17:08:39Z")

</div>

> [@Peter\_Kawa](#):
>
> My flow suggestion would be:
> 
> ![Screenshot from 2023-06-09 16-34-11](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/5/d54d71d3c4b191f9d784b122bc50f128b10dab47.png)

Hi Peter - here is how I re-arranged my flow.

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

As you can see i have added also a logic condition i.e. “Tapparelle EST Run” equal to NO.  
This is because, at the end of my flow i have added also a logic condition according to which if the flow is completed the variable is set to yes.  
Basically i am trying to avoid that within the same hour the same flow is triggered multiple times.  
I do not know if this is the correct workaround for that 🙂

To ensure that this logic works everyday i have then created a condition base on which every day those variables are re-set to NO

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/6/66b3d26a18d346d6a6cdd92cf42c5d304b18b319.png)

Maybe i am messing around with this one and making it too complex but i am learning in between.

Thanks again for your view on this one.

---

<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:** [June 9, 2023, 5:21pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/17 "2023-06-09T17:21:26Z")

</div>

> [@GianmarcoCicuzza](#):
>
> Basically i am trying to avoid that within the same hour the same flow is triggered multiple times.  
> I do not know if this is the correct workaround for that

I think when you move the logic conditions like “Tapparelle EST Run is equal to no” right after the trigger delay, the rest of the flow stops and doesn’t get evaluated anylonger when these variables are Yes.

Although this is a bit ‘nitpick’ mode, it is a good practice to check which conditional cards stops a flow for the longest time every day in this case if the Tapparelle EST has run or not.  
Like, the summer/spring cards only stops the rest of the flow in autumn/winter.

Oh, your ‘time is in between’ cards have the same values.

---

<div class="post-metadata">

**Author:** ![Pixi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pixi/32/109087_2.png) [@Pixi](https://community.homey.app/u/Pixi)\
**Post date:** [June 9, 2023, 5:26pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/18 "2023-06-09T17:26:56Z")

</div>

looking at all postings, i would suspect these are duplicate postings.  
@Dijker please check

> [@\[APP\]\[Pro\] Device Capabilities - Enhance the capabilities of devices](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1378):
>
> @Pixi would you be able to share an example of what you have with me? I am trying to have my blinds to go up and down depending on the lux but i am getting stuck. So far i have set up something like this but if my sensor is already above 800lx and 25 degrees this flows does not get triggered. I got adviced to install the Action Scheduler app but i honestly got quite lost so trying to figure out some help. Thanks a lot

---

<div class="post-metadata">

**Author:** ![GianmarcoCicuzza](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gianmarcocicuzza/32/72594_2.png) [@GianmarcoCicuzza](https://community.homey.app/u/GianmarcoCicuzza)\
**Post date:** [June 9, 2023, 5:45pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/19 "2023-06-09T17:45:19Z")

</div>

> [@Peter\_Kawa](#):
>
> I think when you move the logic conditions like “Tapparelle EST Run is equal to no” right after the trigger delay, the rest of the flow stops and doesn’t get evaluated anylonger when these variables are Yes.

Thanks for the tips Peter. So this is how i have re arranged the flow (need to reorganize to make it having a tidier look) but essentially is this how it should be\>

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

Huge thanks as always!

---

<div class="post-metadata">

**Author:** ![Pixi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pixi/32/109087_2.png) [@Pixi](https://community.homey.app/u/Pixi)\
**Post date:** [June 9, 2023, 6:03pm UTC](https://community.homey.app/t/advanced-flow-does-not-trigger/81988/20 "2023-06-09T18:03:09Z")

</div>

what do you expect when it is spring? … this flow will only work in the sumer… wich could be a bummer…

[Next page](https://community.homey.app/t/advanced-flow-does-not-trigger/81988.md?page=2)
