Xiaomi Cloud Vacuum Map Extractor

Can you show config of map extractor?

Sure :arrow_down:

camera:
  - platform: xiaomi_cloud_map_extractor
    host: 192.168.0.122
    token: 734e6758704d417369794e4d646d5a55
    username: XXX
    password: YYY
    draw: ['all']
    attributes:
      - calibration_points   

*username and pass are corect

That’s weird. Can you check if there’s anything in HA logs?

Nothing. Just this after I manually reload Xiaomi_Cloud_Map_Extractor YAML configuration :arrow_down:

Logger: homeassistant.components.camera
Source: helpers/entity_platform.py:796
Integration: Camera (documentation, issues)
First occurred: October 22, 2022 at 00:51:18 (16 occurrences)
Last logged: 23:56:38
Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05

And as you said it’s really weird cause I can even use that corrupted (empty) map to spot cleaning or area cleaning.
Only issue here is that it is not regenerating and shows no vacuum cleaner current position.

Can you send me raw map data?

Hello, I’m brand new to Home Assistant to be able to control my vacuum cleaner Viomi S9 (version 2). So far I have used node-mihome, but that no longer works with 2FA. The cloud connection in HA with Xiomi MIoT works and with a vacuum.viomi_v18_a534_robot_cleaner I can use almost all functions. When using Xiaomi Cloud Vacuum Map Extractor at the same time, I get alternating 2FA prompts in both integrations. Now my question: Is it conceivable to use Xiomi MIoT as a parent instance and only specify the token and the IP in Xiaomi Cloud Vacuum Map Extractor? So Xiaomi would not have to identify/distinguish two separate endpoints.
Greetings, Jens.
p.s. Please excuse my bad English - G00gle helped me with the translation.

No, it’s not possible. Map Extractor has to connect to Xiaomi Cloud as well. You can try to find a replacement for Xiaomi MIoT that will work locally (possibly here: Forks · nqkdev/home-assistant-vacuum-styj02ym · GitHub)

Really useful to get a notification when cleaning is done together with a map to determine if it cleaned everywhere. If i would like to trim the white area around it, do I have to setup a separate “camera” with dark mode / dark area around the map or is there a better way?

You can change white color to a transparent one, if it is ok with your dashboard as well.

Never thought of that :slight_smile: Thanks a million, turned out great!

Sorry, there is a cloud registration/transfer via Xiaomi MIoT in connection with the identification of the device with a token and additional local information (miIO.info).

Is that possible?

Sorry, I don’t understand what do you mean. Integrations from the link that I have sent don’t use cloud at all.

This is very interesting. I can’t (permanently) install Python with Hassbian and will first prepare a bullseye.
Thank you for your help.

Sure Piotr - I sent it to your gmail ( piotr.machowski.dev [at] gmail.com ) from [email protected].

thanks for the analysis.

1 Like

Thank you so much for your helping)

Hi Piotr,
so problem with map sudenly self-solved.
Recently I reinstall my Intel NUC from Ubuntu Core to Ubuntu server (of course not just because of this map problem) → install docker → restore all containers from backup and from that moment map data refreshes normaly.
I am not sure where the problem could be, probably something with permissions.
Now is all good.
Thank you anyway.

Adam.

Very nice job indeed, so cool :stuck_out_tongue:

I have been trying to set colors for map, but whatever i try, i allways end up with broken config … Can someone show me a simple color change, would like to get rid of room colors and make them all same color, also would like to get rid of the blue background around the maps and, if possible, get rid of the borders when selecting rooms :slight_smile:

Im using Xiaomi Miio and marotoweb/viomise if it matters.

camera:
  - platform: xiaomi_cloud_map_extractor
    name: Roborock
    host: 
    token: 
    username: 
    password: 
    draw: ['all']
    attributes:
      - calibration_points
      - rooms
    map_transformation:
      scale: 2
      trim:
        top: 15
        bottom: 12
        left: 0
        right: 0
    scan_interval:
      seconds: 10
  - platform: xiaomi_cloud_map_extractor
    name: Viomi
    host: 
    token: 
    username: 
    password: 
    draw: ['all']
    attributes:
      - calibration_points
      - rooms
    map_transformation:
      scale: 2
    scan_interval:
      seconds: 10

Which borders?

camera:
  - platform: xiaomi_cloud_map_extractor
    name: Roborock
    host: 
    token: 
    username: 
    password: 
    draw: ['all']
    attributes:
      - calibration_points
      - rooms
    map_transformation:
      scale: 2
      trim:
        top: 15
        bottom: 12
        left: 0
        right: 0
    scan_interval:
      seconds: 10
    room_colors: # use your room numbers here
      16: [255, 102, 255]
      17: [255, 102, 255]
      21: [255, 102, 255]
      22: [255, 102, 255]
    colors:
      color_map_outside: [0, 0, 0, 0]
  - platform: xiaomi_cloud_map_extractor
    name: Viomi
    host: 
    token: 
    username: 
    password: 
    draw: ['all']
    attributes:
      - calibration_points
      - rooms
    map_transformation:
      scale: 2
    scan_interval:
      seconds: 10
    room_colors: # use your room numbers here
      16: [255, 102, 255]
      17: [255, 102, 255]
      21: [255, 102, 255]
      22: [255, 102, 255]
    colors:
      color_map_outside: [0, 0, 0, 0]

Thanks !

I mean these borders when selecting rooms :

Sieppaa

Also, attleast colours changed this time :smiley: