import org.openhab.core.thing.type.ChannelTypeUID;
import org.openhab.core.types.Command;
import org.openhab.core.types.CommandOption;
-import org.openhab.core.types.RefreshType;
import org.openhab.core.types.State;
import org.openhab.core.types.StateDescriptionFragmentBuilder;
import org.openhab.core.types.StateOption;
}
try {
- if (command instanceof RefreshType) {
- String state = restClient.getRemoteItemState(channelUID.getId());
- updateChannelState(channelUID.getId(), null, state, false);
- } else if (isLinked(channelUID)) {
+ if (isLinked(channelUID)) {
restClient.sendCommandToRemoteItem(channelUID.getId(), command);
String commandStr = command.toFullString();
logger.debug("Sending command {} to remote item {} succeeded",