1
0

Fix vacuuming when not at home

This commit is contained in:
pgrondek 2021-05-25 17:08:08 +02:00
parent 1e554cc0df
commit 57bf1d3073

View File

@ -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