Node RED Roborock zone cleaning

Hi,

I try to start a zone cleaning with my Roborock using Node-RED but I don’t get it to work.

This is what I have at the moment but it does not work. Can someone help me?

In the Data field I use:

{"command":"app_zoned_clean","params":"[[25011,28975,29162,32521,1]]"}

Thanks.

I think this should be

{"command":"app_zoned_clean","params":[25011,28975,29162,32521],"repeat":1}

There is also another service called zone clean, that might be better for this and use

{"params":[25011,28975,29162,32521],"repeat":1}

Unortunate not. I used this service within HA and it worked fine, but I don’t have this option in Node RED.

{"command":"app_zoned_clean","params":[25011,28975,29162,32521],"repeat":1}

It does nothing with this command.

When I use this:

{"command":"app_zoned_clean","params":[25011,28975,29162,32521]}

it just starts a normal clean with every room included by ignoring the zone. :slightly_frowning_face:

Any other suggestions? :pray:

Did you try clean spot?

Yes. Didn’t work either.

On the roborock integration page it shows app_segment_clean. It also uses 3 sets of numbers not 4.

[16, '14000663', 12] ([internal room id, unique room id, room type])

Did you follow the mapping setup on the page to get the room mapping?

I finally found the problem. It was the wrong domain. There is an additional domain called roborock with the clean zone Service. Everything works perfect now! Thanks for your help anyway! :blush:

I have the same issue but don’t see any roborock domain. Are you using the native Roborock integration?

I use the Roborock and Xiaomi Vacuum Map Card Integration. Not sure, which one provides the Roborock domain.

Using a YAML to JSON on the YAML that works. Converts to the data field to:

{
    "command": "app_segment_clean",
    "params": [
      {
        "segments": [
          20,
          18
        ],
        "repeat": 1
      }
    ]
  }

credits to @ kermitdesign in NodeRed Reddit