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 - id: vacuum_leave
alias: '[Vacuum] Clean after leaving home' alias: '[Vacuum] Clean after leaving home'
trigger: trigger:
- platform: zone - platform: state
entity_id: device_tracker.sm_g965f entity_id: input_select.home_mode
zone: zone.home to: Away
event: leave
action: action:
- service: vacuum.start - service: vacuum.start
entity_id: vacuum.robot_vacuum entity_id: vacuum.robot_vacuum
@ -13,14 +12,15 @@
- id: vacuum_arive - id: vacuum_arive
alias: '[Vacuum] Stop cleaning after arrival' alias: '[Vacuum] Stop cleaning after arrival'
trigger: trigger:
- platform: zone - platform: state
entity_id: device_tracker.sm_g965f entity_id: input_select.home_mode
zone: zone.home from: Away
event: enter to: Home
action: action:
- service: vacuum.pause - service: vacuum.pause
entity_id: vacuum.robot_vacuum entity_id: vacuum.robot_vacuum
- delay: '15' - delay:
seconds: 15
- service: vacuum.return_to_base - service: vacuum.return_to_base
entity_id: vacuum.robot_vacuum entity_id: vacuum.robot_vacuum
mode: single mode: single