I’m facing a problem while using UnitsOfMeasurement of type DataAmount with unit Byte.
Item file looks like this:
Number:DataAmount InternetDataTodayDown “Data volume Today (Downstream) [%.1f GiB]”
When I’m updating via a external script or via OH2 rest interface (with message/body/value = 16288.735 MiB) I get the following error message and the value is not updated:
[WARN ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/InternetDataTodayDown’ with an invalid status value ‘16288.735 MiB’.
I don’t see the failure in my configuration - does anybody from your side?
Or might there be a failure in the software (because with other UoM of type power everything works fine…
P.S. I also tried to use prefix G instead of Gi, but didn’t work as well.
Thanks in advance for your support
- Platform information:
- OS: Ubuntu 20.04 LTS
- Java Runtime Environment: OpenJDK Runtime Environment (Zulu 22.214.171.124-CA-linux64) (build 1.8.0_252-b14)
- openHAB version: 2.5.10