Xiaomi Cloud Vacuum Map Extractor

I don’t understand, I add in config.yaml:
attributes:
calibration_points
room_numbers

And I call the service:
vacuum.send_command
entity_id: vacuum.wall_e
command: app_segment_clean
params: [1]

It starts 2 seconds … And nothing.

Are you sure that 1 is correct? Can you show a state of extractor camera?

1 corresponds to the number I gave in the Xiazomi kitchen app …

Oops! I just understood that in state there are the numbers of the parts …!
How do you know what they correspond to?

By trial and error :wink:

1 Like

Thank you for everything !
It’s ok it works!
But to trim my card with a lot of blue around I can not …

I don’t understand what to write in the card, everything I try is not working …

In addition to my problem to crop my map above, I also allow myself to ask you:

How to configure

  • repeat
  • and the suction force in my script please?

sequence:

  • service: vacuum.send_command
    data:
    entity_id: vacuum.wall_e
    command: app_segment_clean
    params:
    • 20
    • 17
    • 22
      entity_id: vacuum.wall_e
      mode: single

To trim map add this to config of camera:

    map_transformation:
      trim:
        top: 20
        bottom: 20
        left: 20
        right: 20

It will trim 20% of card size from all sides.

To change suction force use service: vacuum.set_fan_speed

Yes yes yes !!! Thanks !
And repeat zone…?

Just add it multiple times (in params)

Exemple please ? :frowning:

- service: vacuum.send_command
  data:
    entity_id: vacuum.wall_e
    command: app_segment_clean
    params:
      - 20
      - 17
      - 17
      - 22

But to be honest I am not sure if this really works, because I don’t use room numbers

this command connects the part numbers but not the repetition of passages …

Great mod! Thank you.
I tried to setup the map and everything works fine.
is there a way to hide the room colors? So it looks more like in your example

Sure, you can change every color on a map :wink:
In your case you should change all room colors to the same one (documentation).

I’m trying to install this custom. I use ‘Xiaomi Cloud Tokens Extractor’ app to verify all my data of Xiaomi cloud, then enable “camera:” setting in config file, “Check configuration” go forever without finish,… I’m afraid in restarting HA, should I do?

It is a problem with dependencies installation. You have to follow these steps:

  1. install component
  2. restart HA
  3. add camera configuration
  4. restart HA

Just wanted to say thanks, nice job!! I’m loving this along with the cards. Managed to get everything setup nicely. Aside from the few annoying errors in my log (camera thumbnail deprecated, unable to retrieve map data, camera took longer than scheduled update interval) all is working perfectly.

Even managed to figure out rooms, then create scripts per room along with an input_select and Choose automation.

1 Like

Hi Piotr,
is it possible to implement the Dreame F9?

Hi, if it doesn’t work with current version then it probably uses a new API, so it’s impossible at this moment.