Is it possible to get zone data from the extractor/map_camera, so I can click on a zone and start a cleanup?
See original GitHub issueSo I’m a bit unsure what to do here. Everything has been implemented and Go to target
and Zoned cleanup
works. I am using map_camera
from the extractor:
type: entities
entities:
- type: 'custom:xiaomi-vacuum-map-card'
entity: vacuum.xiaomi_vacuum
map_camera: camera.xiaomi_cloud_map_extractor
camera_calibration: true
However, I would like to be able to click on each zone and start a cleanup. Exactly the same as in the app. If I do debug: true
in the card, I can only get zone data that is rectangular (4 values: x1, x2, y1, y2 right?), but my zones are essentially rooms. In the app I can select a zone and clean it up, but there is only 1 room, because I have an S5 that only supports 1 room.
If I use miiocli and get_room_mapping
I get an empty array back, because I have an S5 that doesn’t support rooms.
So how would I go about creating custom zones that are identical to the zones in the app, so I can simply click on 3 rooms and start a cleanup?
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top GitHub Comments
Right now card doesn’t support cleaning by room numbers, it will be added someday.
It’s not possible to accurately find out room coordinates, right now I have added finding a minimal rectangle that contains all “points” that are in a specific room. The only option is to do it manually
@PiotrMachowski Aaaaaaah that makes sense, okay, I get it!
room_numbers: 16, 1, 21, 2, 19, 17, 18, 20, 3, 4
So those are my room numbers. I can only count 9 rooms, but data shows 10, so one of them is probably home or something. Cool, okay!
Now I just need to be able to map a room number to a point on the map, so I can say “clean kitchen, living room, and bathroom” and hit start (not a button for each room). Thanks!