MIIO - Roborock vacuum - how to use "app_segment_clean" to clean same segment more than once

Hi all,

I’ve been using my Roborock S4Max with openhab for years via the MIIO binding. I use it to clean particular rooms with the app_segment_clean command like this code snippit:

switch(cleanRoom.state){
			case 16:{actionCommand.sendCommand("app_segment_clean[16]")}
			case 17:{actionCommand.sendCommand("app_segment_clean[17]")}
			case 18:{actionCommand.sendCommand("app_segment_clean[18]")}
			//case 19:{actionCommand.sendCommand("app_segment_clean[19]")}	//There is no room 19 in current map of either 1st or 2nd floor.
			case 20:{actionCommand.sendCommand("app_segment_clean[20]")}
			case 21:{actionCommand.sendCommand("app_segment_clean[21]")}
			default : {logInfo("Clean Room", "!!!!!!!!!!!!!!!!!!!!!! Unknown Room Value " + cleanRoom)}
		}

When using the Xiami app (rather than openHAB), when selecting room segments to clean, it gives the option to clean each segment 1x, 2x, or 3x. Is there a way to use the “app_segment_clean” command to tell my vacuum to clean my segments more than once?

1 Like