Add Map to Xiaomi vacuum cleaner

it is not my work - i just helped the person who is coding the otherone. Thank you for your response.

Is there anyone who tried to implement my solution? :hugs:

2 Likes

A good how to and Iā€™ll give it a shot

Try to watch at the README on Github:

https://github.com/asphalter/xiaomi_vacuum

I will.for the moment I do. A full clean every morning ā€¦this creates map and zoned cleaning works but Iā€™ll give it a try

Yes, itā€™s not something related with zoned cleaning, but youā€™ll have the option to see the vacuum run during the cleaning and draw the lines across the map in real time.

Hi, Iā€™m lurking here a while now and decided to root my Vacuum!
As I already had the token it was quite easy, followed the steps and used flasher.py using the ip and token.

Tried your way of adding the map and itā€™s working!
Had to change some things in the script tho, like directories and such.

Maybe you can add this more clear in your readme what to change?
For example, in the maps_to_ha.sh I had to change to RDIR, even tho above it says ā€œ### You shouldnā€™t touch anything below ###ā€.

Also in the config file I had to use my https to reach to navmap.
I hoped using just /local/navmap.png worked but unfortunately.


Anyway, itā€™s working now and thatā€™s really cool!

Thanks for your hard work.

1 Like

Amazing! Nice job! Is it version 2 (Roborock S5)? Thanks!

Mine is V1, but like he said somewhere above, maybe itā€™s also possible with V2

1 Like

Just did it. Works nice (I ofc had to modify paths and such).

Maybe add a script that SCP:s stuff into the right folders given that you run it from a third machine?

Hello @Schneider, itā€™s absolutely possible to use this system also with v2.

Iā€™ve just upgraded the github repo to explicitly confirm the compatibility with both v1 and v2.

1 Like

Thanks @Fietspomp for your confirmation, Iā€™m glad to know that youā€™re successfully using my code.

I upgraded a little bit the repo to fit better the default paths making easier to install.

Great, itā€™s working fine here, glad to see you updated it for other people to use.

The rooting is quite simple by the way, especially if you already know the token from old MiHome apk.
Then rooting is done within 10 minutes.

What a time to be alive, rooting the vacuum :rofl:

Great, thank you @asphalter! Just hadnā€™t time to look for this for a monthā€¦ and now itā€™s work (on my v2) :slight_smile:

But in your README you might change ā€˜chownā€™ into ā€˜chmodā€™.

My vacuum seems to create a new map file at least every time I start a full clean-up. It seems like the map files will stay in .hassbian/vacuum, each about 3MB. I think we should clean up the old files from time to time.

How does the FloleVac app connect to Xiaomi servers and download the maps?

Is there any way we can implement something like this?

@asphalter If HA crashes the lock-file prevent the script from running on restart. I fixed this by modifying my HA start script to delete the lock-file.

Actually i believe the FLOLE app does not access the Xiaomi Cloud as it requires home network access. Maybe its possible to download the Map from the Robot directly without modifying any firmware?

I read a post by Flole on roboter-forum that said it downloads from straight from Xiaomi. I hope there is a chance it can happen!

Seems like its a TradeSecret, i was asking the FLOLE APP Support for some tips on how to achieve it, and the answer was: They are not allowed to talk about it.

Flole got the map from the cloud. I have tried blocking internet access for my vac and the map wouldnā€™t show on Flole.