Roborock S50 zone cleaning via script (MQTT, Valetudo)

Hi All!

Could you help me?
I would like to create a button which starts the zone cleanup with a Valetudo 0.4.0 based rooted Roborock S50 with os 1886.

scripts.yaml

vacuum_kitchen:
     alias: "vacuum kitchen"
     sequence:
       - service: vacuum.send_command
         data:
           entity_id: vacuum.xiaomi_vacuum_cleaner
           command: 'zoned_cleanup'
           params:
             'zone_ids': ['kitchen']
roborocks50.yaml
    - type: entity-button
      entity: script.vacuum_kitchen
      icon: mdi:shoe-print

configuration.yaml contains only this for the vacuum

vacuum:
  - platform: xiaomi_miio
    host: 192.168.XXX.XXX
    token: !secret roborock_token

Could you help me what am I doing wrong?


params: 
  'zone_ids': ['kitchen']

This isn’t valid YAML. I don’t know how the config is passing check.

I don’t know the roborock protocol or anything, but that line has to be fixed.

Maybe it’s json?

params: { 'zone_ids' : 'kitchen' }