I was wondering if any of you could help me out with scripting a zone cleaning of Xiaomi Vacuum.
As you know, the last number, after the last comma, is the number of passes the vacuum should do on this coordinates:
[[23746,23540,25096,25240,1]]
So, I tough it would be nice to set this myself, before sending the parameter to the vacuum. The solution was supposed to be very simple: create an input_number from 1 to 3 and set the last digit of the parameter with the state of it, like this:
Not sure why, by using the template like this shows no error on log.
The vacuum starts, gets out of the dock, turn around and says that the cleaning is done, then return do home. Maybe HA is passing the quotes to the vacuum, not sure…
Yep! I had to use quotes because there are templating involved or else the config check shows error. Already tried without it. This passes template would be very useful!
Well… alternatively you could always just make extra scripts hardcoded with 1, 2 or 3 passes and simply select the correct one based on the input number.
Do you plan an letting it vacuum more than 1 pass regularly? I only use this feature for the mopping mode.
Yeah, I think that would be the easiest and reliable way of doing it. I’ve just tested again at home and the vacuum did not went to the zone.
May I ask you: are your zones coordinates consistent? Mine just rotated the map and lost everything… Is there a method or good practices for this problem? Just bought one, arrived 4 days ago, still learning.
Yes that will happen if the vacuum starts a new fresh cleaning job. Then it will relearn the map from scratch. It can happen that the map turns. Has something to do with the orientation of the base i believe. If you only do zoned cleanups this will not happen.
105 is correct and works fine for mopping. I actually have my vacuum under the couch and for mopping ill first let it come out to a coordinate. Then let it pause to add the mop and the continue the zoned mopping. A lot of nice stuff is possible with this little thing
Amazing machine indeed… Incredible how much technology they came up with in such a small package. So many sensors and AI.
About the map reset issue: have you tried to set just a huge box around your house so if you need a full cleanup just use this zone to reach all? Maybe this will avoid the start full cleanup command the map might not reset itself, since it is a zone.
Yes that works well.
Alternatively, you can do a zone for each room and let it clean all of them in one command.
I actually have both, one big zone for daily cleanup, and several room zones if i decide to let it clean one specific room or area only.
Yes it works very well… just be sure that the base approximately keeps the same position and nobody presses the “Full Cleanup” on either HA or the Bot itself. Then its very stable!
Little tip for getting the coordinates:
Use the app Flolevac https://xiaomi.flole.de/
Simply paint your Zone or your Coordinate as you would within the MiHome App and then long press on start. It will copy the whole Code you need
Do I have any idea how to template the amounts of cleaning an area? All tries failed and vacuum will return to station directly after starting cleaning