From 57bf1d3073ea91b72b7f6ecbcd4ac152216e933d Mon Sep 17 00:00:00 2001 From: pgrondek Date: Tue, 25 May 2021 17:08:08 +0200 Subject: [PATCH] Fix vacuuming when not at home --- configuration/automations/vacuum.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/configuration/automations/vacuum.yaml b/configuration/automations/vacuum.yaml index ed6c80a..571681d 100644 --- a/configuration/automations/vacuum.yaml +++ b/configuration/automations/vacuum.yaml @@ -1,10 +1,9 @@ - id: vacuum_leave alias: '[Vacuum] Clean after leaving home' trigger: - - platform: zone - entity_id: device_tracker.sm_g965f - zone: zone.home - event: leave + - platform: state + entity_id: input_select.home_mode + to: Away action: - service: vacuum.start entity_id: vacuum.robot_vacuum @@ -13,14 +12,15 @@ - id: vacuum_arive alias: '[Vacuum] Stop cleaning after arrival' trigger: - - platform: zone - entity_id: device_tracker.sm_g965f - zone: zone.home - event: enter + - platform: state + entity_id: input_select.home_mode + from: Away + to: Home action: - service: vacuum.pause entity_id: vacuum.robot_vacuum - - delay: '15' + - delay: + seconds: 15 - service: vacuum.return_to_base entity_id: vacuum.robot_vacuum mode: single \ No newline at end of file