Deebot vacuum.send_command

Hey Friends,

First time caller long time listener. Looking for some insight. I’ve got HA setup with Deebot4HAS working and communicating properly. Im trying to create a script to then program into a button to clean specific rooms.

Within the developer tools I can get the command to run via call service, but if i take that code and make a script with it, it says it runs but nothing happens. Obviously Im doing something wrong. Below is the call service code and then how i’ve put it into the script. Any insight would be much appreciated.

call service code (which works):

service: vacuum.send_command
target:
  entity_id: vacuum.john_2
data:
  command: clean_spot
  params:
    rooms: 2
    cleanings: 1

script (which does nothing)

alias: clean_kitchen
sequence:
  - service: vacuum.send_command
    target:
      entity_id: vacuum.john_2
    data:
      command: clean_spot
      params:
        rooms: 2
        cleanings: 1
mode: single

try

command: spot_area

instead of

command: clean_spot