1
0
ansible-home-assistant/configuration/automations/vacuum.yaml
Przemek Grondek 39e2a4ac88 Vacuum improvements
clean only once a day
 disable alarm when vacuuming
2021-10-11 19:57:59 +02:00

57 lines
1.4 KiB
YAML

- id: vacuum_leave
alias: '[Vacuum] Clean after leaving home'
trigger:
- platform: state
entity_id: input_select.home_mode
to: Away
action:
- service: vacuum.start
entity_id: vacuum.robot_vacuum
mode: single
- id: vacuum_arive
alias: '[Vacuum] Stop cleaning after arrival'
trigger:
- platform: state
entity_id: input_select.home_mode
from: Away
to: Home
action:
- service: vacuum.pause
entity_id: vacuum.robot_vacuum
- delay:
seconds: 15
- service: vacuum.return_to_base
entity_id: vacuum.robot_vacuum
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