Map<String, Object> params = new HashMap<String, Object>();
params.put("coolHoldTemp", coolHoldTemp);
params.put("heatHoldTemp", heatHoldTemp);
- params.put("holdType", HoldType.HOLD_HOURS);
- params.put("holdHours", Integer.valueOf(holdHours.intValue()));
- return setHold(params, null, null, null, null);
+ return setHold(params, HoldType.HOLD_HOURS.toString(), holdHours, null, null);
}
public static boolean setHold(ThingActions actions, @Nullable QuantityType<Temperature> coolHoldTemp,
}
Map<String, Object> params = new HashMap<String, Object>();
params.put("holdClimateRef", holdClimateRef);
- params.put("holdType", HoldType.HOLD_HOURS);
- params.put("holdHours", Integer.valueOf(holdHours.intValue()));
- return setHold(params, null, null, null, null);
+ return setHold(params, HoldType.HOLD_HOURS.toString(), holdHours, null, null);
}
public static boolean setHold(ThingActions actions, @Nullable String holdClimateRef, @Nullable Number holdHours) {