PiotrMachowski / Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor

This custom integration provides a way to present a live view of a map for Xiaomi (Roborock/Viomi/Roidmi/Dreame) vacuums without a need for rooting.
MIT License
1.18k stars 125 forks source link

Support for Dreame vacuums #126

Closed PiotrMachowski closed 2 years ago

PiotrMachowski commented 3 years ago

Vacuums confirmed to use this API:

You can help in implementation of this feature by sending your map file and a screenshot from Xiaomi app at

piotr.machowski.dev [at] gmail [dot] com.

To get raw map file you have to use following 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
    store_map_raw: true
    force_api: dreame

and then follow steps provided in documentation: Retrieving map.

Existing implementation of map decoder

arvaisandor1968 commented 2 years ago

image Hi! My vacuum is unsupported too. Tipe: Mi Robot Vacuum-Mop 2 Pro+ dreame.vacuum.p2041o Firmware: 4.3.3_1109 Thank for watching.

Ali333n commented 2 years ago

image

Hello, My Dreame Z10 Pro (dreame.vacuum.p2028) is also Unsupported. Firmware: 4.1.8_1099

configuration.yaml looks like this:

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
    country: de
    store_map_raw: true
    store_map_path: /tmp
    force_api: dreame
    draw: ["all"]
    attributes:
      - calibration_points

Hopefully there is a fix/update for this.

DirkStorck commented 2 years ago

Hi,

having problem with my Dreame D9

I can control (start/stop) my vacuum with this card but I get the as you can see in the screenshot

grafik

and in "developer tools" it gets displayed like that

grafik

and that is the configuation that I use

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
    country: de
    store_map_raw: true
    store_map_path: /tmp
    force_api: dreame
    draw: ["all"]
    attributes:
      - calibration_points

Thanks!

cvjensen commented 2 years ago

Hello , I also get this with a very basic config

image

any plans regarding support of Dreame Z10 Pro? :)

spekkie3 commented 2 years ago

does ANYONE have this working with a dreame L10 ?

imposibrus commented 2 years ago

@spekkie3 if you want to "beta test", you can manually install the component from the dreame_support branch. Basic functions works with my Dreame L10 Pro. image

pergolafabio commented 2 years ago

H, i have an F9 , but i dont see the route history like you?

image

DirkStorck commented 2 years ago

Yeah! Installed the component from dreame_support Branch! :)

grafik

The config that I use

Strange.... suddenly I can't see the paths anymore and the commands don't work for me as well.

spekkie3 commented 2 years ago

@spekkie3 if you want to "beta test", you can manually install the component from the dreame_support branch. Basic functions works with my Dreame L10 Pro. image

thnx ! what is your config ?

I get : image

I use in my configuration.yaml image

camera:

And wich app do you guys use to connect the vacuum with home assistant ?

image

imposibrus commented 2 years ago

@spekkie3

thnx ! what is your config ?

  camera:
    - platform: xiaomi_cloud_map_extractor
      host: !secret dreame_l10pro_host
      token: !secret dreame_l10pro_token
      username: !secret xiaomi_cloud_username
      password: !secret xiaomi_cloud_password
      country: cn
      draw: ['all']
      attributes:
        - calibration_points

I'm not sure about adding country: cn. I use the "China" region in MiHome app, so I decided to specify it in the config as well.

image

I'm currently using the "Xiaomi Miot Auto" component from HACS:

image

But want to try https://github.com/pooyashahidi/xiaomi_vacuum or switch to Valetudo.

Nafania commented 2 years ago

May be im not so smart, but how to use zone and room cleaning? Im selecting zone cleaning and no idea how to select zone to clean. The same for zones list. Not able to select some zone. Pin / path / points works well.

Also - native ha xiaomi plugin doesnt support zone cleanup at all. Who solved this and how?

spekkie3 commented 2 years ago

I feel so very stupid,

I added the xiaomi_cloud_map_extractor manually

are there any special steps regarding to the dreame I need to take ?

or any other things (besides adding the camera to the config file ??

I realy think i am missing something :S so sorry if i am wasting anyones time !

kisjeth commented 2 years ago

@PiotrMachowski Still no updates regarding the Dreame D9?

PiotrMachowski commented 2 years ago

@kisjeth 5 comments above you have a screenshot from D9...

kris2k2 commented 2 years ago

Joining the fun on this; I've got a dreame.vacuum.p2027 (Dreame W10), and I can confirm that today's snapshot of the dreame_support branch appears to be rendering properly my map.

spekkie3 commented 2 years ago

@imposibrus

Hi, What is this ? : where do I find this ?

image

And do I need to do something with the dreame folder inside the zip file ?

image Do I need to paste these any where ? and if so, Where ?

Sorry if i sound dumb, I just cant figure it out and feel so stupid.

kisjeth commented 2 years ago

Yeah! Installed the component from dreame_support Branch! :)

grafik

The config that I use

  • 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 country: de store_map_raw: true store_map_path: /tmp force_api: dreame draw: ["all"] attributes:

    • calibration_points

Strange.... suddenly I can't see the paths anymore and the commands don't work for me as well.

Yeah! Installed the component from dreame_support Branch! :)

grafik

The config that I use

  • 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 country: de store_map_raw: true store_map_path: /tmp force_api: dreame draw: ["all"] attributes:

    • calibration_points

Strange.... suddenly I can't see the paths anymore and the commands don't work for me as well.

Could you explain to me how did you manage to add the D9? I can not.

pergolafabio commented 2 years ago

Also, what integration are you using, because you see battery and fan speed, I don't have those

RoboMagus commented 2 years ago

@spekkie3 installing from a brach is about the same as a manual installation. Take a look at this section on the installation procedure.

That image you asked about is the result of looking up the camera entity in the dev tools section of HomeAssistant. Likely you shouldn't be concerned with that.

pergolafabio commented 2 years ago

Guys, do you all use Xiaomi Miot integration to add the dreame?

DirkStorck commented 2 years ago

Hi,

@kisjeth: I followed these instructions

and I am using this integration xiaomi_vacuum

pergolafabio commented 2 years ago

Hi,

@kisjeth: I followed these instructions

and I am using this integration xiaomi_vacuum

hmm, i use the same one, why do you see those battery state / fan speed below? have you configured that somewhere?

DirkStorck commented 2 years ago

Maybe because of this one

grafik

pergolafabio commented 2 years ago

where is that? i use yaml method for the card, can yiu show me the yamlk version ? :-)

DirkStorck commented 2 years ago

I am using the editor.

here is my yaml

type: custom:xiaomi-vacuum-map-card title: Saugroboter Map Card preset_name: Live map entity: vacuum.dreamed9 map_source: camera: camera.xiaomi_cloud_map_extractor draw: true calibration_source: camera: true vacuum_platform: KrzysztofHajdamowicz/miio2 map_locked: true

pergolafabio commented 2 years ago

aha, that was it!! :-) how did you know that? and where is this "KrzysztofHajdamowicz/miio2" coming from?

DirkStorck commented 2 years ago

was simply trying out the different options... as I said I use the editor and there you can choose.

kisjeth commented 2 years ago

was simply trying out the different options... as I said I use the editor and there you can choose.

The only problem is that when I go to configure the map view I get the error that my D9 is not supported. Obviously I am wrong something in the map_extractor

spekkie3 commented 2 years ago

YESSS !! you guys rock ! I solved it :D

super !!!!!!

pergolafabio commented 2 years ago

was simply trying out the different options... as I said I use the editor and there you can choose.

That's indeed an advantage of the UI editor :+)

Thnx again

kisjeth commented 2 years ago

Maybe because of this one

grafik

Screenshot_2022-05-18-16-22-36-854_io homeassistant companion android

Why this? At the top there is the card without map screen: here I can not set up calls to the services. (See error at the bottom) The bottom screen is the one with the map but I can not see it.

DirkStorck commented 2 years ago

@kisjeth and you have done this? you have to use the component from the dreame_support branch that you have to install manually.

facutopa commented 2 years ago

Hi guys, this new branch, support 1C? Or only Dreame?

magomao commented 2 years ago

Works with 1C 👌🏽

Enviado desde mi iPhone

El 18 may. 2022, a la(s) 12:11 p. m., Facundo @.***> escribió:

 Hi guys, this new branch, support 1C? Or only Dreame?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

facutopa commented 2 years ago

Works with 1C 👌🏽 Enviado desde mi iPhone El 18 may. 2022, a la(s) 12:11 p. m., Facundo @.***> escribió:  Hi guys, this new branch, support 1C? Or only Dreame? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

Following this instructions?

mkdir -p custom_components/xiaomi_cloud_map_extractor
cd custom_components/xiaomi_cloud_map_extractor
wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/releases/latest/download/xiaomi_cloud_map_extractor.zip
unzip xiaomi_cloud_map_extractor.zip
rm xiaomi_cloud_map_extractor.zip

This is my configuration

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']
    country: cn
    store_map_raw: true
    force_api: dreame

But I get this: imagen

magomao commented 2 years ago

I also add store_map_path: /tmp under the store_map_raw: true

Enviado desde mi iPhone

El 18 may. 2022, a la(s) 6:20 p. m., Facundo @.***> escribió:

 Works with 1C 👌🏽 Enviado desde mi iPhone … El 18 may. 2022, a la(s) 12:11 p. m., Facundo @.***> escribió:  Hi guys, this new branch, support 1C? Or only Dreame? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

Following this instructions?

mkdir -p custom_components/xiaomi_cloud_map_extractor cd custom_components/xiaomi_cloud_map_extractor wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/releases/latest/download/xiaomi_cloud_map_extractor.zip unzip xiaomi_cloud_map_extractor.zip rm xiaomi_cloud_map_extractor.zip This is my configuration

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'] country: cn store_map_raw: true force_api: dreame But I get this:

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

facutopa commented 2 years ago

I also add store_map_path: /tmp under the store_map_raw: true Enviado desde mi iPhone El 18 may. 2022, a la(s) 6:20 p. m., Facundo @.> escribió:  Works with 1C 👌🏽 Enviado desde mi iPhone … El 18 may. 2022, a la(s) 12:11 p. m., Facundo @.> escribió:  Hi guys, this new branch, support 1C? Or only Dreame? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread. Following this instructions? mkdir -p custom_components/xiaomi_cloud_map_extractor cd custom_components/xiaomi_cloud_map_extractor wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/releases/latest/download/xiaomi_cloud_map_extractor.zip unzip xiaomi_cloud_map_extractor.zip rm xiaomi_cloud_map_extractor.zip This is my configuration 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'] country: cn store_map_raw: true force_api: dreame But I get this: — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

I did it, but I don't get any changes on the dashboard. The entity looks like this: imagen

What Integration do you use for this vacuum?

ghost commented 2 years ago

Good, sorry for the translation.... Can you get the map to work for the Dreame D9, I've been in this war for 1 week and nothing. Will someone help?

Thanks

image

PiotrMachowski commented 2 years ago

Guys, dreame support has not been released yet, you can install it if you really want to, but I highly recommend waiting for the final release (I plan to release it this week)

ghost commented 2 years ago

I will be waiting . Continued excellent work. Hug Thanks

Piotr Machowski @.***> escreveu no dia quinta, 19/05/2022 à(s) 01:34:

Guys, dreame support has not been released yet, you can install it if you really want to, but I highly recommend waiting for the final release (I plan to release it this week)

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues/126#issuecomment-1130836320, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXKPOFU5D4TE5QAIBPGK2K3VKWEALANCNFSM46IKDIRA . You are receiving this because you commented.Message ID: <PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues/126/1130836320 @github.com>

magomao commented 2 years ago

I downloaded de Dreame zip file unzipped it and pasted in Home Assistant /confit/custom_components and then works.

Enviado desde mi iPhone

El 18 may. 2022, a la(s) 6:43 p. m., Facundo @.***> escribió:

 I also add store_map_path: /tmp under the store_map_raw: true Enviado desde mi iPhone … El 18 may. 2022, a la(s) 6:20 p. m., Facundo @.> escribió:  Works with 1C 👌🏽 Enviado desde mi iPhone … El 18 may. 2022, a la(s) 12:11 p. m., Facundo @.> escribió:  Hi guys, this new branch, support 1C? Or only Dreame? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread. Following this instructions? mkdir -p custom_components/xiaomi_cloud_map_extractor cd custom_components/xiaomi_cloud_map_extractor wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/releases/latest/download/xiaomi_cloud_map_extractor.zip unzip xiaomi_cloud_map_extractor.zip rm xiaomi_cloud_map_extractor.zip This is my configuration 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'] country: cn store_map_raw: true force_api: dreame But I get this: — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

I did it, but I don't get any changes on the dashboard. The entity looks like this:

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

scapman commented 2 years ago

I can confirm that it works fine with Z10 pro!! Great job!

MrAlex1124 commented 2 years ago

Hello,

What do I need to download for the Z10 pro to work?

rumunn95 commented 2 years ago

Guys, dreame support has not been released yet, you can install it if you really want to, but I highly recommend waiting for the final release (I plan to release it this week)

What you download? please give me link

pergolafabio commented 2 years ago

Scroll up, :-)

rumunn95 commented 2 years ago

Scroll up, :-)

where? i install latest version but integration show not supported ;( dreame l10pro, someone wrote that he works on Z10 so it should work on L10 pro because it's the same only with the emptying station

PiotrMachowski commented 2 years ago

Guys, dreame support has not been released yet, you can install it if you really want to, but I highly recommend waiting for the final release (I plan to release it this week)

What you download? please give me link

Just wait a bit, it will be released today

welfrjani commented 2 years ago

Thx for the update , really I'm waiting for it

On Sun, May 22, 2022, 2:34 PM rumunn95 @.***> wrote:

Guys, dreame support has not been released yet, you can install it if you really want to, but I highly recommend waiting for the final release (I plan to release it this week)

What you download? please give me link

— Reply to this email directly, view it on GitHub https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues/126#issuecomment-1133886303, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ6ZU67E6NK7PGTDLB6KCPLVLISW3ANCNFSM46IKDIRA . You are receiving this because you commented.Message ID: <PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor/issues/126/1133886303 @github.com>

PiotrMachowski commented 2 years ago

Added in v2.2.0 release

pergolafabio commented 2 years ago

Great job, congrats to all who helped on this one