1
0
ansible-home-assistant/configuration/automations/vacuum.yaml

26 lines
631 B
YAML
Raw Normal View History

2020-11-08 14:55:37 +00:00
- id: vacuum_leave
2021-01-14 01:18:07 +00:00
alias: '[Vacuum] Clean after leaving home'
2020-11-08 14:55:37 +00:00
trigger:
2020-11-13 20:19:36 +00:00
- platform: zone
entity_id: device_tracker.sm_g965f
2020-11-08 14:55:37 +00:00
zone: zone.home
event: leave
action:
2020-11-16 23:55:33 +00:00
- service: vacuum.start
2020-11-08 14:55:37 +00:00
entity_id: vacuum.robot_vacuum
mode: single
- id: vacuum_arive
2021-01-14 01:18:07 +00:00
alias: '[Vacuum] Stop cleaning after arrival'
2020-11-08 14:55:37 +00:00
trigger:
2020-11-13 20:19:36 +00:00
- platform: zone
entity_id: device_tracker.sm_g965f
2020-11-08 14:55:37 +00:00
zone: zone.home
event: enter
action:
2021-01-14 01:18:07 +00:00
- service: vacuum.pause
entity_id: vacuum.robot_vacuum
- delay: '15'
2020-11-16 23:55:33 +00:00
- service: vacuum.return_to_base
2020-11-08 14:55:37 +00:00
entity_id: vacuum.robot_vacuum
mode: single