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

27 lines
606 B
YAML
Raw Normal View History

2020-11-08 14:55:37 +00:00
- id: vacuum_leave
alias: '[Vaccum] Clean after leaving home'
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
condition: []
action:
- service: vacuum.turn_on
data: {}
entity_id: vacuum.robot_vacuum
mode: single
- id: vacuum_arive
alias: '[Vaccum] Stop cleaning after arrival'
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
condition: []
action:
- service: vacuum.turn_off
data: {}
entity_id: vacuum.robot_vacuum
mode: single