return DecimalType.valueOf(translatorBoolean.getValueBoolean() ? "1": "0");
default:
return translatorBoolean.getValueBoolean() ? OnOffType.ON:OnOffType.OFF;
}
case 2:
DPTXlator1BitControlled translator1BitControlled = (DPTXlator1BitControlled) translator;
int decValue= (translator1BitControlled.getControlBit() ? 2:0) + (translator1BitControlled.getValueBit() ? 1:0) ;
return new DecimalType (decValue);
case 3:
DPTXlator3BitControlled translator3BitControlled = (DPTXlator3BitControlled) translator;
if (translator3BitControlled.getStepCode()==0) {
// Not supported: break