vzorglub
(Vincent Regaud)
June 30, 2018, 8:06am
1
Hi Everyone,
I, for one, am really excited about the Units of Measurement feature.
There are a number of units already available in the code:
List of Units
List of the unit available with the UoM (Unit of Measurement) types
Imperial:
Type
Unit
Symbol
Pressure
Inch of Mercury
inHg
Temperature
Fahrenheit
°F
Speed
Miles per Hour
mph
Length
Inch
in
Length
Foot
ft
Length
Yard
yd
Length
Chain
ch
Length
Furlong
fur
Length
Mile
mi
Length
League
lea
SI:
Type
Unit
Symbol
Acceleration
Metre per square Second
m/s²
Acceleration
Standard Gravity
ɡₙ
AmountOfSubstance
Mole
mol
AmountOfSubstance
Deutscher Hä…
I have already added the pressure unit “bar” to the UoM
My question to you all is:
What units would you like to see added to the list?
Thanks
2 Likes
hr3
(Harry)
June 30, 2018, 8:35am
2
https://en.wikibooks.org/wiki/Units_of_Measurement/Pressure
The SI unit for pressure is the pascal (Pa), equal to one newton per square metre (N·m−2 or kg·m−1·s−2). This special name for the unit was added in 1971; before that, pressure in SI was expressed in units such as N·m−2. When indicated, the zero reference is stated in parenthesis following the unit, for example 101 kPa (abs). The pound per square inch (psi) is still in widespread use in the US and Canada, for measuring, for instance, tire pressure. A letter is often appended to the psi unit to in...
http://www.reiner-tolksdorf.de/tab/einheiten_druck.html
vzorglub
(Vincent Regaud)
June 30, 2018, 9:33am
3
Thanks @hr3 , Harry,
I have added bars in a pull request already, but what units would you find useful?
1 Like
vzorglub
(Vincent Regaud)
July 3, 2018, 10:48am
4
Really, no one want to add units to the system?
Flow rates? Fuel Efficiency? pH?
rossko57
(Rossko57)
July 3, 2018, 10:56am
5
Humidity? Not sure if that has a UoM technically, as it’s usually expressed as a percentage.
Checked, and yes there are ‘absolute’ humidty units. Conversion to RH% not possible without further information (temp).
Rotational speed? e.g. rpm. I have no use-case for that!
vzorglub
(Vincent Regaud)
July 3, 2018, 10:59am
6
You are correct technically but that’s already in the units
example:
Number:Dimensionless Humidity "Humidity [%d %]"
Melkor
(Marco Salinardi)
July 3, 2018, 1:39pm
7
What about RAIN mm/hr?
And I’m using a custom absolut humidity in g/m³ that can be even espressed in g/kg (g of water on kg of air)
vzorglub
(Vincent Regaud)
July 3, 2018, 1:43pm
8
And as the other thread you would like two more units of power VA and VAR, correct?
ApparentPower VA
ReactivePower VAR
Thanks
vzorglub
(Vincent Regaud)
July 3, 2018, 1:47pm
9
Melkor:
What about RAIN mm/hr?
That would be a Speed quantity, Thanks
Melkor:
absolut humidity in g/m³
That would be a new Type of Density with the base unit as SI kg/m³
That would be a Dimensionless unit part per thousand (I plan to add this)
Melkor
(Marco Salinardi)
July 3, 2018, 2:10pm
10
yes and what about the speed Mbit/s or MByte/s?
vzorglub
(Vincent Regaud)
July 3, 2018, 2:37pm
11
New unit type DataRate what should the base unit be? bit/s or byte/s
Melkor
(Marco Salinardi)
July 3, 2018, 2:58pm
12
https://lifehacker.com/the-difference-between-bits-and-bytes-and-why-it-matte-510705022
Here they say the standard is B/s. b/s is only used when buying broadband from providers.
Must be kept in mind that the conversion between b/s to B/s is 8/1 and MB/s to B/s is 1024/1
vzorglub
(Vincent Regaud)
July 7, 2018, 11:15pm
13
It’s the week-end.
Has anyone requests for units to be added to the Units of Measurements
I am thinking of our friends from the USA.
US gallons?
PSI?
Thanks
1 Like
Have a look at the Datapoint types in KNX’s Engineering Tool Software. That will give you a pretty comprehensive list of building control related units of measurement.
This list is a bit old but is a starting point!
http://www.sti.uniurb.it/romanell/Domotica_e_Edifici_Intelligenti/110504-Lez10a-KNX-Datapoint%20Types%20v1.5.00%20AS.pdf
1 Like
rossko57
(Rossko57)
July 8, 2018, 11:32am
15
Perhaps Nautical miles (distance), Knots (speed). Someone must have OpenHAB on a boat …
1 Like
I need:
litre / second (l/s)
cubic meter / hour (m3/hour)
mas
(Markus)
January 7, 2019, 12:02pm
17
What about µS/cm ?
The electric conductivity e.g. also for soil fertility measurement as is the case with the Miflora sensor .
mas
(Markus)
May 16, 2019, 7:55am
18
So far, electric charge has only unit C, mAh is not SI unit, but it’s also common unit for charge.
Cossey
(Stewart Cossey)
August 13, 2019, 4:49am
19
@vzorglub would litres be something to add? I noticed it was missing from the list. The HP Printers deal in microlitres/millilitres for marking agent used…
cweitkamp
(Christoph Weitkamp)
August 13, 2019, 5:59am
20
AFAIK LITRE
should be available in SmartHomeUnits . It is possible to modify them by a MetricPrefix
like MICRO
or MILLI
(e.g. MetricPrefix.MILLI(SmartHomeUnits.LITRE)
). Does that work for you @Cossey ?