diff --git a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeUtils.java b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeUtils.java index fec258982..54603c7c0 100644 --- a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeUtils.java +++ b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeUtils.java @@ -110,7 +110,7 @@ public final class EcobeeUtils { QuantityType convertedTemp = ((QuantityType) value) .toUnit(ImperialUnits.FAHRENHEIT); if (convertedTemp != null) { - return Integer.valueOf(convertedTemp.intValue() * 10); + return Integer.valueOf((int) (convertedTemp.doubleValue() * 10)); } } throw new IllegalArgumentException("temperature is not a QuantityType");