To support alexa integration.
closing #9172
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
}
return null;
});
+ updateState(RobotCababilities.SEGMENT_CLEAN.getChannel(), new StringType("-"));
}
@Override
forceStatusUpdate();
return;
}
- if (channelUID.getId().equals(RobotCababilities.SEGMENT_CLEAN.getChannel()) && !command.toString().isEmpty()) {
+ if (channelUID.getId().equals(RobotCababilities.SEGMENT_CLEAN.getChannel()) && !command.toString().isEmpty()
+ && !command.toString().contentEquals("-")) {
sendCommand(MiIoCommand.START_SEGMENT, "[" + command.toString() + "]");
- updateState(RobotCababilities.SEGMENT_CLEAN.getChannel(), UnDefType.UNDEF);
+ updateState(RobotCababilities.SEGMENT_CLEAN.getChannel(), new StringType("-"));
forceStatusUpdate();
return;
}