mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
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:
parent
d505c01a6f
commit
54ccf847da
@ -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":
|
||||
|
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user