Example Script – Go To Location
alias: Vacuum - Trash Can
sequence:
- service: vacuum.send_command
data:
command: app_goto_target
params:
- 29363
- 23420
target:
entity_id: vacuum.roborock_s5_max
mode: single
Example Script – Clean Zone
alias: Vacuum - Kitchen Table
sequence:
- service: xiaomi_miio.vacuum_clean_zone
data:
repeats: 1
zone:
- - 30697
- 19696
- 34366
- 22753
target:
entity_id: vacuum.roborock_s5_max
mode: single
Example Automation – Execute Vacuum Zone
alias: Execute Vacuum Zone
description: ''
trigger: []
condition: []
action:
- service: vacuum.stop
target:
entity_id: vacuum.roborock_s5_max
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: script.turn_on
data_template:
entity_id: >
{% if states.input_select.vacuum_zone.state == "Play Room" %}
script.vacuum_play_room {% elif states.input_select.vacuum_zone.state ==
"Living Room" %} script.vacuum_living_room {% elif
states.input_select.vacuum_zone.state == "Kitchen Table" %}
script.vacuum_kitchen_table {% elif
states.input_select.vacuum_zone.state == "(Maintenance)" %}
script.vacuum_trash_can {% endif %}
mode: single
Simple Run Button
Place this in your /config/www directory and you can access it from /local/run.png
Perfect