Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document new vacuum features (goto, zoned cleaning) #307

Closed
SebRut opened this issue Apr 12, 2018 · 9 comments
Closed

Document new vacuum features (goto, zoned cleaning) #307

SebRut opened this issue Apr 12, 2018 · 9 comments

Comments

@SebRut
Copy link

SebRut commented Apr 12, 2018

Recently the Mi Home App added support for region cleaning and navigation to target like the V2 for V1. Is support planned for these features and is there any way to help develop these?

@rytilahti
Copy link
Owner

rytilahti commented Apr 15, 2018

At the moment there is no easy way to get a map / coordinates from a non-rooted device, and the map itself is generated on the fly for new runs, meaning that the coordinates may change between runs. What we could do is to add those commands (move to X, start cleaning region X,Y) if someone figures out how they work, but the problem with the coordinates is harder to solve, so I don't see this happening very soon.

@rytilahti
Copy link
Owner

home-assistant/core#13879 The commands are app_goto_target and app_zoned_clean apparently, as mentioned in additional information of that issue.

@ciB89
Copy link
Contributor

ciB89 commented Apr 15, 2018

When the map is created first, the starting location of the coordinates (where the robot sits at this moment) are always [25000,25000] (or really close to that) and the rest of the map is then build around those coordinates.
On the app you can then share/save the map (once it's complete). Use the "app_goto_target" command to figure out how much your robot moves with each coordinate change. Then create a grit with those coordinates on your image of the map and you can start creating areas/rooms. Here is an example of what I mean: map
In theory - since the robot always starts from the same point and the map should not change as long as you don't move the station, this should work. It's a little bit of work, but other users from OpenHab/iobroker have reported that it works great. They had issues with the map randomly rotating 90 degrees, but that seemed to only affect a few people.

@rytilahti
Copy link
Owner

Ah, got it. The rotation may have been a bug that has been fixed in newer FW releases (or could be fixed in upcoming ones). I'm open for PRs to add the necessary support, of course.

@ciB89
Copy link
Contributor

ciB89 commented Apr 16, 2018

Im a complete newbie, I have only used guthub passively so far and never programmed in python. I gave it a shot anyway. So don't be too hard on me :) #310

@rytilahti
Copy link
Owner

Thanks for the PR, it's now merged! I think it would be nice to have your description on how to get & calculate the coordinates in our docs, so if you want to do some writing, it would be really helpful to have a link to point users asking how to use those :-)

@ciB89
Copy link
Contributor

ciB89 commented Apr 18, 2018

Sure, I'll see to it :) Might take some time though, I'm really busy the next couple of days.

@rytilahti
Copy link
Owner

Any update on this? Any ideas on #355?

@ciB89
Copy link
Contributor

ciB89 commented Aug 8, 2018

I'm really sorry, I've recently accepted a new job offer which is currently eating all of my time.. it's on my list, but I honestly can't tell when I have time to write something up. I think I can help with the referenced issue though.

@rytilahti rytilahti changed the title Support for new vacuum features Document new vacuum features (goto, zoned cleaning) Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants