Miio2 by @KrzysztofHajdamowicz
This platform can be used to control vacuums connected to Home Assistant using Miio2 integration created by @KrzysztofHajdamowicz.
-
Uses IDs to clean specific rooms. Requires
predefined_selections
to be provided.Used service:
vacuum.vacuum_clean_segment
Example configuration
map_modes: - template: vacuum_clean_segment predefined_selections: - id: 14 outline: [[ 2.1458, 3.2131 ], [ 2.4235, 3.2152 ], [ 2.4194, 2.7409 ], [ 2.3181, 2.7409 ]] label: text: "Bedroom" x: 2.2932 y: 3.0339 offset_y: 35 icon: name: "mdi:bed" x: 2.2932 y: 3.0339 - id: 19 outline: [[ 2.1478, 2.7237 ], [ 2.3048, 2.7250 ], [ 2.3061, 2.5655 ], [ 2.1478, 2.5680 ]] label: text: "Bathroom" x: 2.2282 y: 2.6496 offset_y: 35 icon: name: "mdi:shower" x: 2.2282 y: 2.6496
Example video
ROOM.mp4
-
Uses 4 coordinates to clean rectangular zones.
Used service:
vacuum.vacuum_clean_zone
Example configuration
map_modes: - template: vacuum_clean_zone
Example video
MANUAL_RECTANGLE.mp4
-
Uses 4 coordinates to clean rectangular zones that have been defined in the configuration. Requires
predefined_selections
to be provided.Used service:
vacuum.vacuum_clean_zone
Example configuration
map_modes: - template: vacuum_clean_zone_predefined predefined_selections: - zones: [[ 2.1485, 2.8767, 2.4236, 3.2131 ], [ 2.3217, 2.7379, 2.4216, 2.8737 ]] label: text: "Bedroom" x: 2.2932 y: 3.0339 offset_y: 35 icon: name: "mdi:bed" x: 2.2932 y: 3.0339 - zones: [[ 2.7782, 2.7563, 2.9678, 2.9369 ]] label: text: "Kitchen" x: 2.8760 y: 2.8403 offset_y: 35 icon: name: "mdi:pot-mix" x: 2.8760 y: 2.8403
Example video
PREDEFINED_RECTANGLE.mp4
-
Uses a pair of coordinates for vacuum to get to a user-specified point.
Used service:
vacuum.vacuum_goto
Example configuration
map_modes: - template: vacuum_goto
Example video
MANUAL_POINT.mp4
-
Uses a pair of coordinates for vacuum to go to a point that has been defined in the configuration. Requires
predefined_selections
to be provided.Used service:
vacuum.vacuum_goto
Example configuration
map_modes: - template: vacuum_goto_predefined predefined_selections: - position: [ 2.8006, 2.8036 ] label: text: "Emptying" x: 2.8006 y: 2.8036 offset_y: 35 icon: name: "mdi:broom" x: 2.8006 y: 2.8036 - position: [ 3.2143, 2.6284 ] label: text: "Sofa" x: 3.2143 y: 2.6284 offset_y: 35 icon: name: "mdi:sofa" x: 3.2143 y: 2.6284
Example video
PREDEFINED_POINT.mp4
-
Uses a list of points to make a vacuum follow a user-defined path. Requires
follow_path
script to be installed.Used service:
script.vacuum_follow_path
Example configuration
map_modes: - template: vacuum_follow_path
Example video
MANUAL_PATH.mp4