cmd = OmniLinkCmd.CMD_THERMO_RAISE_LOWER_COOL.getNumber();
} else if (command == IncreaseDecreaseType.DECREASE) {
param1 = -1;
cmd = OmniLinkCmd.CMD_THERMO_RAISE_LOWER_COOL.getNumber();
} else if (command instanceof DecimalType) {
Thermostat thermo = (Thermostat) config.getDevice();
cmd = OmniLinkCmd.CMD_THERMO_SET_COOL_POINT.getNumber();
if (thermo.isCelsius())
param1 = MessageUtils.CToOmni(((DecimalType) command)
.intValue());
else
param1 = MessageUtils.FtoOmni(((DecimalType) command)
.intValue());
} else {
logger.debug("Could not find matching command for " + command);
break;
}
commands.add(new OmniLinkControllerCommand(cmd, param1, param2));
}
break;
case THERMO_HEAT_POINT: {
if (command == IncreaseDecreaseType.INCREASE) {
param1 = 1;
cmd = OmniLinkCmd.CMD_THERMO_RAISE_LOWER_HEAT.getNumber();
} else if (command == IncreaseDecreaseType.DECREASE) {
param1 = -1;
cmd = OmniLinkCmd.CMD_THERMO_RAISE_LOWER_HEAT.getNumber();
} else if (command instanceof DecimalType) {
Thermostat thermo = (Thermostat) config.getDevice();
cmd = OmniLinkCmd.CMD_THERMO_SET_HEAT_POINT.getNumber();
if (thermo.isCelsius())
param1 = MessageUtils.CToOmni(((DecimalType) command)
.intValue());
else
param1 = MessageUtils.FtoOmni(((DecimalType) command)
.intValue());