public void fire() throws IllegalActionException {
super.fire();
// Check whether a command is ready
if (_commandReady()) {
Command sensedCommand = _getCommand();
byte function = sensedCommand.getFunctionByte();
byte functionOfInterest = Command.ON;
String commandValue = command.stringValue();
if (commandValue.equals("OFF")) {
functionOfInterest = Command.OFF;
} else if (commandValue.equals("ALL_LIGHTS_ON")) {
functionOfInterest = Command.ALL_LIGHTS_ON;
} else if (commandValue.equals("ALL_LIGHTS_OFF")) {
functionOfInterest = Command.ALL_LIGHTS_OFF;
} else if (commandValue.equals("ALL_UNITS_OFF")) {
functionOfInterest = Command.ALL_UNITS_OFF;
}
String sensedHouseCode = "" + sensedCommand.getHouseCode();
int sensedUnitCode = sensedCommand.getUnitCode();
String houseCodeValue = houseCode.stringValue();
int unitCodeValue = ((IntToken) unitCode.getToken()).intValue();
if (sensedHouseCode.equals(houseCodeValue)