1
0
ansible-home-assistant/configuration/automations/vacuum.yaml
2021-05-25 17:08:08 +02:00

26 lines
611 B
YAML

- id: vacuum_leave
alias: '[Vacuum] Clean after leaving home'
trigger:
- platform: state
entity_id: input_select.home_mode
to: Away
action:
- service: vacuum.start
entity_id: vacuum.robot_vacuum
mode: single
- id: vacuum_arive
alias: '[Vacuum] Stop cleaning after arrival'
trigger:
- platform: state
entity_id: input_select.home_mode
from: Away
to: Home
action:
- service: vacuum.pause
entity_id: vacuum.robot_vacuum
- delay:
seconds: 15
- service: vacuum.return_to_base
entity_id: vacuum.robot_vacuum
mode: single