parent
daccb66b43
commit
099ae8f06d
|
@ -78,7 +78,8 @@ public class ComfoAirHandler extends BaseThingHandler {
|
||||||
if (changeCommand != null) {
|
if (changeCommand != null) {
|
||||||
Set<String> keysToUpdate = getThing().getChannels().stream().map(Channel::getUID).filter(this::isLinked)
|
Set<String> keysToUpdate = getThing().getChannels().stream().map(Channel::getUID).filter(this::isLinked)
|
||||||
.map(ChannelUID::getId).collect(Collectors.toSet());
|
.map(ChannelUID::getId).collect(Collectors.toSet());
|
||||||
sendCommand(changeCommand, channelId);
|
State state = sendCommand(changeCommand, channelId);
|
||||||
|
updateState(channelUID, state);
|
||||||
|
|
||||||
Collection<ComfoAirCommand> affectedReadCommands = ComfoAirCommandType
|
Collection<ComfoAirCommand> affectedReadCommands = ComfoAirCommandType
|
||||||
.getAffectedReadCommands(channelId, keysToUpdate);
|
.getAffectedReadCommands(channelId, keysToUpdate);
|
||||||
|
@ -429,7 +430,8 @@ public class ComfoAirHandler extends BaseThingHandler {
|
||||||
|
|
||||||
for (ComfoAirCommandType commandType : commandTypes) {
|
for (ComfoAirCommandType commandType : commandTypes) {
|
||||||
String commandKey = commandType.getKey();
|
String commandKey = commandType.getKey();
|
||||||
sendCommand(readCommand, commandKey);
|
State state = sendCommand(readCommand, commandKey);
|
||||||
|
updateState(commandKey, state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue