Roborock Room Cleaning Dashboard Buttons

I currently have the following setup on an iPad for my elderly parents to start cleaning in certain rooms and groups of rooms. They choose one of the pre-selected options and an automation runs:

Each of those buttons points back to an automation:

Each one of those automations has a specific segment number for each room:

action: vacuum.send_command
data:
  command: app_segment_clean
  params:
    - segments:
        - 16
        - 17
        - 18
      repeat: 1
target:
  entity_id: vacuum.roborock_qrevo_maxv

What I would like to do is to create a select-able list of rooms where they can select multiple rooms and have it dynamically update the segments to clean the specific rooms they choose instead of having to make a button for every different combination of rooms or having to wait for one room to finish before starting another room. In theory, this should be easier to figure out and manipulate than using the actual Roborock app.

Is this possible? Any tips, templates, or guides to accomplish what I’m asking for? Thanks!

what about this needs some work on it

here is there code

alias: Test 2
description: ""
triggers:
  - trigger: state
    entity_id:
      - input_boolean.test_toggle
    from: "off"
    to: "on"
conditions:
  - condition: numeric_state
    entity_id: todo.shopping_list
    above: 0
actions:
  - action: todo.get_items
    metadata: {}
    data:
      status:
        - needs_action
    target:
      entity_id:
        - todo.shopping_list
    response_variable: items
  - repeat:
      for_each: |
        {{ items['todo.shopping_list']['items'] | map(attribute='summary') | list }}
      sequence:
        - action: todo.add_item
          metadata: {}
          data:
            item: "{{ repeat.item }}" 
          target:
            entity_id: todo.real_shopping_list
mode: single

change the

 status:
   - needs_action

to

 status:
    - completed

then click tick the rooms you want to clean complete

change the sequence to run a script

hope this point you down the right path

What approach I have is to have layers of scripts.
My setup is Vacuum areas match my HA areas, from this, I have script that takes in vacuum entity and one to multiple HA areas and returns Roborock area ID list from roborock.get_maps. Then I have script that sends vacuum to clean to HA room(s) that incorporates previous script.
Regarding dashboard, as I use mostly zigbee buttons and automations to trigger, I have no use for dashboard input. Currently there is no nice way to present script calling from dashboard directly (let me know if there is) but you can have button to popup script call interface but again, one extra step not so nice experience.
I have in scripts notifications, maintainance actions based if robot water tank is empty and created queued room system if the script is called when robot is already cleaning. Possibilities are endless and maybe we see Hacs card for scripts too or HA will Improve in this matter.