Hi!
I’m using latest 2023.7.0 and I’m trying to make a simple script to clean one room.
I followed this guide and everything worked as expected except the repeat option that is not working, no matter what I choose ( 1, 2 or 3 ) it only vacuum/mop once.
This is my script:
alias: Limpar quarto principal
sequence:
- service: vacuum.send_command
data:
command: app_segment_clean
params:
- segments:
- 19
- repeat: 3
target:
entity_id: vacuum.roborock_s7
mode: single
icon: mdi:robot-vacuum
The repeat function in the automation as I understand it is used for cross hatch cleaning of the same room, and I understand it the levels are as follows:
Repeat 1: Back and forth in one direction
Repeat 2: Back and forth and back in the perpendicular path as well
Repeat 3: It goes over the room again.
That’s why you should always post your config when asking questions.
That dash is very important in YAML: it indicates an item in a list. What you did before is to put repeat with segments in a list instead of on its own.
I am trying to create a button that will start cleaning in selected rooms. The rooms are selected based on toggles that I have created for individual rooms.
The problem I am facing is how to template the list of segments/rooms while calling the service. I have been fighting with that for several hours but can’t make it work:(
If I call the service from the below code in Developer tools it works but I cannot save the card as is. I need to add - segments: > but then the service doesn’t work.