From d43b9a17971ef3eeea137500594cfaece3086ce6 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Sun, 8 Nov 2020 15:55:37 +0100 Subject: [PATCH] Add vacuum automations --- automations/files/vacuum.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 automations/files/vacuum.yaml 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