I recently built a parent/child app for managing my Temp, Humidity, Illumance and Energy averaging virtual devices.
The HE icon tile in the current GUI is showing 'lux' as unit. I expected 'lx'. Nowhere in my app or drivers do I use lux - so i'm certain it's coming from HE. Do I misunderstand or have the wrong expectation?
The HE docs describe 'unit lx'.
My device is reflecting lx in logs

So where is "lux' on tile coming from?

All my illuminance sensors in Hubitat report as lux.
From Google AI:
"Lx" and "lux" are the same thing, both representing the unit of measurement for illuminance, meaning they both signify the amount of light hitting a surface, with "lx" being the symbol for the unit "lux" in the International System of Units (SI)
So lux is the unit, and lx is the symbol for the unit. Just like meter is a unit, and m is the symbol for it. If something is displayed as 1 meter or 1m, it means the same thing, it is just a display preference for the unit.
Since you only save one character using lx instead of lux, I can see why Hubitat just displays the full unit name.
4 Likes
thanks for your input. I understood how it works, it was the discrepancy that I was trying to understand. The docs and the result are different. I'll just chalk it up to another HE ... feature 
Presumably the dashboard tiles have default units baked in, but they are not pulled directly from a device driver’s capabilities.
If you really find the difference between lux and lx to be unbearably confusing, while editing a tile, you can scroll down to “unit options” and click the “override device unit” and then enter whatever you’d like for the units.
2 Likes
Good point. I use that with Temp sensors to add °
Thanks for pointing that out. I must not have looked closely enough at that last screenshot.
Thankfully, as @user2574 has pointed out, lux and lx are still pretty similar words nonetheless…
1 Like
Normally - I thought I'd get a bit more agreement from developers - just days ago upper and lower case tripped me. now, I guess we just don't hold to a higher standard. thats okay - my expectations are not high.
It doesn't really matter if the docs say "lx" or "lux." They are the same thing, as it seems you know. The docs are just telling you what the expected unit is (for this or any attribute where it matters). Apps are not required to display units in any particular way, though Dashboard knows these should be lux from the capability and apparently chooses to show the whole English word. That's all that's going on.
Your other issue stems from the fact that both the Groovy language and String objects in Groovy (and most programming languages) are case-sensitive.
2 Likes