I updated the DTH to add preference to adjust the illuminance value. I have added this preference in the hubitat DTH a while ago.
I recently notice that SmartLight app in ST take illuminance value as integer. The SmartLight app setting has beta feature where you can specify at certain illuminance value the action will be taken. This is an issue when we are dealing with low light lux value between 0 and 1 as double.
Using the adjustment will change the illuminance to integer value. I do not think that doing this will give us the standard Lux value. However, it will let us use sensor with the smartlight app. This adjustment will change the calculation as follow.
Illuminance = MeasuredValue / factor.
You can enter factor in the latest preference to get the illum value range that make sense for you.
Here is how I come up with mine. I set this value to 10. Then, I put my room in reasonably dark (not pitch dark) where I may need light. If the reported number is too large for me to work with, I increase the factor until, I like the value. Then, I will use this value to determine the level that I need light.
FYI, the zigbee standard formula from sensor perspective is
MeasuredValue = 10,000 x log10 Illuminance + 1
Illuminance is sensor reading in Lux.
MeasuredValue is value sent in data payload by the sensor to report the lux value. This name is confusing to me. As the developer, I read this value measured from the sensor. This is actually a value zigbee want to report for a given illuminance lux value.