# Convert lux value

**URL:** <https://community.homey.app/t/convert-lux-value/11479>\
**Category:** Questions & Help\
**Created:** [April 5, 2019, 4:56pm UTC](https://community.homey.app/t/convert-lux-value/11479 "2019-04-05T16:56:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruud](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruud/32/64214_2.png) [@Ruud](https://community.homey.app/u/Ruud)\
**Post date:** [April 5, 2019, 4:56pm UTC](https://community.homey.app/t/convert-lux-value/11479/1 "2019-04-05T16:56:07Z")

</div>

Does anyone here happen to know how you can turn numbers into a flow? I want to convert a lux value to a number of, for example, 80 lux\> 0.8. is this possible at all?

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [April 5, 2019, 7:13pm UTC](https://community.homey.app/t/convert-lux-value/11479/3 "2019-04-05T19:13:17Z")

</div>

KSure you can 😀  
Use better logic, with a math.js command you can do al kind of calculation.  
This is a simple one:  
Pull in the tag (in my case #helderheid) from your device

i use it to prevent my light going off right after they are turned on (turning on increases lux measured lux a bit)  
They are turned on when #helderheid (measured lux) \< huiskamer donker (a variable in better logic)  
But I only turn them off if that value is 2 lux higher

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/7a3cc41aaea8aebe2f3305309e60e36c707205a3.jpeg)

You can calculate the same way with your lux:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/23d12256bfc9787300a843b2b0791ae9c82ad2bf.jpeg)  
(Sorry, you probably need to put brackets around to make it work, but I think you get the idea)
