1
0
ansible-home-assistant/configuration/automations/vacuum.yaml

172 lines
4.8 KiB
YAML
Raw Normal View History

2020-11-08 14:55:37 +00:00
- 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
2022-08-19 18:39:11 +00:00
to: Day
2020-11-08 14:55:37 +00:00
action:
2021-01-14 01:18:07 +00:00
- service: vacuum.pause
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2021-05-25 15:08:08 +00:00
- delay:
seconds: 15
2020-11-16 23:55:33 +00:00
- service: vacuum.return_to_base
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
mode: single
- id: vacuum_finish
alias: '[Vacuum] After cleaning'
trigger:
- platform: state
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2021-11-15 23:44:28 +00:00
from: cleaning
to: returning
action:
- service: input_boolean.turn_on
target:
2022-04-29 21:51:42 +00:00
entity_id: input_boolean.vacuum_vacuumed_today
- choose:
- conditions:
- condition: state
2022-04-30 16:05:15 +00:00
entity_id: alarm_control_panel.home_alarm
2022-04-29 22:22:43 +00:00
state: 'armed_home'
sequence:
- service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.home_alarm
- service: alarm_control_panel.alarm_arm_away
2022-04-30 16:05:15 +00:00
entity_id: alarm_control_panel.home_alarm
- id: vacuum_daily_reset
alias: '[Vacuum] Reset daily cleaning'
trigger:
- platform: time
at: '05:00:00'
action:
- service: input_boolean.turn_off
target:
2022-04-29 21:51:42 +00:00
entity_id: input_boolean.vacuum_vacuumed_today
2022-04-29 19:24:48 +00:00
- id: vacuum_clean_sensors
2022-04-29 19:24:48 +00:00
alias: '[Vacuum] Clean sensors'
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.valetudo_valetudos5_sensor_cleaning
below: '60'
- platform: state
entity_id: vacuum.valetudo_valetudos5
to: Cleaning
condition:
- condition: numeric_state
entity_id: sensor.valetudo_valetudos5_sensor_cleaning
below: '60'
action:
2022-10-19 20:25:52 +00:00
- service: notify.mobile_app_iphone
2022-04-29 19:24:48 +00:00
data:
message: Clean sensors
- id: vacuum_buy_main_brush
2022-04-29 19:24:48 +00:00
alias: '[Vacuum] Buy main brush'
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.valetudo_valetudos5_main_brush
below: '420'
condition:
action:
2022-10-19 20:25:52 +00:00
- service: notify.mobile_app_iphone
2022-04-29 19:24:48 +00:00
data:
title: "Vacuum supply"
message: "Main brush has less than 7h of lifetime buy a new one"
data:
url: "https://allegro.pl/listing?string=roborock+s5+szczotka"
- id: vacuum_change_main_brush
2022-04-29 19:24:48 +00:00
alias: '[Vacuum] Change main brush'
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.valetudo_valetudos5_main_brush
below: '60'
- platform: state
entity_id: vacuum.valetudo_valetudos5
to: Cleaning
condition:
- condition: numeric_state
entity_id: sensor.valetudo_valetudos5_main_brush
below: '60'
action:
2022-10-19 20:25:52 +00:00
- service: notify.mobile_app_iphone
2022-04-29 19:24:48 +00:00
data:
message: "Main brush has {{ states('sensor.valetudo_valetudos5_main_brush') }} minutes of lifetime change it"
- id: vacuum_buy_side_brush
2022-04-29 19:24:48 +00:00
alias: '[Vacuum] Buy side brush'
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.valetudo_valetudos5_right_brush
below: '420'
condition:
action:
2022-10-19 20:25:52 +00:00
- service: notify.mobile_app_iphone
2022-04-29 19:24:48 +00:00
data:
title: "Vacuum supply"
message: "Side brush has less than 7h of lifetime buy a new one"
data:
url: "https://allegro.pl/listing?string=roborock+s5+szczotka"
- id: vacuum_change_side_brush
2022-04-29 19:24:48 +00:00
alias: '[Vacuum] Change side brush'
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.valetudo_valetudos5_right_brush
below: '60'
- platform: state
entity_id: vacuum.valetudo_valetudos5
to: Cleaning
condition:
- condition: numeric_state
entity_id: sensor.valetudo_valetudos5_right_brush
below: '60'
action:
2022-10-19 20:25:52 +00:00
- service: notify.mobile_app_iphone
2022-04-29 19:24:48 +00:00
data:
message: "Side brush has {{ states('sensor.valetudo_valetudos5_right_brush') }} minutes of lifetime change it"
- id: vacuum_buy_filter
2022-04-29 19:24:48 +00:00
alias: '[Vacuum] Buy filter'
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.valetudo_valetudos5_main_filter
below: '420'
condition:
action:
2022-10-19 20:25:52 +00:00
- service: notify.mobile_app_iphone
2022-04-29 19:24:48 +00:00
data:
title: "Vacuum supply"
message: "Filter has less than 7h of lifetime buy a new one"
data:
url: "https://allegro.pl/listing?string=roborock+s5+filtr"
- id: vacuum_change_filter
2022-04-29 19:24:48 +00:00
alias: '[Vacuum] Change filter'
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.valetudo_valetudos5_main_filter
below: '60'
- platform: state
entity_id: vacuum.valetudo_valetudos5
to: Cleaning
condition:
- condition: numeric_state
entity_id: sensor.valetudo_valetudos5_main_filter
below: '60'
action:
2022-10-19 20:25:52 +00:00
- service: notify.mobile_app_iphone
2022-04-29 19:24:48 +00:00
data:
message: "Filter has {{ states('sensor.valetudo_valetudos5_main_filter') }} minutes of lifetime change it"