Xiaomi Cloud Vacuum Map Extractor

Has there been any work done on xiaomi.vacuum. series of vacuums behind the scenes? I may have some time looking into it myself, so I want to make sure I won’t be reinventing the wheel :slight_smile:

There are multiple issues on GitHub related to these devices, you can check them out, some of them provide useful info

1 Like

i am testing this version in HomeAssistant:

but some errors appers:

Image

in logs:

Image

any suggestion ?

What vacuum model do you have?

Hi guys,

could you give me any advice to solve this problem:

And from the log:

the maps sometimes works well, but mostly doesn’t.

thanks

@tomigonzo install the latest alpha version

Hi!

I’m using latest alpha version (24). After succesfull authentication I receive the following message:

I see my vacuum in the Xiaomi Home app. It’s a Mi Robot Vacuum-Mop (dreame.vacuum.mc1808) and can be controlled with Xiaomi Miot.

Any idea?

Try using Tokens Extractor to get a list of all devices and confirm the vacuum is included as well

This tool does not list this device which is a non-sense:

  1. It is working with Xiaomi Home app (same login). I also have the map there.
  2. It also works in HA with Xiaomi Miot. I can control and I can see if I control it from Xiaomi Home app (I’ve just tested after recent Miot update with volume control setting).
  3. The map was also visible in HA with this Xiaomi Map Extractor for a long time as well!

So what should I do to be included here as well?

You can try removing it from Xiaomi Home and adding it again. Do you use home sharing?

Only the device has been shared with an other account but it’s not home share. I will try the remove/add. I hope it will not brake the token based integration with Miot.

Most probably you will have to reconfigure it as well

Hi @3_14, I’m on version alpha 24 and I can’t seem to rotate the map. I couldn’t find the setting in the UI, nor can I get it to work programmatically. Could you help me out?

It’s here:


and then:

1 Like

thank you!

Hi, I’m here for the first time and I haven’t found a solution to this problem, I’m pasting the logs, I have alpha version 24
xiaomi vacuum mop 2 pro+
This error originated from a custom integration.

Rejestrator: miio.miot_device
Źródło: custom_components/xiaomi_cloud_map_extractor/connector/vacuums/vacuum_dreame.py:83
integracja: Xiaomi Cloud Map Extractor (dokumentacja, Problemy)
Pierwsze zdarzenie: 11:59:53 (21 wystąpień)
Ostatnio zalogowany: 12:03:26

Unable to find mapping for dreame.vacuum.p2041, falling back to dreame.vacuum.mc1808

type: custom:xiaomi-vacuum-map-card
map_source:
  camera: image.czystus_live_map
calibration_source:
  camera: true
entity: vacuum.dreame_p2041_2268_robot_cleaner
vacuum_platform: Xiaomi Miio
map_modes:
  - template: vacuum_clean_zone
  - template: vacuum_goto
  - template: vacuum_clean_segment
    predefined_selections:
      - id: "1"
        icon:
          name: mdi:broom
          x: 2075
          "y": -450
        label:
          text: Przedpokuj
          x: 2075
          "y": -450
          offset_y: 35
        outline:
          - - 650
            - -1500
          - - 3500
            - -1500
          - - 3500
            - 600
          - - 650
            - 600
      - id: "2"
        icon:
          name: mdi:broom
          x: -1175
          "y": 1075
        label:
          text: Kuchnia
          x: -1175
          "y": 1075
          offset_y: 35
        outline:
          - - -2200
            - 700
          - - -150
            - 700
          - - -150
            - 1450
          - - -2200
            - 1450
      - id: "3"
        icon:
          name: mdi:broom
          x: -2150
          "y": -925
        label:
          text: Salon
          x: -2150
          "y": -925
          offset_y: 35
        outline:
          - - -4900
            - -2500
          - - 600
            - -2500
          - - 600
            - 650
          - - -4900
            - 650
      - id: "4"
        icon:
          name: mdi:broom
          x: -2075
          "y": -3625
        label:
          text: Sypialnia
          x: -2075
          "y": -3625
          offset_y: 35
        outline:
          - - -2800
            - -4750
          - - -1350
            - -4750
          - - -1350
            - -2500
          - - -2800
            - -2500

I see that you already have map image set up.

What integration do have you used to add vacuum to HA?

Is it possible to add support for the Vacuum-Mop 2 Pro (ijai.vacuum.v3)?

Using simple config

camera:
  - platform: xiaomi_cloud_map_extractor
    host: !secret xiaomi_vacuum_host
    token: !secret xiaomi_vacuum_token
    username: !secret xiaomi_cloud_username
    password: !secret xiaomi_cloud_password
    draw: ['all']
    attributes:
      - calibration_points

Logs:

Got error when receiving: {'code': -9999, 'message': 'user ack timeout'}

How do you have a UI?
It said that it had to be set up from configuration.yaml and looks like this.