1
0
ansible-home-assistant/automations/vacuum.yaml
2021-05-24 20:26:03 +02:00

26 lines
631 B
YAML

- id: vacuum_leave
alias: '[Vacuum] Clean after leaving home'
trigger:
- platform: zone
entity_id: device_tracker.sm_g965f
zone: zone.home
event: leave
action:
- service: vacuum.start
entity_id: vacuum.robot_vacuum
mode: single
- id: vacuum_arive
alias: '[Vacuum] Stop cleaning after arrival'
trigger:
- platform: zone
entity_id: device_tracker.sm_g965f
zone: zone.home
event: enter
action:
- service: vacuum.pause
entity_id: vacuum.robot_vacuum
- delay: '15'
- service: vacuum.return_to_base
entity_id: vacuum.robot_vacuum
mode: single