Update roborock.markdown with example of service call to get_maps (#33737)

* Update roborock.markdown with example of service call to get_maps

* Update source/_integrations/roborock.markdown

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update source/_integrations/roborock.markdown

* Update source/_integrations/roborock.markdown

* Tweak formatting

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
Co-authored-by: c0ffeeca7 <k0ffeeka7@gmail.com>
This commit is contained in:
wtangofoxtrot 2024-07-15 01:25:00 -07:00 committed by GitHub
parent 132f76d78c
commit 8fa0302826
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,8 +174,19 @@ We are working on adding a lot of features to the core integration. We have reve
### How can I clean a specific room? ### How can I clean a specific room?
We plan to make the process simpler in the future, but for now, it is a multi-step process. We plan to make the process simpler in the future, but for now, it is a multi-step process.
1. Make sure to first name the rooms in the Roborock app; otherwise, they won't appear in the debug log. 1. Make sure to first name the rooms in the Roborock app; otherwise, they won't appear in the debug log.
2. Go to {% my developer_call_service service="roborock.get_maps" title="**Developer Tools** > **Services** > **Roborock: Get maps**" %}. Select your vacuum as the entity. Note that room IDs and names are only updated on the currently selected map. If you don't see the rooms you expect, you should select the other map through your app or through the `load_multi_map` service. 2. Go to {% my developer_call_service service="roborock.get_maps" title="**Developer Tools** > **Services** > **Roborock: Get Maps**" %}. Select your vacuum as the entity. Note that room IDs and names are only updated on the currently selected map.
You will get a response like this:
- **Request**: Your request should look like:
```yaml
service: roborock.get_maps
target:
entity_id: vacuum.s7_roborock
data: {}
```
- **Result**: You will get a response like this:
```json ```json
vacuum.s7_roborock: vacuum.s7_roborock:
maps: maps:
@ -185,9 +196,11 @@ vacuum.s7_roborock:
"16": Kitchen "16": Kitchen
"17": Living room "17": Living room
``` ```
3. Go back to {% my developer_call_service service="vacuum.send_command" title="**Developer Tools** > **Services** > **Vacuum: Send Command**" %} then type `app_segment_clean` as your command and `segments` with a list of the 2-digit IDs you want to clean. Then, add `repeat` with a number (ranging from 1 to 3) to determine how many times you want to clean these areas. 3. Go back to {% my developer_call_service service="vacuum.send_command" title="**Developer Tools** > **Services** > **Vacuum: Send Command**" %} then type `app_segment_clean` as your command and `segments` with a list of the 2-digit IDs you want to clean. Then, add `repeat` with a number (ranging from 1 to 3) to determine how many times you want to clean these areas.
Example: Example:
```yaml ```yaml
service: vacuum.send_command service: vacuum.send_command
data: data: