# Support in advanced flow for lite and "helderheid" / flow not working

**URL:** <https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953>\
**Category:** Questions & Help\
**Tags:** app, homey-pro, advancedflow\
**Created:** [September 30, 2024, 9:10am UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953 "2024-09-30T09:10:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiasco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiasco/32/113996_2.png) [@Tiasco](https://community.homey.app/u/Tiasco)\
**Post date:** [September 30, 2024, 9:10am UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/1 "2024-09-30T09:10:19Z")

</div>

Hi,  
I’m trying to setup this flow for a lite in the hallway, but do not get the variables and Better Logic to work propably. Any advise and tips are welcome!

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

---

<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 30, 2024, 10:17am UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/3 "2024-09-30T10:17:46Z")

</div>

Welcome Tiasco!

What exactly is not working properly? Could you explain that in more detail?  
Could you explain in detail what is your goal with these flows?  
When or under what conditions is the Better Logic variable “Dagdeel” switched between “Overdag” and “Night Y/N”? And why do you use the Better Logic app for this at all?

---

<div class="post-metadata">

**Author:** ![Tiasco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiasco/32/113996_2.png) [@Tiasco](https://community.homey.app/u/Tiasco)\
**Post date:** [September 30, 2024, 11:21am UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/4 "2024-09-30T11:21:28Z")

</div>

Thank you Dirk! What actually my goal is the following:

- If the movement of the motion sensor is active,
- when the “helderheid” is less then a certain value put the lightneed on ‘Yes’
- when the “helderheid” is above a certain value put the lightneed on “No”
- when it is a certain moment of the day (dagdeel = night or dagdeel = day) look at the need
- and then when it is a timeframe between morning and late afternoon - look at the need and put the light on a certain % level On
- during 30 seconds -when there is no more movement from the sensor- turn the light “Of”  
I hope this help the goal of the flow  
Regards,  
/Tijs

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [September 30, 2024, 12:09pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/5 "2024-09-30T12:09:35Z")

</div>

When you run the flow yourself, you can see where it is running and where it is stopping. Could you have it visual for yourself where the flow is stopping?

Because dagdeel is now unkown for us. I expect it is going wrong arround that place, but I am not sure.

---

<div class="post-metadata">

**Author:** ![Tiasco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiasco/32/113996_2.png) [@Tiasco](https://community.homey.app/u/Tiasco)\
**Post date:** [September 30, 2024, 12:27pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/6 "2024-09-30T12:27:54Z")

</div>

Yes, I can see it run all the time to “no”, even when dagdeel is “nacht” at the moment.  
For the Better Logic I’ve setup the following values, perhaps the “dagdeel” in this one is not correct?

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

Also it is wiered that the “lichtbehoefte” at the moment is more then 50, see the need should be “no”. But in the flow I can see it triggers on “yes”…??

---

<div class="post-metadata">

**Author:** ![Tiasco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiasco/32/113996_2.png) [@Tiasco](https://community.homey.app/u/Tiasco)\
**Post date:** [September 30, 2024, 12:28pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/7 "2024-09-30T12:28:26Z")

</div>

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

---

<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 30, 2024, 12:33pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/8 "2024-09-30T12:33:27Z")

</div>

Unfortunately, you haven’t explained what is not working properly.  
And like @sschot, we know/understand the difference of the _ **dagdeel** _ variable.  
What means _ **Nacht J/N** _ and what means _ **Overdag** _?  
When _ **Nacht J/N** _ is = _ **N** _, then it’s _ **Overdag** _, isn’t it?

> [@Tiasco](#):
>
> For the Better Logic I’ve setup the following values, perhaps the “dagdeel” in this one is not correct?

You also need to build flows to change boolean Better Logic variables to switch between “false” and “true”.  
I don’t use the BL App, but what means variable type “trigger” and when will this variable be triggerd?

* * *

However here are first suggestions to simplify the first flow:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/82e6bfc097e84c9ae3bb24dded72ac6375f4e445.png)  
If luminance changed, and luminance **IS** \> 50 (blue line) then set _ **Lichtbehoefte** _ to **No**  
If luminance changed, and luminance **is NOT** \> 50 (orange line) then set _ **Lichtbehoefte** _ to **Yes**

However, the following two flows are better and more resource-efficient because they are not triggered as often as the above flow:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/7/57b77866f5343fb1840e9d6d2115c113e12adc38.png)  
If luminance becomes \> 50, then set _ **Lichtbehoefte** _ to **No**  
If luminance becomes \< 50, then set _ **Lichtbehoefte** _ to **Yes**

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [September 30, 2024, 12:34pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/9 "2024-09-30T12:34:04Z")

</div>

I do not fully understand your logic for it is day or it is night and what you exactly want

![2024-09-30_14h32_33](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/c/3ce62aa65b93d6e6b35deddf4c2b448fc3c8a15f.jpeg)  
Maybe this basic chart is more easy to use instead of your build system

---

<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 30, 2024, 12:38pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/10 "2024-09-30T12:38:28Z")

</div>

> [@Tiasco](#):
>
> Also it is wiered that the “lichtbehoefte” at the moment is more then 50, see the need should be “no”. But in the flow I can see it triggers on “yes”…??

Please run/test the first flow also, that the variable “lichtbehoefte” will be set to the right result.

---

<div class="post-metadata">

**Author:** ![Tiasco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiasco/32/113996_2.png) [@Tiasco](https://community.homey.app/u/Tiasco)\
**Post date:** [September 30, 2024, 1:06pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/11 "2024-09-30T13:06:05Z")

</div>

Hi,  
first flow is working ok. Now it is 23Lx and when I changed the value to 20 and 21 it shows the right trigger:

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

And I’m also not familiar with the BL app, hence asking the expertise here on the forum 😉  
If it is night it should not be Overdag, that’s correct.

The flow you described to make it more efficient is not working, as it only triggers and works when the variable has hit the number mentioned

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [September 30, 2024, 1:18pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/12 "2024-09-30T13:18:16Z")

</div>

So first step is ok.  
What happend when you now do run the second step?

And how do change the variables you have made in the BL app? That is for me right now still unclear. When you not “set” the value, there will never be a change of action

---

<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 30, 2024, 2:03pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/13 "2024-09-30T14:03:59Z")

</div>

> [@Tiasco](#):
>
> The flow you described to make it more efficient is not working, as it only triggers and works when the variable has hit the number mentioned

Of course does the flow work, believe me. And of course the variable should only be changed if the value goes above or below 50 lx.

> [@Tiasco](#):
>
> And I’m also not familiar with the BL app, hence asking the expertise here on the forum

So why do you want to use the BL app? I’m sure that your needs can be done with the build in logic features.

Once again, you didn’t answer questions from Steven and me. How are we supposed to help you then?

---

<div class="post-metadata">

**Author:** ![Tiasco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiasco/32/113996_2.png) [@Tiasco](https://community.homey.app/u/Tiasco)\
**Post date:** [September 30, 2024, 3:45pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/14 "2024-09-30T15:45:05Z")

</div>

Hi,  
to answer the question to Steven: I did run the second flow and it doesn’t look correctly to the “lichtbehoefte”. It now always answers with ‘No’. Very strange.  
And I used the advice of you both to change the BL to the standard logics.  
Do have now the following:

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

And Dirk, not sure what question you still have and I didn’t answered?  
I did run the first flow as well and then the second, does not worked.

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [September 30, 2024, 4:13pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/15 "2024-09-30T16:13:38Z")

</div>

When you check the first flow, do you see it is setting the lichtbehoefte to yes or to no, depending on the available light?

You can check your variable

 ![2024-09-30_18h08_19](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/4/445b913130f0e1705bcb6550fc35636ed92b0fec.jpeg)

When this value is changing, it should also change the flow. So please check if you are able to see the var change from value.

For quick try and error, you can just change the card to the opposite, with the function “omkeren”

![2024-09-30_18h11_14](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/401d0f442e63e385be4121ed262ecc91cc066c39.jpeg)

And with yes and no I am not sure, if this text, value or number. Perhaps that is making some additional trouble. But test and check to be sure the VAR is doing exactly what you want.

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [September 30, 2024, 4:22pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/16 "2024-09-30T16:22:15Z")

</div>

![2024-09-30_18h17_24](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f00072c1c5dee2a985c153bad8208d995bc325d1.jpeg)

 ![2024-09-30_18h17_39](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/6/36c6af498e8d93afd3947558441674e4f50483a2.jpeg)  
 ![2024-09-30_18h17_47](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/d/9d10fe3d7dff72071fa116878d68f3e9270f01e5.jpeg)  
 ![2024-09-30_18h17_56](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/8/e8739d6e8caa629a245aef4fe9a245a6d4838fc3.jpeg)  
 ![2024-09-30_18h18_09](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/0/101da417850438e5c13d4a9b97bcd1e475a7aefe.jpeg)

created var test  
set to yes manual

run flow  
stay yes  
change flow  
change to no

![2024-09-30_18h18_18](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/e/2e487b81dc396d7d6efc210bb4d3cec5fd2c40a5.jpeg)

---

<div class="post-metadata">

**Author:** ![sschot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sschot/32/116924_2.png) [@sschot](https://community.homey.app/u/sschot)\
**Post date:** [September 30, 2024, 4:24pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/17 "2024-09-30T16:24:10Z")

</div>

![2024-09-30_18h22_10](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/a/0af05d8ed71c7b7b6fe89b84669cd459c1b1fb47.jpeg)

Working

 ![2024-09-30_18h23_50](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/8/b893dedd7d898439a40174053c153830d3b1c05d.jpeg)

and working either

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [September 30, 2024, 4:50pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/18 "2024-09-30T16:50:05Z")

</div>

Are you using the Aqara motionsensor?

Because the lux-changes are not send instantly, but every now and then. Which can result in strange behavior of the flow.

 ![IMG_1750](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/1/613aba96fb43bea2549d4f405ef6475e6adce06f.jpeg)

Today the lightsensor in the motionsensorupdated its value to Homey only 5 times.

Big difference with the stand-alone Aqara lightsensor:

> **[Xiaomi Mi Light Detection Sensor - TechPunt](https://www.techpunt.nl/nl/xiaomi-mi-light-detection-sensor.html)**
>
> De Xiaomi Mi Light Detection Sensor is overal in huis te plaatsen en detecteert een licht tot 83000 lux. Zigbee 3.0-verbindingscapaciteit. Bestel ‘m nu!

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [September 30, 2024, 6:10pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/19 "2024-09-30T18:10:20Z")

</div>

My motion sensors (Aqara P1) update the luminance value (lux) only when sensing motion. So I cannot use the luminance sensor for measuring the lux at any given point in time.

Something similar might also apply to the above case. Based on the icon in the flow cards, the motion sensor does not seem to be an Aqara (those have a blue icon in the cards).

---

<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 30, 2024, 8:16pm UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/20 "2024-09-30T20:16:04Z")

</div>

> [@Wim\_Post](#):
>
> Because the lux-changes are not send instantly, but every now and then

It gets sent along with a motion event, to be precise 😉

---

<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 1, 2024, 10:04am UTC](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953/21 "2024-10-01T10:04:22Z")

</div>

> [@Tiasco](#):
>
> And Dirk, not sure what question you still have and I didn’t answered?

We, @sschot and I, asked several times how the variables of the BL app are changed. You haven’t answered that yet. But oc, if you use the build-in “It’s daytime” flow card now, the BL variable _ **Dagdeel** _ may be not needed anymore.

[Next page](https://community.homey.app/t/support-in-advanced-flow-for-lite-and-helderheid-flow-not-working/116953.md?page=2)
