Xiaomi Vacuum Roborock resume function?

Hey there,
I’m trying to control my Roborock S6 through Home Assistant and everything works fine except resuming the vacuum from a paused zone clean.
There seems to be a custom fix around, but I don’t know how to make those edits in my Home Assistant:

Anyone familiar with the issue or know how to make the changes?

Hi,
For Xiaomi Roborock S5 (xiaomi_miio platform in the vacuum integration) I use this in a script to vacuum rooms by room numbers:

    - service: vacuum.send_command
      data:
        entity_id: vacuum.xiaomi_vacuum_cleaner
        command: app_segment_clean
        params: [16,19,21,25,23,17]

When paused the vacuum resumes room cleaning with this:

    - service: vacuum.send_command
      data:
        entity_id: 'vacuum.xiaomi_vacuum_cleaner'
        command: resume_segment_clean

I was previously using zone cleaning like this:

    - service: vacuum.send_command
      data:
        entity_id: vacuum.xiaomi_vacuum_cleaner
        command: app_zoned_clean
        params: [[21138,25146,26788,27096,1],[19390,21446,23290,25096,1]]

For that I would try this to resume (but I haven’t):

    - service: vacuum.send_command
      data:
        entity_id: 'vacuum.xiaomi_vacuum_cleaner'
        command: resume_zoned_clean

My first post here, I hope this can be somewhat helpful although you have the S6 :slightly_smiling_face:

1 Like

Aww thank you so much!! This actually helped me by a lot!

This one worked for me when room cleaning is paused (as a script):

vacuum_resume:
  sequence:
    - service: vacuum.send_command
      data:
        entity_id: vacuum.xiaomi_vacuum_cleaner
        command: resume_segment_clean

Again, thank you! I’ve been looking into it for a while and just gave up. Finally it works!