diff --git a/automations/files/vacuum.yaml b/automations/files/vacuum.yaml new file mode 100644 index 0000000..c9a8144 --- /dev/null +++ b/automations/files/vacuum.yaml @@ -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 \ No newline at end of file