Adding "lux" as valid unit of measurement on luminance sensors instead of just "lx" and "lm"

Currently the system only recognizes luminance sensors as “lx” or “lm”, I would like to add “lux” to that list as some devices, Fibaro for example, use the term “lux” in their unit of measurement and so they come up as generic devices in Home Assistant. It extends to HomeKit integration because sending sensors through as “lux” doesn’t even show up in HomeKit, so I had to create “HomeKit Translation Template Sensors” for all my sensors to redefine the “lux” from the Fibaro sensors to “lx” just so that Home Assistant (and then HomeKit) sees them as actual luminance sensors.

Go to configuration --> customisation. You can change it there per sensor.

1 Like

Very cool, I never explored that! Thank you! I think the feature request still applies though, for defaulting - but at least I can ditch all my custom sensors.

That default has nothing to do with homeassistant but with the fibaro integration. Contact the developer of that to let them think about changing it…

Can this be edited somehow? I export luminance data from sensors to influxdb, and the unit of measurement on being sent to influx changed from lux to lx (I have several years of data with this value as “lux” and it’s not easy to change). Looked like the value being stored by the sensor changed with a recent update to HA. I see that I can fix historical data in Home Assistant, but this doesn’t help with existing data in influxdb.

Maybe you have some luck when going to

developer tools → STATISTICS → find the entity and FIX it?