[Xiaomi Miio] Add example for vacuum segment clean with repetition (#16776)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Dima Boger 2021-03-15 16:27:01 +03:00 committed by GitHub
parent a910742724
commit 6d01d7260f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1371,6 +1371,22 @@ automation:
segments: 1
```
The original app for Xiaomi vacuum has a nice feature of room cleaning with repetition, you can achieve the same result with repeating segments:
```yaml
automation:
- alias: "Vacuum kitchen"
trigger:
- event: start
platform: homeassistant
action:
- service: xiaomi_miio.vacuum_clean_segment
target:
entity_id: vacuum.xiaomi_vacuum
data:
segments: [1, 1]
```
### Attributes
In addition to [all of the attributes provided by the `vacuum` component](/integrations/vacuum/#attributes),