Hi,
Since the Hue motions sensors have been added to the current Hue integration, the conversion of the light level to lux from @robmarkcole is not transferred to the integration.
Therefore, I am now looking for a way to convert the present value to the real lux value corresponding to this conversion:
Yes I’m trying to reverse as he did in his custom sensor script. The current value I get is a light level and I want it to be as the old lux value. The script I posted above is the conversion to lux from light level (I assume).
The value output from the new integration is already the lux value. The complication being that in the custom component the words ‘light_level’ meant a raw value that needed converting into lux, but in homeassistant ‘light_level’ is a level of light measured in lux.
You do not need to make any conversions if you want a lux value as you say.