Some HM devices are using relative humidity (% rH/rF) as units (#13626)

Fix #13553

Signed-off-by: Martin Herbst <develop@mherbst.de>
This commit is contained in:
Martin Herbst 2022-11-03 19:21:13 +01:00 committed by GitHub
parent d505c01a6f
commit 54ccf847da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,8 @@ public class QuantityTypeConverter extends AbstractTypeConverter<QuantityType<?
return new QuantityType<>(number, SIUnits.CELSIUS);
case "V":
return new QuantityType<>(number, Units.VOLT);
case "% rH":
case "% rF":
case "%":
return new QuantityType<>(number, Units.PERCENT);
case "mHz":

View File

@ -311,6 +311,8 @@ public class MetadataUtils {
case "V":
return ITEM_TYPE_NUMBER + ":ElectricPotential";
case "100%":
case "% rH":
case "% rF":
case "%":
return ITEM_TYPE_NUMBER + ":Dimensionless";
case "mHz":