mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-30 00:51:58 +01:00
Fix open issues (#18113)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
This commit is contained in:
parent
baaaf7f280
commit
dfeac547ca
@ -51,8 +51,8 @@ public final class CreateVacationFunction extends AbstractFunction {
|
||||
if (convertedCoolHoldTemp == null || convertedHeatHoldTemp == null) {
|
||||
throw new IllegalArgumentException("coolHoldTemp or heatHoldTemp are not proper QuantityTypes");
|
||||
}
|
||||
params.put("coolHoldTemp", Integer.valueOf(convertedCoolHoldTemp.intValue()));
|
||||
params.put("heatHoldTemp", Integer.valueOf(convertedHeatHoldTemp.intValue()));
|
||||
params.put("coolHoldTemp", Integer.valueOf(convertedCoolHoldTemp.intValue() * 10));
|
||||
params.put("heatHoldTemp", Integer.valueOf(convertedHeatHoldTemp.intValue() * 10));
|
||||
|
||||
if (startDateTime != null) {
|
||||
params.put("startDate", YMD.format(startDateTime));
|
||||
|
@ -87,6 +87,8 @@ public class EcobeeThermostatBridgeHandler extends BaseBridgeHandler {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(EcobeeThermostatBridgeHandler.class);
|
||||
|
||||
private static final int MIN_VALID_ACTUAL_TEMPERATURE = 0;
|
||||
|
||||
private TimeZoneProvider timeZoneProvider;
|
||||
private ChannelTypeRegistry channelTypeRegistry;
|
||||
|
||||
@ -396,7 +398,12 @@ public class EcobeeThermostatBridgeHandler extends BaseBridgeHandler {
|
||||
EcobeeUtils.undefOrDate(runtime.lastStatusModified, timeZoneProvider));
|
||||
updateChannel(grp + CH_RUNTIME_DATE, EcobeeUtils.undefOrString(runtime.runtimeDate));
|
||||
updateChannel(grp + CH_RUNTIME_INTERVAL, EcobeeUtils.undefOrDecimal(runtime.runtimeInterval));
|
||||
updateChannel(grp + CH_ACTUAL_TEMPERATURE, EcobeeUtils.undefOrTemperature(runtime.actualTemperature));
|
||||
if (runtime.actualTemperature > MIN_VALID_ACTUAL_TEMPERATURE) {
|
||||
updateChannel(grp + CH_ACTUAL_TEMPERATURE, EcobeeUtils.undefOrTemperature(runtime.actualTemperature));
|
||||
} else {
|
||||
logger.debug("Skipping update of actual temperature because temperature {} below min threshold of {}",
|
||||
runtime.actualTemperature, MIN_VALID_ACTUAL_TEMPERATURE);
|
||||
}
|
||||
updateChannel(grp + CH_ACTUAL_HUMIDITY, EcobeeUtils.undefOrQuantity(runtime.actualHumidity, Units.PERCENT));
|
||||
updateChannel(grp + CH_RAW_TEMPERATURE, EcobeeUtils.undefOrTemperature(runtime.rawTemperature));
|
||||
updateChannel(grp + CH_SHOW_ICON_MODE, EcobeeUtils.undefOrDecimal(runtime.showIconMode));
|
||||
|
Loading…
Reference in New Issue
Block a user