Multi selector in lovelace to variable in script

Hello.

I’m trying to create a set of toggle buttons that drive the parameters that feed into my robot vac control. The usage I’m thinking is that I’d like 5 buttons, one for each area (x4), then a “Clean” button. What kind of options do I have for doing this?

As for my current configuration, I have a button to clean each area. This is done through a script to call a “spot_area” service, which takes a room id number (or sometimes multiple) as a parameter. This works great, but there doesnt seem to be a way to interrupt the vacbot to add extra areas whilst it’s in operation (ie. sequencing). It needs to come back to the base before it can do another zone. If you add multiple room_ids to the parameter list, it will clean all of those listed in the order specified.

So far I’ve created some input_boolean objects that represent each zone that I’d like to clean, but of course, these need relating to a lookup for the corresponding room ID, then adding to the parameter list within a single script.

Please could someone help me join the dots?

Thanks

alias: clean_kitchen
sequence:
  - service: vacuum.send_command
    target:
      device_id: xyz
    data:
      command: spot_area
      params:
        rooms: 6
        cleanings: 1
mode: single