Add docs in vaccum.xiaomi_miio.markdown with how to clean a sp… (#11676)

* Add documentation in vaccum.xiaomi_miio.markdown with instructions how to clean a specific room

It specifies how the command send_command can be used for Xiaomi vacuums.

* Update Xiaomi vacuum docs on how to clean a room

An example is specified under a new section. The service vacuum.send_command is not documented here anymore.

* ✏️ Tweaks

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Daniel 2020-01-09 11:25:23 +01:00 committed by Franck Nijhof
parent 4a902a7835
commit 5c307536bf

View File

@ -315,6 +315,30 @@ The information output is:
- `Address` - The IP that the device has on the network.
- `Token` - The token of the device or `???` if it could not be automatically determined.
## Example on how to clean a specific room
Example script using [`vacuum.send_command`](/integrations/vacuum/) to clean a specific room:
```yaml
vacuum_kitchen:
alias: "Clean the kitchen"
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
command: app_segment_clean
params: [18]
```
Where params specify room numbers, for multiple rooms, params can be specified like `[17,18]`.
Valid room numbers can be retrieved using miio command-line tool. It will only give room numbers and not the room names. To get the room names, one can just test the app_segment_clean command and see which room it cleans.
```bash
miio protocol call <ip of the vacuum> get_room_mapping
```
## Retrieving Zoned Cleaning Coordinates
### Using FloleVac (Android)