Roborock / Mi Robot Room Clean Repeats

I’m using the vacuum.send_command service to clean a room. Works great!

I’m using it with the following service data:

{"entity_id": "vacuum.xiaomi_vacuum_cleaner", "command":"app_segment_clean", "params":[20]}

20 is the room identifier for my kitchen. Is there a possibility to define the repeats for cleaning the room as described for this different command? https://www.home-assistant.io/integrations/vacuum.xiaomi_miio/#service-xiaomi_miiovacuum_clean_zone

1 Like

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?

I just found out that sadly this doesn’t work. It feels much easier to clean rooms than to define zones myself.

Is it still not possible to choose repeats on segment cleaning?

Something changed?

service: vacuum.send_command
data:
  command: app_segment_clean
  params:
    - segments:
        - 16
      repeat: 2
target:
  entity_id: vacuum.robotname

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.