Xiaomi Cloud Vacuum Map Extractor

Hi there @3_14 , now that the map issue is resolved, any chance we can get this to work:

?

2021-09-22 12:06:23 ERROR (SyncWorker_17) [miio.miioprotocol] Got error when receiving: timed out
2021-09-22 12:06:23 ERROR (MainThread) [custom_components.miio2.vacuum] Unable to send command to the vacuum: No response from the device
2021-09-22 12:06:24 WARNING (MainThread) [homeassistant.components.camera] The websocket command 'camera_thumbnail' has been deprecated
2021-09-22 12:06:29 WARNING (MainThread) [homeassistant.components.camera] The websocket command 'camera_thumbnail' has been deprecated

Thanks

miio2 is not supported at this moment, but it will be supported in the next version

thanks mate

Thanks for working on it.
Do you have a date when it will released?

It will be released when it’s done :smiley:

It’s really hard to predict exact date. The card has to be rewritten from a scratch with a lot of new features and I have a lot of other stuff that require my attention. I hope to release it within 2 months

Hi,

I’m stuck with getting my zones’ coordinates…

I installed Xiaomi Cloud Map Extractor & I try to use Lovelace Xiaomi Vacuum Map card. I did all the setup needed: at camera I added: calibration_points & at lovelace I added: camera_calibration: true , debug: true.

Result: when I ask for the coordinates, I get 5 numbers instead of 4, and all numbers are very low:

At the camere I got this:
image

Where do I go wrong?

Thank you for you help.

You just have to take first 4 numbers :slight_smile:

Buuuuut viomi vacuums are currently not supported in the map card, so it still won’t work.

ahh :slight_smile:
any idea how should I get the coorinates of my rooms?

HI Guys
I keep getting this error in logs is there a fix
Logger: homeassistant.components.vacuum
Source: helpers/entity_platform.py:164
Integration: Vacuum (documentation, issues)
First occurred: 9:19:40 (1 occurrences)
Last logged: 9:19:40

The xiaomi_miio platform for the vacuum integration does not support platform setup. Please remove it from your config.
Is this the culprit
###Xiaomi Miio Roborock S6 Vac###

vacuum:

  • platform: xiaomi_miio
    host: !secret xiaomi_ip
    token: !secret xiaomi_token
    It has been working for months???

@balintb your vacuum should support cleaning by room number, which should be better than coordinates

@thorrrr it literally is written in the message… You have to remove vacuum config from configuration.yaml, it is now set up via integrations

HI
I have removed it rebooted but getting 3 warning meesages
The websocket command ‘camera_thumbnail’ has been deprecated

11:18:55 – (WARNING) Camera - message first occurred at 11:18:45 and shows up 5 times

The camera entity camera.xiaomi_cloud_map_extractor does not support requesting width and height, please open an issue with the integration author

11:18:45 – (WARNING) Camera

Update of camera.xiaomi_cloud_map_extractor is taking over 10 seconds

11:17:08 – (WARNING) helpers/entity.py

@3_14 , thank you for the quick help.

unfortunately my vacuun works only with this integarion: GitHub - saprumohit/home-assistant-viomi-vacuum-v8: Home Assistant integration platform for Viomi Vacuum V8 (STYJ02YM)

for all services it waits for coordinates:

> clean_zone:
>   description: Start the cleaning operation in the selected areas for the number of repeats indicated.
>   fields:
>     entity_id:
>       description: Name of the vacuum entity.
>       example: "vacuum.my_viomi_vacuum_v8"
>     zone:
>       description: Array of zones. Each zone is an array of 4 integer values.
>       example: "[[23510,25311,25110,26362]]"
>     repeats:
>       description: Number of cleaning repeats for each zone between 1 and 3.
>       example: "1"
> 
> clean_area:
>   description: Start the cleaning operation in the selected areas for the number of repeats indicated.
>   fields:
>     entity_id:
>       description: Name of the vacuum entity.
>       example: "vacuum.my_viomi_vacuum_v8"
>     area:
>       description: Array of areas. Each area is an array of 8 integer values (4 points).
>       example: "[[23510,25311,25110,26362]]"
>     repeats:
>       description: Number of cleaning repeats for each zone between 1 and 3.
>       example: "1"
> 
> clean_point:
>   description: Start the cleaning operation by selected point.
>   fields:
>     entity_id:
>       description: Name of the vacuum entity.
>       example: "vacuum.my_viomi_vacuum_v8"
>     point:
>       description: Point.
>       example: "[23510,25311]"

@thorrrr these are known problems, they do not affect any functionality and can be safely ignored (they will be fixed soon)

@balintb does this version work with your vacuum?

1 Like

unfortunately not :frowning:
in the log:

2021-09-30 07:08:53 WARNING (SyncWorker_4) [custom_components.viomise.vacuum] Got exception while fetching the state: No response from the device
2021-09-30 07:09:23 WARNING (MainThread) [homeassistant.helpers.entity] Update of vacuum.b_test is taking over 10 seconds
2021-09-30 07:09:33 ERROR (SyncWorker_1) [miio.miioprotocol] Got error when receiving: timed out

Hi.
I can’t remove the colors from the rooms?
Everything is tranparent, exept for the room zones?

for now, i just use 20 % opacity, but it makes it dificult to see the path, and position of the vacuum cleaner?

What am i missing? Or doing wrong?


camera:
  - platform: xiaomi_cloud_map_extractor
    host: ipadress
    token: alotofdifferentnumbers
    username: blablabla
    password: blabla
    draw:
      - charger
      - goto_path
      - path
      - predicted_path
      - vacuum_position
    colors:
      color_charger: [0, 250, 128]
      color_map_outside: [32, 32, 32, 0.1]
      color_map_inside: [160, 160, 160, 0.1]
      color_no_go_zones: [255, 204, 204, 20]
      color_path: [102, 255, 178, 80]
      color_unknown: [32, 32, 32, 0.1]
      color_zones: [32, 32, 32, 0.1]
      color_grey_wall: [32, 32, 32, 0.1]
    room_colors:
      1: [255, 255, 255, 0.1]
      2: [255, 255, 255, 0.1]
      3: [255, 255, 255, 0.1]
      4: [255, 255, 255, 0.1]
      5: [255, 255, 255, 0.1]
      6: [255, 255, 255, 0.1]
      7: [255, 255, 255, 0.1]
      8: [255, 255, 255, 0.1]
      9: [255, 255, 255, 0.1]
      10: [255, 255, 255, 0.1]
      11: [255, 255, 255, 0.1]
      12: [255, 255, 255, 0.1]
      13: [255, 255, 255, 0.1]
    map_transformation:
      trim:
        top: 15
        bottom: 15
        left: 0
        right: 0
    attributes:
      - calibration_points
    store_map_path: "/tmp"

Are you sure you have used correct room numbers? Or maybe room numbers from extractor do not match actual room numbers? You can verify it by adding rooms or room_numbers in attributes section.

By the way, all colors’ parameters (R, G, B and A) should be integers from 0-255 range

camera:
  - platform: xiaomi_cloud_map_extractor
    host: ipadress
    token: alotofdifferentnumbers
    username: blablabla
    password: blabla
    draw:
      - charger
      - goto_path
      - path
      - predicted_path
      - vacuum_position
    colors:
      color_charger: [0, 250, 128]
      color_map_outside: [32, 32, 32, 0]
      color_map_inside: [160, 160, 160, 0]
      color_no_go_zones: [255, 204, 204, 20]
      color_path: [102, 255, 178, 80]
      color_unknown: [32, 32, 32, 0]
      color_zones: [32, 32, 32, 0]
      color_grey_wall: [32, 32, 32, 0]
    room_colors:
      1: [255, 255, 255, 0]
      2: [255, 255, 255, 0]
      3: [255, 255, 255, 0]
      4: [255, 255, 255, 0]
      5: [255, 255, 255, 0]
      6: [255, 255, 255, 0]
      7: [255, 255, 255, 0]
      8: [255, 255, 255, 0]
      9: [255, 255, 255, 0]
      10: [255, 255, 255, 0]
      11: [255, 255, 255, 0]
      12: [255, 255, 255, 0]
      13: [255, 255, 255, 0]
    map_transformation:
      trim:
        top: 15
        bottom: 15
        left: 0
        right: 0
    attributes:
      - calibration_points
      - rooms
      - room_numbers
    store_map_path: "/tmp"

Arrh… off course…
-the room numbers didn’t match…
thanks!..

1 Like

No problem :wink: nice setup!

thanks. :stuck_out_tongue_winking_eye: i am also happy with the result so far.
I’m sure it’s going to be cool when I’m done … but this Home Assistant is a lifelong project … :face_with_monocle: :nerd_face:

4 Likes

Hi Piotr!
I have such problem. Unfortunately I am still receiving the following error message. Any idea what this could be?

Got error when receiving: timed out
22:39:11 – (ОШИБКА) /usr/local/lib/python3.9/site-packages/miio/miioprotocol.py - первое сообщение получено 22:37:51 и повторялось 5 раз

The websocket command 'camera_thumbnail' has been deprecated
22:38:41 – (ПРЕДУПРЕЖДЕНИЕ) Камера - первое сообщение получено 22:38:21 и повторялось 26 раз

The camera entity camera.xiaomi_cloud_map_extractor does not support requesting width and height, please open an issue with the integration author
22:38:21 – (ПРЕДУПРЕЖДЕНИЕ) Камера

Got exception while fetching the state: No response from the device
22:37:51 – (ПРЕДУПРЕЖДЕНИЕ) xiaomi_cloud_map_extractor (кастомная интеграция)

Update of camera.xiaomi_cloud_map_extractor is taking over 10 seconds
22:37:40 – (ПРЕДУПРЕЖДЕНИЕ) helpers/entity.py

Failed to retrieve model
22:37:30 – (ОШИБКА) xiaomi_cloud_map_extractor (кастомная интеграция)

The xiaomi_miio platform for the vacuum integration does not support platform setup. Please remove it from your config.
22:37:29 – (ОШИБКА) Пылесос