question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

So 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:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
PiotrMachowskicommented, Jan 19, 2021

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

1reaction
mortenmouldercommented, Jan 19, 2021

@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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clean up Domain Controller DNS Records with Powershell
@RichMatheisen-8856 So it means yes we have to delete dns records from both zones: _msdcs.contoso.com & contoso.com. In this case, how can we ......
Read more >
Basic Information about Cleanups | US EPA
Cleanup activities take place at active and abandoned waste sites, federal facilities and properties, and where any storage tanks have leaked.
Read more >
Metadata Cleanup of a Domain controller - ServerGuruNow
Right click a Zone in DNS console and go to properties, Under Name server tab delete the entries that are related to decommissioned...
Read more >
COASTSWEEP Cleanup List - Mass.gov
Volunteer at one of these beach cleanups organized by the Massachusetts Office of Coastal Zone Management (CZM). Most COASTSWEEP cleanups are held in...
Read more >
Transition to System 03 Begins • Updates • The Ocean Cleanup
To achieve this, we have focused our initial ocean cleaning efforts where we can make maximum impact: the Great Pacific Garbage Patch (or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found