# Dim lights with Lux sensor

**URL:** <https://community.homey.app/t/dim-lights-with-lux-sensor/63257>\
**Category:** Questions & Help\
**Created:** [May 2, 2022, 7:14pm UTC](https://community.homey.app/t/dim-lights-with-lux-sensor/63257 "2022-05-02T19:14:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henrik\_brob](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrik_brob/32/48890_2.png) [@Henrik\_brob](https://community.homey.app/u/Henrik_brob)\
**Post date:** [May 2, 2022, 7:14pm UTC](https://community.homey.app/t/dim-lights-with-lux-sensor/63257/1 "2022-05-02T19:14:09Z")

</div>

Hey!  
I recently bought an aqara motion sensor that also has a LUX meter.  
I would like some of my lamps to change their brightness depending on how dark it is.  
I have searched the forum and searched online for it but have not succeeded.

My thought is that, for example, when it is 500 lux, the lighting should have 40% brightness and if it is instead 400 lux, it should increase to 50%.

would be very grateful if someone could help me with this or say that it does not exist so I can stop looking 🙂

---

<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:** [May 2, 2022, 8:03pm UTC](https://community.homey.app/t/dim-lights-with-lux-sensor/63257/2 "2022-05-02T20:03:59Z")

</div>

There’s one disadvantage to use the Aqara motion sensor as luxmeter: it sends the lux value only along with motion events.

F.i. if motion was detected in the dark, the lux value will change to 0 lux; in bright sunlight it will still be at 0 lux, until a motion is detected, then it changes the lux value to the actual lux value.

Flows can be like this:  
Flow 1  
If…  
sensor lux value gets below 500  
Then…  
Dim light to 40%

Flow 2  
If…  
sensor lux value gets below 400  
Then…  
Dim light to 50%

---

<div class="post-metadata">

**Author:** ![Koen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/koen/32/69977_2.png) [@Koen](https://community.homey.app/u/Koen)\
**Post date:** [February 19, 2023, 12:32pm UTC](https://community.homey.app/t/dim-lights-with-lux-sensor/63257/3 "2023-02-19T12:32:32Z")

</div>

When i used HA i found that when the lights are on, the lux value of the sensor also increased by the lights that are turned on.  
What i did was creating a separate lux sensor somewhere facing to the outside and use that value to set a variable “dark” to true for the whole home
