# Flow does not work for me with a brightness sensor

**URL:** <https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833>\
**Category:** Flows\
**Created:** [September 27, 2024, 7:52pm UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833 "2024-09-27T19:52:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maximino\_Cantero\_Mar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maximino_cantero_mar/32/79647_2.png) [@Maximino\_Cantero\_Mar](https://community.homey.app/u/Maximino_Cantero_Mar)\
**Post date:** [September 27, 2024, 7:52pm UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/1 "2024-09-27T19:52:12Z")

</div>

I have an AQARA light sensor that I want to introduce into a flow, but in the flow cards that I can select, it only says “when the brightness becomes less than” or “when the brightness becomes greater than”. But with these flow cards, if the brightness does not change, the flow does not work. How can I make it so that when the brightness is less than a value or greater than a value? the flow works. category is created to show, and explain the working of specific Flows in homey.

---

<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 27, 2024, 7:56pm UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/2 "2024-09-27T19:56:07Z")

</div>

You will probably be able to specify the exact brightness value (or greater than/less than) in an AND card. This would mean that you have to use a different trigger/WHEN card. For instance a time trigger (e.g. every minute as the WHEN card).

---

<div class="post-metadata">

**Author:** ![Maximino\_Cantero\_Mar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maximino_cantero_mar/32/79647_2.png) [@Maximino\_Cantero\_Mar](https://community.homey.app/u/Maximino_Cantero_Mar)\
**Post date:** [September 27, 2024, 8:27pm UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/3 "2024-09-27T20:27:09Z")

</div>

This is what I can select and there is no “greater than” or “less than” option. How can I fix this? I used to use the JEEDON HUB and there I had the option to put “greater than” or “less than”

 ![20240927_221837](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/a/3aac09d85484eb8d169443c22c56dc08c8162760.jpeg)

---

<div class="post-metadata">

**Author:** ![Maximino\_Cantero\_Mar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maximino_cantero_mar/32/79647_2.png) [@Maximino\_Cantero\_Mar](https://community.homey.app/u/Maximino_Cantero_Mar)\
**Post date:** [September 27, 2024, 8:30pm UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/4 "2024-09-27T20:30:58Z")

</div>

If I change the brightness manually, when changing state it works.

---

<div class="post-metadata">

**Author:** ![JonasW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jonasw/32/9425_2.png) [@JonasW](https://community.homey.app/u/JonasW)\
**Post date:** [September 27, 2024, 8:46pm UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/5 "2024-09-27T20:46:27Z")

</div>

As a trigger in When you use “The luminance changed”  
In And you use a logic card, text/number (choose luminance) becomes less (or greater) than your value then trigger your actions action.

---

<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 27, 2024, 9:02pm UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/6 "2024-09-27T21:02:35Z")

</div>

Your screenshot shows the WHEN cards. Most likely you’ll see different cards when you try to add an AND card.

If there is no AND card to specify the luminance value, then you also have the option to use a logic card to compare the luminance value tag of the sensor with the threshold you want.

EDIT: didn’t see JonasW’s above post, with the same answer. 😊

---

<div class="post-metadata">

**Author:** ![Maximino\_Cantero\_Mar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maximino_cantero_mar/32/79647_2.png) [@Maximino\_Cantero\_Mar](https://community.homey.app/u/Maximino_Cantero_Mar)\
**Post date:** [September 27, 2024, 9:57pm UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/7 "2024-09-27T21:57:38Z")

</div>

Please could you show me an example that I could refer to  
thanks

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [September 27, 2024, 10:18pm UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/8 "2024-09-27T22:18:17Z")

</div>

IF Luminance is changed  
AND Luminance is greater then 50  
THEN Turn on the light

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

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/8/b8528fc165481300f683ad99785b9c00eb84a159.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:** [September 28, 2024, 12:36am UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/9 "2024-09-28T00:36:01Z")

</div>

> [@Maximino\_Cantero\_Mar](#):
>
> if the brightness does not change, the flow does not work

Of course. When nothing changes, nothing gets triggered?

\_

> [@Maximino\_Cantero\_Mar](#):
>
> How can I make it so that when the brightness is less than a value or greater than a value?

Just use the flowcards you already showed

 ![1000034696](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/75ff078a07af1859ed95242348277a932b114ea1.jpeg)

Enter the lower or upper value and it will trigger when the brightness becomes below or above that value.  
Example for a brightness becoming above 250 lx trigger:

> ![1000034692](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/9/2908ea3c20f11fc91657a6eb317cba97e2e39995.jpeg)

> ![1000034694](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/6/7622104a36f2d6254127060786472963d9daa658.jpeg)

---

<div class="post-metadata">

**Author:** ![Maximino\_Cantero\_Mar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maximino_cantero_mar/32/79647_2.png) [@Maximino\_Cantero\_Mar](https://community.homey.app/u/Maximino_Cantero_Mar)\
**Post date:** [September 28, 2024, 11:33am UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/10 "2024-09-28T11:33:33Z")

</div>

It works for me now, the flow in the logic section does show me the options “GREATER THAN” and “LESS THAN”.  
THANKS

---

<div class="post-metadata">

**Author:** ![Maximino\_Cantero\_Mar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maximino_cantero_mar/32/79647_2.png) [@Maximino\_Cantero\_Mar](https://community.homey.app/u/Maximino_Cantero_Mar)\
**Post date:** [October 26, 2024, 9:10am UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/11 "2024-10-26T09:10:27Z")

</div>

Hello, this flow, as I said, works perfectly for me, but I am now trying to make a similar one and when I use the “AND” card and the “LOGICA” card when entering the Lux value, the program crashes and does not let me continue. Why does it not let me use the luminance now through the “LOGICA” card? Do I have to configure something or has the operation changed?

---

<div class="post-metadata">

**Author:** ![Maximino\_Cantero\_Mar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maximino_cantero_mar/32/79647_2.png) [@Maximino\_Cantero\_Mar](https://community.homey.app/u/Maximino_Cantero_Mar)\
**Post date:** [October 26, 2024, 10:11am UTC](https://community.homey.app/t/flow-does-not-work-for-me-with-a-brightness-sensor/116833/12 "2024-10-26T10:11:11Z")

</div>

The strange thing is that if I copy the “LOGICA” card “Y” from the flow that works in the new flow, it doesn’t give me an error, but if I make a new one, it does give an error.
