From 717d46b99e10300fb126278531c2cb67c37bc232 Mon Sep 17 00:00:00 2001 From: Raphael Hehl <7577984+RaHehl@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:43:53 +0100 Subject: [PATCH] roborock add vacuum_goto action (#36554) * Add action `roborock.vacuum_goto` with coordinate parameters to Roborock integration documentation * Add action `roborock.get_current_position` to Roborock integration documentation * Rename actions in Roborock integration documentation for clarity * Update source/_integrations/roborock.markdown * Update source/_integrations/roborock.markdown --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_integrations/roborock.markdown | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/source/_integrations/roborock.markdown b/source/_integrations/roborock.markdown index 19e6a9ffb89..04ac7cc8ae3 100644 --- a/source/_integrations/roborock.markdown +++ b/source/_integrations/roborock.markdown @@ -129,6 +129,47 @@ Reset main brush consumable - The main brush/ roller is expected to be replaced Reset air filter - The air filter is expected to be replaced every 150 hours. +### Actions + +#### Action `roborock.set_vacuum_goto_position` + +Go the specified coordinates. + +- **Data attribute**: `entity_id` + - **Description**: Only act on a specific robot. + - **Optional**: No. +- **Data attribute**: `x_coord` + - **Description**: X-coordinate, integer value. The dock is located at x-coordinate 25500. + - **Optional**: No. +- **Data attribute**: `y_coord` + - **Description**: Y-coordinate, integer value. The dock is located at y-coordinate 25500. + - **Optional**: No. + +#### Action `roborock.get_vacuum_current_position` + +Get the current position of the vacuum. This is a cloud call and should only be used for diagnostics. This is not meant to be used for automations. Frequent requests can lead to rate limiting. + +- **Data attribute**: `entity_id` + - **Description**: Only act on a specific robot. + - **Optional**: No. + +Example: + +```yaml +action: roborock.get_vacuum_current_position +target: + entity_id: vacuum.roborock_s7 +data: {} +``` + +- **Result**: You will get a response like this: + + ```yaml + vacuum.roborock_s7: + x: 28081 + y: 25168 + ``` + ### Image You can see all the maps within your Roborock account. Keep in mind that they are device-specific. The maps require the cloud API to communicate as the maps are seemingly stored on the cloud. If someone can figure out a way around this - contributions are always welcome.