1
0
ansible-home-assistant/scripts/70.vacuum.yaml

121 lines
3.9 KiB
YAML
Raw Normal View History

2021-08-26 14:23:04 +00:00
vacuum_clean_room:
alias: Vacuum clean room
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_select.vacuum_room_cleaning
state: 'Hallway'
sequence:
- service: xiaomi_miio.vacuum_clean_segment
target:
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2021-08-26 14:23:04 +00:00
data:
segments: 16
- conditions:
- condition: state
entity_id: input_select.vacuum_room_cleaning
state: 'Bathroom'
sequence:
- service: xiaomi_miio.vacuum_clean_segment
target:
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2021-08-26 14:23:04 +00:00
data:
segments: 17
- conditions:
- condition: state
entity_id: input_select.vacuum_room_cleaning
state: 'Living Room/Dining'
sequence:
- service: xiaomi_miio.vacuum_clean_segment
target:
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2021-08-26 14:23:04 +00:00
data:
segments: 18
- conditions:
- condition: state
entity_id: input_select.vacuum_room_cleaning
state: 'Kitchen'
sequence:
- service: xiaomi_miio.vacuum_clean_segment
target:
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2021-08-26 14:23:04 +00:00
data:
segments: 19
- conditions:
- condition: state
entity_id: input_select.vacuum_room_cleaning
state: 'Living Room/TV'
sequence:
- service: xiaomi_miio.vacuum_clean_segment
target:
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2021-08-26 14:23:04 +00:00
data:
segments: 20
- conditions:
- condition: state
entity_id: input_select.vacuum_room_cleaning
state: 'Bedroom'
sequence:
- service: xiaomi_miio.vacuum_clean_segment
target:
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2021-08-26 14:23:04 +00:00
data:
segments: 21
- conditions:
- condition: state
entity_id: input_select.vacuum_room_cleaning
state: 'Cave'
sequence:
- service: xiaomi_miio.vacuum_clean_segment
target:
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2021-08-26 14:23:04 +00:00
data:
segments: 22
- conditions:
- condition: state
entity_id: input_select.vacuum_room_cleaning
state: 'Kitchen/Hallway'
sequence:
- service: xiaomi_miio.vacuum_clean_segment
target:
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2021-08-26 14:23:04 +00:00
data:
segments: 23
mode: single
vacuum_today:
alias: Vacuum only once
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.today_vacuumed
state: 'off'
sequence:
- choose:
- conditions:
2022-04-27 21:23:05 +00:00
- condition: or
conditions:
- condition: state
entity_id: alarm_control_panel.ha_alarm
state: 'armed_away'
- condition: state
entity_id: alarm_control_panel.ha_alarm
state: 'arming'
sequence:
- service: alarm_control_panel.alarm_arm_night
entity_id: alarm_control_panel.ha_alarm
- service: vacuum.start
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2022-01-04 23:20:17 +00:00
vacuum_goto_bin:
alias: Vacuum go to bin
sequence:
- service: xiaomi_miio.vacuum_goto
data:
x_coord: '23000'
y_coord: '26000'
target:
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5