Has anyone found any way to accomplish this? It seems that the native mi home app it allows setting iterations (or repeats) on the room cleaning commands. Maybe the python miio api needs to be updated?
Put this service call straight on f.i. a lovelace button and off you go cleaning repeats.
Segment 16 is the number of the Room that needs to be cleaned, check the app for your number.