121 lines
3.9 KiB
YAML
121 lines
3.9 KiB
YAML
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:
|
|
entity_id: vacuum.valetudo_valetudos5
|
|
data:
|
|
segments: 16
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.vacuum_room_cleaning
|
|
state: 'Bathroom'
|
|
sequence:
|
|
- service: xiaomi_miio.vacuum_clean_segment
|
|
target:
|
|
entity_id: vacuum.valetudo_valetudos5
|
|
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:
|
|
entity_id: vacuum.valetudo_valetudos5
|
|
data:
|
|
segments: 18
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.vacuum_room_cleaning
|
|
state: 'Kitchen'
|
|
sequence:
|
|
- service: xiaomi_miio.vacuum_clean_segment
|
|
target:
|
|
entity_id: vacuum.valetudo_valetudos5
|
|
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:
|
|
entity_id: vacuum.valetudo_valetudos5
|
|
data:
|
|
segments: 20
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.vacuum_room_cleaning
|
|
state: 'Bedroom'
|
|
sequence:
|
|
- service: xiaomi_miio.vacuum_clean_segment
|
|
target:
|
|
entity_id: vacuum.valetudo_valetudos5
|
|
data:
|
|
segments: 21
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.vacuum_room_cleaning
|
|
state: 'Cave'
|
|
sequence:
|
|
- service: xiaomi_miio.vacuum_clean_segment
|
|
target:
|
|
entity_id: vacuum.valetudo_valetudos5
|
|
data:
|
|
segments: 22
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.vacuum_room_cleaning
|
|
state: 'Kitchen/Hallway'
|
|
sequence:
|
|
- service: xiaomi_miio.vacuum_clean_segment
|
|
target:
|
|
entity_id: vacuum.valetudo_valetudos5
|
|
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:
|
|
- 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
|
|
entity_id: vacuum.valetudo_valetudos5
|
|
|
|
vacuum_goto_bin:
|
|
alias: Vacuum go to bin
|
|
sequence:
|
|
- service: xiaomi_miio.vacuum_goto
|
|
data:
|
|
x_coord: '23000'
|
|
y_coord: '26000'
|
|
target:
|
|
entity_id: vacuum.valetudo_valetudos5
|