First, thank you so much to the folks that have worked so hard to make OpenHAB a reality. I’ve tinkered with this software for several years, and I’m always amazed at the ability to customize things just-so.
Also, I think the updates to Unit of Measurement are great. I’ve fought some of the dragons that are outcomes from not having this as a feature. Thanks to those that have taken the time to work through the nitty-gritty details to making this feature work. Thank you!!!
I’m working through my textual config Items files for Number configurations and applying the appropriate Units of Measurement. Great!
There are a few case where I’m soliciting the proper configuration.
For my garage open opener, here.
In the write up there, one of the channels is a “Barrier State” which is represented by a number, and the number relates to a current item state, which can get translated by a translation table.
Status values are:
0 = Closed
252 = Closing
253 = Stopped
254 = Opening
255 = Open
In my mind, these numbers are pretty dimensionless, and don’t follow under any of the existing Units of Measurement page. What is the appropriate dimension to add to the Item text configuration?
Number:<what_goes_here> F1_Garage_Door_Position { unit=<what_goes_here>" }
For my weather, I’m using the OpenWeatherMap binding here.
One of the items is uvindex. The appropriate Unit of Measurement is
Intensity | Irradiance | W/m² |
---|---|---|
Intensity | Microwatt per square Centimeter | µW/cm² |
And while technically this is very correct [here], where the uvindex is a number that when multipled by 25 provides the irradiance number is mW/m², the irradiance number is meaningless to the wife unit. And so, functionally it seems like I’d have to transform into the mW/m², use the persistence store, and then transform it back to a UV index on display. Maybe I’m just lazy, but it seems like it’s just an index number with no dimension, and I should be able to store it with Number:Dimensionless
Anyways, I am seeking an answer to my question, but I’m also seeking to understand a bit better the strongly worded documentation:
Linking dimension channels to non-dimensional items is therefore discouraged and will not be permitted in future versions of openHAB.
I’m all for the “strongly discouraged” comment, but not permitted in future versions?
Sometimes a number is just a number (index value, position, state, etc) that doesn’t really have a Unit of Measurement. What gives?
Appreciate the insights!
Again, thanks so much for make this feature!
sixo