Roborock/xiaomi vacuum integration needs a fix, add repeat to segments

the current version of the roborock firmware has added the “cross-hatching” pattern when you set the (room or whole house) clean to (repeat) 2x or 3x.

Imgur

the current integration does not allow for repeats on individual rooms (segments).

there is a method here:
“The original app for Xiaomi vacuum has a nice feature of room cleaning with repetition, you can achieve the same result with repeating segments:”

however, that does not enable the cross-hatch pattern.

please add a “repeat” to segments.

Yes ! At this moment repeats are only possible on “clean zone”, but there is a workaround:

The original app for Xiaomi vacuum has a nice feature of room cleaning with repetition, you can achieve the same result with repeating segments:

automation:
  - alias: "Vacuum kitchen"
    trigger:
      - event: start
        platform: homeassistant
    action:
      - service: xiaomi_miio.vacuum_clean_segment
        target:
          entity_id: vacuum.xiaomi_vacuum
        data:
          segments: [1, 1]

like i said at the bottom of my first post, this ‘double segments’ thing does not work on s7+ w/ latest FW.

Strange, it works for me…