diff --git a/bundles/org.openhab.binding.comfoair/src/main/java/org/openhab/binding/comfoair/internal/ComfoAirHandler.java b/bundles/org.openhab.binding.comfoair/src/main/java/org/openhab/binding/comfoair/internal/ComfoAirHandler.java index cfb941a46..1cafc3b82 100644 --- a/bundles/org.openhab.binding.comfoair/src/main/java/org/openhab/binding/comfoair/internal/ComfoAirHandler.java +++ b/bundles/org.openhab.binding.comfoair/src/main/java/org/openhab/binding/comfoair/internal/ComfoAirHandler.java @@ -78,7 +78,8 @@ public class ComfoAirHandler extends BaseThingHandler { if (changeCommand != null) { Set keysToUpdate = getThing().getChannels().stream().map(Channel::getUID).filter(this::isLinked) .map(ChannelUID::getId).collect(Collectors.toSet()); - sendCommand(changeCommand, channelId); + State state = sendCommand(changeCommand, channelId); + updateState(channelUID, state); Collection affectedReadCommands = ComfoAirCommandType .getAffectedReadCommands(channelId, keysToUpdate); @@ -429,7 +430,8 @@ public class ComfoAirHandler extends BaseThingHandler { for (ComfoAirCommandType commandType : commandTypes) { String commandKey = commandType.getKey(); - sendCommand(readCommand, commandKey); + State state = sendCommand(readCommand, commandKey); + updateState(commandKey, state); } } }