boolean isOff = _hasTrueInput(off);
boolean isOn = _hasTrueInput(on);
if ((brightLevel >= 0) && (brightLevel <= 100)) {
_transmit(new Command((_destination), x10.Command.BRIGHT,
brightLevel));
}
if ((dimLevel >= 0) && (dimLevel <= 100)) {
_transmit(new Command((_destination), x10.Command.DIM, dimLevel));
}
if (isOn) {
_transmit(new Command((_destination), x10.Command.ON));
}
if (isOff) {
_transmit(new Command((_destination), x10.Command.OFF));
}
}