86 lines
2.7 KiB
YAML
86 lines
2.7 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.robot_vacuum
|
||
|
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.robot_vacuum
|
||
|
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.robot_vacuum
|
||
|
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.robot_vacuum
|
||
|
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.robot_vacuum
|
||
|
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.robot_vacuum
|
||
|
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.robot_vacuum
|
||
|
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.robot_vacuum
|
||
|
data:
|
||
|
segments: 23
|
||
|
mode: single
|