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
|