Open gizmocuz opened 5 years ago
Not critical for good operation in this case, though not bad to pay attention (units are important https://spectrum.ieee.org/aerospace/robotic-exploration/why-the-mars-probe-went-off-course ) At least, both W and Watt are right. Since the used symbol for unit of energy is kWh, usage of W for power (=energy/time) would be consistent.
Well spotted!
I guess over the years, having various sources of information, this has lead to inconsistencies
As a contributor and engineer, I would apply the rules of the SI as written here
https://en.wikipedia.org/wiki/International_System_of_Units
I quote the most important one:
"The value of a quantity is written as a number followed by a space (representing a multiplication sign) and a unit symbol; e.g., 2.21 kg, 7.3×102 m2, 22 K. This rule explicitly includes the percent sign (%)[3]:134 and the symbol for degrees Celsius (°C).[3]:133 Exceptions are the symbols for plane angular degrees, minutes, and seconds (°, ′, and ″), which are placed immediately after the number with no intervening space."
So the unit symbols are A, V, W, lx, ...
I am not sure if this conflicts with the Z-Wave Specifications though.
To make it a bit more exciting, ° and Ω are UTF symbols, eg https://en.wikipedia.org/wiki/Omega
so Units specified for the Configuration CC values are supplied by users. There has never really been any checks on consistency there, so its probably all over the place and would take some effort to clean up.
Units on any other CC should be uniform though. If they are not, then by all means, PR's are welcome.
OZW 1.6 currently uses two different notations of 'Watt' (W vs Watt)
It is an idea to create a PR that will make it consistent throughout the entire library ?
Configuration files, like FGD-212 (Dimmer 2)
Qubino (ZMNHCDx)
And if so, what is the preferred notation ?