I'm attempting to build a list for a repeatable section of yaml and I thought I could use repeat, but it seems it's only valid for actions.
how can I correct this to run the right way? the item under the regions variable should repeat for each room selected from the rooms field
I currently get that repeat is undefined.
sequence:
- action: vacuum.send_command
metadata: {}
data:
command: start
params:
pmap_id: VUFWNCMZQJ6MePE3X-_L3g
user_pmapv_id: 240903T144808
regions:
- repeat:
for_each: "{{ rooms.options }}"
sequence:
- region_id: "{{ repeat.item.value }}"
type: rid
target:
entity_id: vacuum.robert
fields:
rooms:
selector:
select:
multiple: true
custom_value: false
options:
- label: Bedroom
value: "1"
- label: Living Room
value: "2"
- label: Dining Room
value: "3"
- label: Bathroom
value: "4"
- label: Kitchen
value: "5"
default:
- 1
- 2
- 3
- 4
- 5
name: Rooms
required: true
alias: Robert Clean Room
description: ""