# \#units

**URL:** https://community.openhab.org/tag/units/1602.md

[Latest](https://community.openhab.org/latest.md) · [Categories](https://community.openhab.org/categories.md) · [Tags](https://community.openhab.org/tags.md)

---

## [After 3.4.2 -\> 4.3.4 upgrade, two of five MQTT/homie sensors have wrong units](https://community.openhab.org/t/after-3-4-2-4-3-4-upgrade-two-of-five-mqtt-homie-sensors-have-wrong-units/163711)

<div class="topic-metadata">

**Author:** [@joelmr](https://community.openhab.org/u/joelmr)\
**Replies:** 4\
**Last updated:** [April 25, 2025, 7:01pm UTC](https://community.openhab.org/t/after-3-4-2-4-3-4-upgrade-two-of-five-mqtt-homie-sensors-have-wrong-units/163711 "2025-04-25T19:01:03Z")

</div>

I have five temperature sensors connected to a Raspberry pi. Three of them provide only temperature, and the other two provide temperature and humidity. I’m using the GitHub - mjcumming/Homie4: Python package for Homie v…

---

## [Finally switching to UoM: HowTo?](https://community.openhab.org/t/finally-switching-to-uom-howto/161576)

<div class="topic-metadata">

**Author:** [@binderth](https://community.openhab.org/u/binderth)\
**Replies:** 15\
**Last updated:** [January 9, 2025, 4:30pm UTC](https://community.openhab.org/t/finally-switching-to-uom-howto/161576 "2025-01-09T16:30:24Z")

</div>

My openHAB installation is over 10 years old and I’ve got loads of items. Many of them contain measurements, I still use for comparison or I’d like to have also in long-term charts. So, if I switch existing items with n…

---

## [OH4: unit - Wmin not accepted](https://community.openhab.org/t/oh4-unit-wmin-not-accepted/147972)

<div class="topic-metadata">

**Author:** [@Martin\_HD](https://community.openhab.org/u/Martin_HD)\
**Replies:** 13\
**Last updated:** [November 7, 2024, 9:10pm UTC](https://community.openhab.org/t/oh4-unit-wmin-not-accepted/147972 "2024-11-07T21:10:08Z")

</div>

Shelly sends via MQTT the Energy values only in Wmin (Watt per minute) for whatever reason… As the main Energy unit is kWh I tried to convert without using a JavaScript. With the unit concept I tried to enter Wmin in the…

---

## ["Issue with Unit Conversion from Wmin to kWh for Shelly Dimmer in OpenHAB](https://community.openhab.org/t/issue-with-unit-conversion-from-wmin-to-kwh-for-shelly-dimmer-in-openhab/160115)

<div class="topic-metadata">

**Author:** [@froido](https://community.openhab.org/u/froido)\
**Replies:** 2\
**Last updated:** [November 7, 2024, 1:53pm UTC](https://community.openhab.org/t/issue-with-unit-conversion-from-wmin-to-kwh-for-shelly-dimmer-in-openhab/160115 "2024-11-07T13:53:34Z")

</div>

I encountered an issue with OpenHAB and I wanted to share it here. I am using a Shelly Dimmer (Type 1) that outputs energy consumption in Wmin. The Shelly is connected to OpenHAB via MQTT, and I have set the unit as Wmin…

---

## [How to calculate with Unit?](https://community.openhab.org/t/how-to-calculate-with-unit/157522)

<div class="topic-metadata">

**Author:** [@kl8ter](https://community.openhab.org/u/kl8ter)\
**Replies:** 8\
**Last updated:** [July 30, 2024, 1:09pm UTC](https://community.openhab.org/t/how-to-calculate-with-unit/157522 "2024-07-30T13:09:03Z")

</div>

Hello dear community, I would like to add an offset with 30.1 kWh to a power energy item in the rule. How do I do this? Here is my attempt: logInfo("elmeter.rules SolarProd",SolarProd.toString) SolarProd = SolarProd +…

---

## [Problem (warnings about unit handling) with sitemap after update v3.4.5 to 4.1](https://community.openhab.org/t/problem-warnings-about-unit-handling-with-sitemap-after-update-v3-4-5-to-4-1/152596)

<div class="topic-metadata">

**Author:** [@Duke\_Jones](https://community.openhab.org/u/Duke_Jones)\
**Replies:** 2\
**Last updated:** [January 2, 2024, 7:37pm UTC](https://community.openhab.org/t/problem-warnings-about-unit-handling-with-sitemap-after-update-v3-4-5-to-4-1/152596 "2024-01-02T19:37:50Z")

</div>

Hi, I have just updated my Openhabian from v3.4.5 to v4.1. Everything seems to work fine but when I call up a part of my sitemap, I get errors that I don’t quite know what to do with. These are texts that are made visi…

---

## [OH4: Blockly UoM](https://community.openhab.org/t/oh4-blockly-uom/148884)

<div class="topic-metadata">

**Author:** [@Dash](https://community.openhab.org/u/Dash)\
**Replies:** 2\
**Last updated:** [August 19, 2023, 10:43pm UTC](https://community.openhab.org/t/oh4-blockly-uom/148884 "2023-08-19T22:43:10Z")

</div>

My package manager updated to 4, and I’m now desperately trying to get everything working again. I’ve cleared through a lot of errors by resaving things due to “itemRegistry” not being defined. I am now struggling with U…

---

## [Dimensionless State Description Pattern %unit% vs rpm, ppm, %, etc](https://community.openhab.org/t/dimensionless-state-description-pattern-unit-vs-rpm-ppm-etc/148723)

<div class="topic-metadata">

**Author:** [@matchews](https://community.openhab.org/u/matchews)\
**Replies:** 6\
**Last updated:** [August 16, 2023, 1:15pm UTC](https://community.openhab.org/t/dimensionless-state-description-pattern-unit-vs-rpm-ppm-etc/148723 "2023-08-16T13:15:32Z")

</div>

With the new unit metadata, its seems that the best practice is to define the state description pattern within the thing.xml using the %unit% to inform the core of the actual units (once the unit metadata is set). Is th…

---

## [How to do unit transformation using profile in OH4 GUI](https://community.openhab.org/t/how-to-do-unit-transformation-using-profile-in-oh4-gui/147907)

<div class="topic-metadata">

**Author:** [@ulfwin](https://community.openhab.org/u/ulfwin)\
**Replies:** 7\
**Last updated:** [July 22, 2023, 8:23pm UTC](https://community.openhab.org/t/how-to-do-unit-transformation-using-profile-in-oh4-gui/147907 "2023-07-22T20:23:28Z")

</div>

Platform information: Hardware: Raspberry pi 4 OS: openhabian openHAB version: 4.0.0.M4 Issue of the topic: I’m using the GUI for everything, and I would like to transform channel data from Ampere to Watt before it’…

---

## [Sensor send power as kW, OH interprets it as W](https://community.openhab.org/t/sensor-send-power-as-kw-oh-interprets-it-as-w/146750)

<div class="topic-metadata">

**Author:** [@FunMiles](https://community.openhab.org/u/FunMiles)\
**Replies:** 5\
**Last updated:** [May 19, 2023, 7:05pm UTC](https://community.openhab.org/t/sensor-send-power-as-kw-oh-interprets-it-as-w/146750 "2023-05-19T19:05:12Z")

</div>

I am running OH 3.4.4. I have a enbrighten Zigbee switch that has metering function. I am trying to display the Power and total Energy consumed. I am using in my sitemap: Default item=MT\_Instantaneous\_Demand label="…

---

## [Unit missing from modbus items if type is non-integer](https://community.openhab.org/t/unit-missing-from-modbus-items-if-type-is-non-integer/141662)

<div class="topic-metadata">

**Author:** [@zdimension](https://community.openhab.org/u/zdimension)\
**Replies:** 8\
**Last updated:** [December 10, 2022, 2:39pm UTC](https://community.openhab.org/t/unit-missing-from-modbus-items-if-type-is-non-integer/141662 "2022-12-10T14:39:09Z")

</div>

A picture is worth a thousand words: These two items have the same configuration, the same details, the same origin (modbus binding). The only difference between the two is that the first is a float32 and the second i…

---

## [OH3: Controlling temperature setpoint from DSL rules](https://community.openhab.org/t/oh3-controlling-temperature-setpoint-from-dsl-rules/124853)

<div class="topic-metadata">

**Author:** [@NCO](https://community.openhab.org/u/NCO)\
**Replies:** 5\
**Last updated:** [January 12, 2022, 7:41pm UTC](https://community.openhab.org/t/oh3-controlling-temperature-setpoint-from-dsl-rules/124853 "2022-01-12T19:41:05Z")

</div>

I am running OH3.1 on a NUC and use DSL rules. My km200 (buderus heating) temperatures are setup as temperature: Number:Temperature Heat\_HzSollDay "Wunsch-Temperatur" \<temperature\> (G…

---

## [Can OH3 use Metric if country=US?](https://community.openhab.org/t/can-oh3-use-metric-if-country-us/116944)

<div class="topic-metadata">

**Author:** [@flpaoli](https://community.openhab.org/u/flpaoli)\
**Replies:** 4\
**Last updated:** [February 13, 2021, 7:17pm UTC](https://community.openhab.org/t/can-oh3-use-metric-if-country-us/116944 "2021-02-13T19:17:23Z")

</div>

Hi, I wanted to reconfigure my OH3 to use Metric system, even though my locale country = US. From what I’ve gathered, that’s impossible in OH3. Am I wrong? If yes, how do I do it?

---

## [How are units of measurement handled in javascript?](https://community.openhab.org/t/how-are-units-of-measurement-handled-in-javascript/115873)

<div class="topic-metadata">

**Author:** [@timbms](https://community.openhab.org/u/timbms)\
**Replies:** 0\
**Last updated:** [January 30, 2021, 4:13pm UTC](https://community.openhab.org/t/how-are-units-of-measurement-handled-in-javascript/115873 "2021-01-30T16:13:22Z")

</div>

Platform information: Hardware: raspberry pi 4 OS: openhabian openHAB version: 3.0.1 Issue of the topic: Units of measurement comparison with javascript I am using the local temperature from OpenWeatherMap.org as a …

---

## [I can't get prefixes to work with DataAmount (UoM)](https://community.openhab.org/t/i-cant-get-prefixes-to-work-with-dataamount-uom/101830)

<div class="topic-metadata">

**Author:** [@mva\_one](https://community.openhab.org/u/mva_one)\
**Replies:** 9\
**Last updated:** [July 5, 2020, 8:27pm UTC](https://community.openhab.org/t/i-cant-get-prefixes-to-work-with-dataamount-uom/101830 "2020-07-05T20:27:49Z")

</div>

Hello, for many hours I tried to get the UoM (Units of Measurement) system to work properly. Now I’m almost there but one problem remains: If I use the Number:DataAmount as item with B (Byte) as the unit, it seems not p…

---

## [Updating Units of Measurement items via API (and display the right one)](https://community.openhab.org/t/updating-units-of-measurement-items-via-api-and-display-the-right-one/98897)

<div class="topic-metadata">

**Author:** [@binderth](https://community.openhab.org/u/binderth)\
**Replies:** 13\
**Last updated:** [May 16, 2020, 4:53pm UTC](https://community.openhab.org/t/updating-units-of-measurement-items-via-api-and-display-the-right-one/98897 "2020-05-16T16:53:41Z")

</div>

I’m having difficulties to understand the UoM-concept in terms of items not attached to a binding and things. As I understand, if a binding is configured and updates states, you can define the “origin” unit for the bindi…

---

## [Discussion about Units of Measurement](https://community.openhab.org/t/discussion-about-units-of-measurement/47183)

<div class="topic-metadata">

**Author:** [@vzorglub](https://community.openhab.org/u/vzorglub)\
**Replies:** 37\
**Last updated:** [January 1, 2020, 11:17pm UTC](https://community.openhab.org/t/discussion-about-units-of-measurement/47183 "2020-01-01T23:17:32Z")

</div>

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: I have already added the pressure unit “bar” to the UoM My question to y…

---

## [Override UoM conversion globally?](https://community.openhab.org/t/override-uom-conversion-globally/74796)

<div class="topic-metadata">

**Author:** [@peterloron](https://community.openhab.org/u/peterloron)\
**Replies:** 1\
**Last updated:** [May 20, 2019, 7:42am UTC](https://community.openhab.org/t/override-uom-conversion-globally/74796 "2019-05-20T07:42:08Z")

</div>

I’m running openhab 2.5.x. I’m located in the US, but I want things to report values in SI units. For example, the DarkSky binding uses the UoM system, so my temperatures are being reported by openhab in Fahrenheit. I wa…

---

## [Change display temperature units](https://community.openhab.org/t/change-display-temperature-units/72031)

<div class="topic-metadata">

**Author:** [@MacGyver33](https://community.openhab.org/u/MacGyver33)\
**Replies:** 1\
**Last updated:** [April 9, 2019, 2:39pm UTC](https://community.openhab.org/t/change-display-temperature-units/72031 "2019-04-09T14:39:06Z")

</div>

I made a temperature sensor using a Dallas DS18B20 and the MySensors.org sketches (Temperature Sensor | MySensors - Create your own Connected Home Experience). The sensor broadcasts to the MySensors MQTT gateway which is…

---

## [Problems with units (from Netatmo) after upgrading to OH2.3](https://community.openhab.org/t/problems-with-units-from-netatmo-after-upgrading-to-oh2-3/45862)

<div class="topic-metadata">

**Author:** [@Astra](https://community.openhab.org/u/Astra)\
**Replies:** 22\
**Last updated:** [October 22, 2018, 9:13pm UTC](https://community.openhab.org/t/problems-with-units-from-netatmo-after-upgrading-to-oh2-3/45862 "2018-10-22T21:13:30Z")

</div>

Hi everybody, I run OH since the release 2.0 and this is the first time I face a problem I cannot solve on my own/with all the documentation. I think that is a good sign for OH at all, but nervertheless I am still a be…

---

## [Netatmo Measurement Units](https://community.openhab.org/t/netatmo-measurement-units/32934)

<div class="topic-metadata">

**Author:** [@esloyer](https://community.openhab.org/u/esloyer)\
**Replies:** 4\
**Last updated:** [August 7, 2017, 7:58pm UTC](https://community.openhab.org/t/netatmo-measurement-units/32934 "2017-08-07T19:58:45Z")

</div>

Hi all, First time poster here so I hope I’m doing this correctly. I’ve searched the forum and could not find anything related to my topic so I’m hoping we can find a solution. I have the Netamo 2.1.0 binding running o…
