// ON or OFF => Set level to 255 or 0
int level = command == OnOffType.ON ? 255 : 0;
proxy.setDeviceLevel(deviceId, level);
} else if (command instanceof IncreaseDecreaseType) {
// Increase/Decrease => Incremental Brighten/Dim
InsteonHubAdjustmentType adjustmentType;
if (command == IncreaseDecreaseType.INCREASE)
adjustmentType = InsteonHubAdjustmentType.BRIGHTEN;
else
adjustmentType = InsteonHubAdjustmentType.DIM;
if (setDimTimeout(itemName)) {
proxy.startDeviceAdjustment(deviceId, adjustmentType);
}
} else if (command instanceof UpDownType) {
// Up/Down => Start Brighten/Dim
InsteonHubAdjustmentType adjustmentType;
if (command == UpDownType.UP)
adjustmentType = InsteonHubAdjustmentType.BRIGHTEN;
else
adjustmentType = InsteonHubAdjustmentType.DIM;
proxy.startDeviceAdjustment(deviceId, adjustmentType);