UoM in MainUI YAML rule

Check that very closely. What does ‘not work’ mean?
There’s a longer discussion here

But it doesn’t, the code has no idea at all about quantities and units. These are just strings. “0.00001 lx” > “5 lx” is true, because it has more characters.