Roborock Room Cleaning Dashboard Buttons

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