Add vacuum automations
This commit is contained in:
parent
285e901087
commit
d43b9a1797
27
automations/files/vacuum.yaml
Normal file
27
automations/files/vacuum.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
- id: vacuum_leave
|
||||
alias: '[Vaccum] Clean after leaving home'
|
||||
trigger:
|
||||
- platform: geo_location
|
||||
source: sensor.sm_g965f_geocoded_location
|
||||
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:
|
||||
- platform: geo_location
|
||||
source: sensor.sm_g965f_geocoded_location
|
||||
zone: zone.home
|
||||
event: enter
|
||||
condition: []
|
||||
action:
|
||||
- service: vacuum.turn_off
|
||||
data: {}
|
||||
entity_id: vacuum.robot_vacuum
|
||||
mode: single
|
Loading…
Reference in New Issue
Block a user