Howto: Xiaomi vacuum zoned cleaning

Just got the vacuum today. Before integrating with HASS I am trying to make it work.

Currently I use Chinese server in Mi Home app (at the very beginning was the only way to put it in developer mode and integrate Xiaomi sensors in HASS), now after adding the Vacuum it says to change to local server (I am in Europe), but if I do I loose all Xiaomi other devices.

How did you all manage?

How do i use the services call to send a goto command?

Tried like vacuum.send_command
Than input
{
“entity_id”: “vacuum.roomba”,
“command”: “app_goto_target”,“params”:"[26700,26800]"
}

Nothing happens. Although the same stuff with command:app_zoned_clean and params [[26600,21800,28727,26800,1]]
initiates the zone cleaning… Using the v2 roborock

1 Like

This script works for me:

roborock_come_out:
    alias: Roborock come out  
    sequence:
      - service: vacuum.send_command
        data:
          entity_id: vacuum.xiaomi_vacuum_cleaner
          command: app_goto_target
          params: [25500,24800]

Why is your entitiy roomba?

Hi Guys,
I successfully integrated my vacuum v1 to HA with zoned cleaning by following this great forum. But I’m facing to this strange issue.

  1. First, run the clean a house - map is generated, ok.
  2. I did an automation script to run zoned cleaning every day - time schedule.
  3. First scheduled cleaning goes well every time.
  4. Next day, the cleaner is starting to generate a new map (of course rotated) in the middle of zone cleaning.

Any idea ?

1 Like

Well the script works for me as well. But i cannot call it from the services tab in HA. Nothing happens.

P.S. Roomba - was too lazy to rename in automations so just had the entity that way

Try

{
“entity_id”: “vacuum.roomba”,
“command”: “app_goto_target”,
“params”:[26700,26800]
}
1 Like

Hi,

Thanks for this post, I started it and it works perfectly.
A question… my robot is not going straight, when I start a zoned cleanup it re-draws the map and moves it a bit… any idea ?
Can it be because some doors are not fully opened so its referential changes ?

And do you know the command to turn it off once the cleanup is done ?

Thanks,

!!!PLEASE DONT UPGRADE VACUUM FIRMAWARE IF OLD SETUP WORKS! XIAOMI IS EVENTUALLY CHANGING SOME STUFF AND ROBOT CANT BE ROOTED AFTER ! So please hold on for upgrading.of not this forum will be flooded with those messages like: Cantrell root my robot etc

Agreed. Would be nice to know which latest version can be rooted. There are some minor upgrades that are interesting and good to have.

I am rooted with 3.3.9_003416 and works well, but came out 8 new firmware since that release, now they are at 3.3.9_003600

U might want to join the dustcloud discord server …they discuss a lot …there will be another release from valetudo with zoned cleaning via selection on map feature hit stay tuned …not released yet

why do you want to root the vacuum? what can you do more with it?
zone cleaning is working fine without root?

@thundergreen

for the Map :slight_smile: indeed zoned cleaning works without rooting but I disconnected the robot from the internet. I don’t like it if no matter who collects data about me

Ah ok, so zone cleaning from HA doesn’t work if not connected to internet? How do you disable internet anyway on the vacuum? There are no gateway or dns settings? Or do you block it on your firewall/router?

No NO NO ! U got me wrong… to get the MAP of the Robot u need root. How I cut the internete for the robot? : Blocked the internet access on my router for this MAC and IP

Ah ok, but why do you want the map? We are using coordinates to do zone cleaning?

First it looks nice .You see the difficulties fir the robot in your flat/house Appartment… Aaaaaaand I need this map as there’s something being developed to make zone cleaning directly by defining an area on a map … hosted on the vacuum itself …for this install u need root

ok, understood :slight_smile:

@ciB, would you consider updating post #1 to reference “Flolevac” as an easy solution for Coordinates. It’s mentioned on post #71 Howto: Xiaomi vacuum zoned cleaning - #71 by Venom

1 Like

Does anyone know if the original suppled by @ciB or subsequent instructions will work with the amazon echo? I am happy to set it up with HA and integrate to echo, but would like to enjoy custom requests.

Thanks

HI, This has been an awesome thread. I am able to clean a room with a script in hass, I am stuck on the ifttt integration piece now.

I have created a webhook in ifttt with these ingredients.

URL
http://mydomainnamehere:8123/api/services/script/Clean_Kitchen?api_password=xxxxxxxxxx

Method
Post

Content type
application/json

Body
{ “command”: “app_zoned_clean”, “entity_id”: “vacuum.xiaomi_vacuum_cleaner”, “params”: [ [ 25330, 21500, 30100, 27500, 1 ] ] }

I get the following error
Unable to make web request: Error: ETIMEDOUT

any help would be appreciated