I gave up on OH 2.3 Unit of Measure (UM)

Well, you don’t need UoM, but it would ease some stuff:

  • automatically change from e.g. “1500 mA” to “1.5 A”
  • automatically change from Fahrenheit to Celsius or Kelvin
  • use metric sensors in “imperial” regions and vice versa

to get the value without the unit, just use

(My_UoM_item.state as QuantityType<Number>)
1 Like