Newbie here, got my first automation (and my main reason for HA) working, to wit, send my Roborock Q10 S5+ to vacuum around my Litter Robot 4 each time the latter completes a cycle.
alias: Vacuum litterbox area after cycle
description: ''
triggers:
- trigger: state
entity_id: sensor.litter_robot_4_status_code
from: ccp
to: rdy
conditions:
- condition: state
entity_id: vacuum.roborock_q10_s5
state: docked
actions:
- action: vacuum.clean_area
target:
entity_id: vacuum.roborock_q10_s5
data:
cleaning_area_id:
- litter_box
mode: single