This document describes the available services for the MQTT Vacuum Camera integration and provides examples of how to use them in your automations or scripts.
Moves the vacuum to specific coordinates or a predefined spot.
Parameter | Type | Required | Description |
---|---|---|---|
x_coord |
Integer | Yes | X-coordinate for the vacuum to move to. |
y_coord |
Integer | Yes | Y-coordinate for the vacuum to move to. |
spot_id |
String | No | Predefined point ID for Rand256 vacuums. |
service: mqtt_vacuum_camera.vacuum_go_to
data:
entity_id: vacuum.my_vacuum
x_coord: 26300
y_coord: 22500
When using the spot_id:
service: mqtt_vacuum_camera.vacuum_go_to
data:
entity_id: vacuum.my_vacuum
x_coord: 0
y_coord: 0
spot_id: "Dock"
Starts cleaning in specified zones.
Parameter | Type | Required | Description |
---|---|---|---|
zone |
List (Array) | Yes | List of zones defined as [x1, y1, x2, y2] . |
zone_ids |
List | No | Predefined zone IDs for Rand256 vacuums. |
repeats |
Integer | No | Number of cleaning repetitions (default: 1). |
Cleaning specific coordinates:
service: mqtt_vacuum_camera.vacuum_clean_zone
data:
entity_id: vacuum.my_vacuum
zone: [[23510, 25311, 25110, 26362]]
repeats: 2
Starts cleaning in specified segments (rooms).
Parameter | Type | Required | Description |
---|---|---|---|
segments |
List | Yes | List of segment IDs or names. |
repeats |
Integer | No | Number of cleaning repetitions (default: 1). |
Cleaning specific segments:
service: mqtt_vacuum_camera.vacuum_clean_segment
data:
entity_id: vacuum.my_vacuum
segments: [1, 2, 3]
repeats: 2
Cleaning predefined segment names (Rand256):
service: mqtt_vacuum_camera.vacuum_clean_segment
data:
entity_id: vacuum.my_vacuum
segments: ["Bedroom", "Hallway"]
repeats: 1
Save the current map with a specified name (at current Rand256 only).
Parameter | Type | Required | Description |
---|---|---|---|
name |
String | Yes | Name of the map to save. |
service: mqtt_vacuum_camera.vacuum_map_save
data:
entity_id: vacuum.my_vacuum
map_name: "MY_MAP"
Load a saved map by name (at current Rand256 only).
Parameter | Type | Required | Description |
---|---|---|---|
name |
String | Yes | Name of the map to load. |
service: mqtt_vacuum_camera.vacuum_map_load
data:
entity_id: vacuum.my_vacuum
map_name: "MY_MAP"
When invoking this service, the camera reset the trims and reload the map.
Resets the map trims for the camera component.
service: mqtt_vacuum_camera.reset_trims
Reloads the Integration.
service: mqtt_vacuum_camera.reload