Valetudo 2021.03.0 Roborock S50 working Zone Clean Up on HA core-2021.3.4

Good Day community,
in order to get my S50 to do a proper zone cleanup on HA I had to merge different sets of information from different sources so I hope it helps if it is document here at one spot.

Prerequisites:
Vacuum is running on Valetudo 2021.03.0 and is integrated in HA

Action Items:

  • Open Valetudo Webinterface

  • Go to Zones

  • Click on edit pen of the Zone you want to select

  • Click on the i for Information and copy the id e.g. da5b57f5-077e-4f2b-a381-182edae3db92

  • Open HA Webinterface

  • Go to Add Scripts

  • Select Name e.g. Vacuum Wardrobe

  • Action Type: Call Service

  • Service: Vacuum: Send command

  • Targets: Pick device: e.g.

  • Command: zoned_cleanup

  • Parameters:

zone_ids:
 - da5b57f5-077e-4f2b-a381-182edae3db92

For more zones in one script you can just add an additional line

Yaml Version looks like this:

alias: Vaccum Wardrobe
sequence:
  - service: vacuum.send_command
    data:
      params:
        zone_ids:
          - da5b57f5-077e-4f2b-a381-182edae3db92
      command: zoned_cleanup
    target:
      device_id: 149711d37c74e4ef5897c82b7f94ab74
mode: single

Besides the forum I used this reference:

Would be happy to get some help creating a blueprint or similar to be able to select zones from a dropdown or even in the script itself select the areas

1 Like

Hello,
thx for your work.
I have tried to run your solutions… but nothing happened…

i have the latest valetudo version flashed (2021.04.0) and HA is core-2021.4.6.

Have you any Idea ? Or ist that nor working on your HA ?

Thx

Script-YAML

alias: Berta - Go.to.Wohnzimmer
sequence:
  - service: vacuum.send_command
    target:
      device_id: 618668fdfa4bd05b3ad6684352408c53
    data:
      command: zoned_cleanup
      params:
        zone_ids:
          - 1b85dfeb-4270-4f35-accb-9cd39f1e9e69
mode: single

I found another way to use mqtt

Example:

type: 'custom:button-card'
name: KĂĽche
tap_action:
  action: call-service
  service: mqtt.publish
  service_data:
    topic: valetudo/robot/ZoneCleaningCapability/start/set
    payload: '["fced0acb-79be-4602-8717-0a7e61ab7628"]'
  target: {}
1 Like

Just saw your message. For me the solution is still working. Are you able to start your vacuum from HA with the standard start stop button?

Hi,
i can start/stop go to station, everything is controllable.
But my way over mqtt is ok for me. I don’t even want to change it anymore, it has no advantages or disadvantages.

Hello,

I was facing the same issue, that it’s not working. But now its obvious why…
“Since Valetudo 2021.04.0 “vacuum.send_command” is no longer supported (which was used for things like segment cleaning or goto location).”
ref. Home Assistant | Valetudo

2 Likes