[knx] Fix DPT 3.007 (Control Dimming) for non -control channels (#14504)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de> Also-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
parent
52d77eabca
commit
b023e5ac47
|
@ -888,7 +888,7 @@ public class KNXCoreTypeMapper implements KNXTypeMapper {
|
|||
DPTXlator3BitControlled translator3BitControlled = (DPTXlator3BitControlled) translator;
|
||||
if (translator3BitControlled.getStepCode() == 0) {
|
||||
logger.debug("toType: KNX DPT_Control_Dimming: break received.");
|
||||
return UnDefType.UNDEF;
|
||||
return UnDefType.NULL;
|
||||
}
|
||||
switch (subNumber) {
|
||||
case 7:
|
||||
|
@ -897,6 +897,7 @@ public class KNXCoreTypeMapper implements KNXTypeMapper {
|
|||
case 8:
|
||||
return translator3BitControlled.getControlBit() ? UpDownType.DOWN : UpDownType.UP;
|
||||
}
|
||||
break;
|
||||
case 18:
|
||||
DPTXlatorSceneControl translatorSceneControl = (DPTXlatorSceneControl) translator;
|
||||
int decimalValue = translatorSceneControl.getSceneNumber();
|
||||
|
|
|
@ -413,7 +413,7 @@ public class DeviceThingHandler extends AbstractKNXThingHandler {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if (type instanceof State) {
|
||||
if (type instanceof State && !(type instanceof UnDefType)) {
|
||||
updateState(channelUID, (State) type);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue