Fix vacuuming when not at home
This commit is contained in:
parent
1e554cc0df
commit
57bf1d3073
@ -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
|
Loading…
Reference in New Issue
Block a user