This repository has been archived by the owner on May 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 782
kWh are not recognized as Energy values #5341
Labels
Comments
Closed
I have created a patch for that. Please note, that |
I was a little bit more searching and found here https://en.wikipedia.org/wiki/Kilowatt_hour:
The main usage in OH2 is for reference of electrical power, so I would like to see (k)Wh. |
|
I‘ll see what can be done about that. |
Thanks. I already found a solution. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The recently introduced unit support has an "Energy" dimension defined, which uses by default the SI unit "J" (Joule).
In practice, the alternative "Wh" are used much more frequently and thus I would expect this unit to be usable for items with
Energy
dimension.I defined an Item like this:
Sending a value on the console
results in
and no unit being assigned to the item state.
As energy is likely the most common use case besides weather for units, I'd consider this a rather critical issue that needs to be addressed quickly. See also https://github.com/openhab/openhab2-addons/pull/2167#discussion_r178578851.
The text was updated successfully, but these errors were encountered: