2020-11-08 14:55:37 +00:00
|
|
|
- id: vacuum_leave
|
2021-01-14 01:18:07 +00:00
|
|
|
alias: '[Vacuum] Clean after leaving home'
|
2020-11-08 14:55:37 +00:00
|
|
|
trigger:
|
2021-05-25 15:08:08 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
to: Away
|
2020-11-08 14:55:37 +00:00
|
|
|
action:
|
2020-11-16 23:55:33 +00:00
|
|
|
- service: vacuum.start
|
2020-11-08 14:55:37 +00:00
|
|
|
entity_id: vacuum.robot_vacuum
|
|
|
|
mode: single
|
|
|
|
|
|
|
|
- id: vacuum_arive
|
2021-01-14 01:18:07 +00:00
|
|
|
alias: '[Vacuum] Stop cleaning after arrival'
|
2020-11-08 14:55:37 +00:00
|
|
|
trigger:
|
2021-05-25 15:08:08 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
from: Away
|
|
|
|
to: Home
|
2020-11-08 14:55:37 +00:00
|
|
|
action:
|
2021-01-14 01:18:07 +00:00
|
|
|
- service: vacuum.pause
|
|
|
|
entity_id: vacuum.robot_vacuum
|
2021-05-25 15:08:08 +00:00
|
|
|
- delay:
|
|
|
|
seconds: 15
|
2020-11-16 23:55:33 +00:00
|
|
|
- service: vacuum.return_to_base
|
2020-11-08 14:55:37 +00:00
|
|
|
entity_id: vacuum.robot_vacuum
|
2021-10-11 17:27:10 +00:00
|
|
|
mode: single
|
|
|
|
|
|
|
|
- id: vacuum-finish
|
|
|
|
alias: '[Vacuum] After cleaning'
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: vacuum.robot_vacuum
|
|
|
|
from: 'Cleaning'
|
|
|
|
to: 'Returning to dock'
|
|
|
|
action:
|
|
|
|
- service: input_boolean.turn_on
|
|
|
|
target:
|
|
|
|
entity_id: input_boolean.today_vacuumed
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: alarm_control_panel.ha_alarm
|
|
|
|
state: 'armed_night'
|
|
|
|
sequence:
|
|
|
|
- service: alarm_control_panel.alarm_arm_away
|
|
|
|
entity_id: alarm_control_panel.ha_alarm
|
|
|
|
|
|
|
|
- id: vacuum-daily-reset
|
|
|
|
alias: '[Vacuum] Reset daily cleaning'
|
|
|
|
trigger:
|
|
|
|
- platform: time
|
|
|
|
at: '05:00:00'
|
|
|
|
action:
|
|
|
|
- service: input_boolean.turn_off
|
|
|
|
target:
|
|
|
|
entity_id: input_boolean.today_vacuumed
|