# Flow to use brightness sensor in Aqara Motion Sensor?

**URL:** <https://community.homey.app/t/flow-to-use-brightness-sensor-in-aqara-motion-sensor/27859>\
**Category:** Questions & Help\
**Created:** [April 2, 2020, 9:19pm UTC](https://community.homey.app/t/flow-to-use-brightness-sensor-in-aqara-motion-sensor/27859 "2020-04-02T21:19:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Capetrip](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/capetrip/32/19333_2.png) [@Capetrip](https://community.homey.app/u/Capetrip)\
**Post date:** [April 2, 2020, 9:19pm UTC](https://community.homey.app/t/flow-to-use-brightness-sensor-in-aqara-motion-sensor/27859/1 "2020-04-02T21:19:19Z")

</div>

I am a bit disapointed that I have to ask this question here as I thought it would be easy and I use Homey now for a few weeks but I am not able to use the brightness sensor of an Aqara Motion Sensor in a flow.

I want to switch on/off lights when there is motion but only if the Lux level is below a certain value. Unfortunately I cant find in the “if” and “and” Section of the flow any reference to the Lux level.

I thought it would be as easy as " if motion" and “Lux \< 10” then “switch lights on”. But seems not the case and I couldnt find the answer in the forum here either.

Thanks for any hint.

Kind Regards,  
Uli

---

<div class="post-metadata">

**Author:** ![Osorkon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/osorkon/32/43026_2.png) [@Osorkon](https://community.homey.app/u/Osorkon)\
**Post date:** [April 2, 2020, 10:28pm UTC](https://community.homey.app/t/flow-to-use-brightness-sensor-in-aqara-motion-sensor/27859/2 "2020-04-02T22:28:51Z")

</div>

Maybe this can help.

> [@How to use tags in a flow](https://community.homey.app/t/how-to-use-tags-in-a-flow/9285):
>
> How to use tags in a flow on 2.0.x There are a lot of questions about using the tags in the 2.0.x firmware of Homey. So here i give you a simple explanation of using tags in 2.0.x. We start with the WHEN part When making a flow you select a device in the WHEN part of the flow. In this example i used a Fibaro plug. When selecting the device you get the option to choose “The power changed” f.e. When clicked you will see the tag(s) coming with this card. We gonna use that tag later, no need in…

---

<div class="post-metadata">

**Author:** ![Capetrip](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/capetrip/32/19333_2.png) [@Capetrip](https://community.homey.app/u/Capetrip)\
**Post date:** [April 2, 2020, 10:56pm UTC](https://community.homey.app/t/flow-to-use-brightness-sensor-in-aqara-motion-sensor/27859/3 "2020-04-02T22:56:44Z")

</div>

Thanks a lot ! This indeed helps ! In the tags the motion sensors “brightness” appear and can be used in the “AND” Section.

Thanks again. I havent had experience yet using tags.

Regards;  
Uli

---

<div class="post-metadata">

**Author:** ![Morten\_Christensen1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/morten_christensen1/32/79647_2.png) [@Morten\_Christensen1](https://community.homey.app/u/Morten_Christensen1)\
**Post date:** [August 8, 2023, 6:27am UTC](https://community.homey.app/t/flow-to-use-brightness-sensor-in-aqara-motion-sensor/27859/4 "2023-08-08T06:27:11Z")

</div>

@Capetrip can you please share your flow?  
I can`t seem to figure this one out.

I want a light to turn on when motion is registered and the lux-value is below 60.  
I tried to read the post “How to use tags in a flow” but can`t make much of it.  
A flow-example would be very appreciated

Regards,  
Morten Christensen
