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

paultbarrett commented 3 years ago

@PiotrMachowski , have just retrieved the mapping data from a Dreame D9 and emailed it over. Hope it helps

xguitoux commented 3 years ago

Hello, can't add the "force_api" parameter, I get an error "invalid option" any idea ?

PiotrMachowski commented 3 years ago

@xguitoux This option is currently available only on dev_new_api branch, which has to be installed manually

xguitoux commented 3 years ago

@xguitoux This option is currently available only on dev_new_api branch, which has to be installed manually

Do you absolutely need it for map generation ? I have a DreameF9 to share map

pergolafabio commented 3 years ago

i already shared map for Dreame F9

PiotrMachowski commented 3 years ago

@xguitoux right now I collect data that will help me in the future implementation, it's not absolutely needed, but every map makes tests more complete.

PS I don't own this vacuum, so for me it's totally not needed 😄

xguitoux commented 3 years ago

@xguitoux right now I collect data that will help me in the future implementation, it's not absolutely needed, but every map makes tests more complete.

PS I don't own this vacuum, so for me it's totally not needed 😄

Do you "need" the export in order to debug the generated map, I was using "need" in that way. I'm very interested in the map for my dreame so I will try to send the export :)

sasgoose commented 3 years ago

Hi, I have sent you my extracted map. Unfortunately i don't understand how todo anything with the current implementation.

Thanks for everything you have done! it is so cool!

UraniumDonut commented 3 years ago

Hey there, the map is also unsupported on dreame.vacuum.mc1808 (Xiaomi mi Mop/Xiaomi miija 1c)

I have sent the map file via email. I will add the "unsupported" to the readme

aetha commented 3 years ago

Hi, I’ve emailed you a map screenshot and raw file for my dreame.vacuum.p2009 (Dreame D9).

square-spade commented 3 years ago

Is the Dev API branch broken?

PiotrMachowski commented 3 years ago

@square-spade this comment is now outdated, you can just use the latest release (manually or using HACS)

pergolafabio commented 3 years ago

Dreame is not supported Right?

PiotrMachowski commented 3 years ago

@pergolafabio yup, still not supported. But it's possible to retrieve a raw map file for Dreame vacuums using v2.x.x release

cokefd commented 3 years ago

Sent information for: MOVA L600 Robot Vacuum and Mop Cleaner MODEL: dreame.vacuum.p2157

RoboMagus commented 3 years ago

Sent raw map + screen for Dreame L10 Pro (dreame.vacuum.p2029)

SM-26 commented 3 years ago

Hey, I also have Dreame L10 Pro I've sent you the raw map and screenshot of the app.

one small note, in the top post shouldn't it be like this? (RAW at the end)


store_map_raw: true
PiotrMachowski commented 3 years ago

@SM-26 yup, I have updated first comment. Thanks

wistoff commented 3 years ago

I am using Dreame D9. How can I retrieve the map when using core installtion? I enabled tmp folder to be visible in the config but no map file appears inside. Is the map automatically created when starting Home Assistant?

PiotrMachowski commented 3 years ago

@kjellxvx map should be created in /tmp directory (cd /tmp). By the way, I have a lot of maps now, so you don't have to send it ;)

wistoff commented 3 years ago

@kjellxvx map should be created in /tmp directory (cd /tmp). By the way, I have a lot of maps now, so you don't have to send it ;)

thanks for your reply! however the map doesn't appear in /tmp. Should is happen automatically or do I have to initiate the map creation process somehow? When trying to add the entity to my dashboard it says it's not supported.

PiotrMachowski commented 3 years ago

@kjellxvx it should happen automatically, if you have store_map_raw: true in your config. You can try to define your own path using store_map_path

wistoff commented 3 years ago

@kjellxvx it should happen automatically, if you have store_map_raw: true in your config. You can try to define your own path using store_map_path

I think that worked! Thanks!

tarasifua commented 3 years ago

By the way, I have a lot of maps now, so you don't have to send it ;)

Model of vacuum does matter? I have dreame.vacuum.mc1808 and can send it too, if still needed.

PiotrMachowski commented 3 years ago

@tarasifua I already have a map from this model, so you don't have to :)

mikhail5555 commented 3 years ago

Would it help if you also send the data for dreame.vacuum.p2028 (Dreame Z10 Pro)

PiotrMachowski commented 3 years ago

@Mikhail5555 I don't have data from this model, so you can send it if you want to

nirkons commented 3 years ago

Ahh just got the dreame.vacuum.mc1808 today and see that its not supported, I will wait then,

thanks!

helioviegas commented 3 years ago

also hoping for this :)

majidmostafa commented 3 years ago

Hi Guys, Please I have an issue with my Dreame Vacuum D9 (dreame.vacuum.p2009) which is dead!! (No interaction, no light, no reaction, ...) before that I have switched my Mi Home account from Singapore to French ( because I wanted to link it with my Alexa :( ) It was fully charged and it have requested me to update the firmeware but after that I disovered that the robot is dead and I tried to reset it but no reaction. from that moment I can't do anything as it is fully Off and no signe of reactvitiy, is like the systeme has been erased or its Soft have been broken due to the firmeware update. Can you please help me to resolve this issue? For information, I installed the token extractor and I can see the Vaccum linked in my account Singapore and I can see also its token. Many thanks for your help and support

disinvis commented 3 years ago

Sented map and screen of dreame.vacuum.p2036 (Trouver LDS Cleaner). I haven't seen anyone send information on it. I hope that support for Dream vacuum cleaners will appear as soon as possible, including Trouver.

scapman commented 3 years ago

@Mikhail5555 I don't have data from this model, so you can send it if you want to

I have just sent the data for the Dreame Z10 Pro

com-xuonghuynh commented 3 years ago

I have Z10 Pro too, hope it will work soon

FrancYescO commented 3 years ago

What home assistant integration we should use to at least integrate the robot in HA? used the one from this repo with this fix https://github.com/pooyashahidi/xiaomi_vacuum/pull/12

i can help with a dreame.vacuum.p2041o (Xiaomi Robot Vacuum Mop 2 PRO+)

kokuo81 commented 3 years ago

Sented map and screen of dreame.vacuum.p2036 (Trouver LDS Cleaner). I haven't seen anyone send information on it. I hope that support for Dream vacuum cleaners will appear as soon as possible, including Trouver.

Interested in this, too. Thank you both @PiotrMachowski and @disinvis !

Sam-Abb commented 3 years ago

I'm also interested in this! Hopefully, we can see support for dreame vacuums soon.

beliy1985 commented 3 years ago

Is there hope or a support date?

PiotrMachowski commented 3 years ago

@beliy1985 I don't plan to implement it anytime soon, but somebody wants to add this feature then I will be happy to help with implementation and verification.

limlaw commented 3 years ago

Hi @PiotrMachowski i had send you my map. Hope one day you can get this done. Appreciate your hardwork. Model: Mijia Robot Vacuum-Mop 2C Model Number dreame.vacuum.p2140 https://home.miot-spec.com/spec?type=urn%3Amiot-spec-v2%3Adevice%3Avacuum%3A0000A006%3Adreame-p2140%3A1

Cheers and have a nice day.

sephrioth commented 3 years ago

Is there any possibilities to support dreame.vacuum.p2149o ? I tried to force download the map but failed. https://home.miot-spec.com/spec?type=urn%3Amiot-spec-v2%3Adevice%3Avacuum%3A0000A006%3Adreame-p2149o%3A1

welfrjani commented 3 years ago

i have vacuum.dreame_p2008_92ed_robot_cleaner i can't get map says the dreame p2008 not suppoted

kisjeth commented 3 years ago

I sent you the map of my Dreame D9. I hope you can manage to integrate it. thanks a lot

jaegerschnitzel commented 3 years ago

@beliy1985 I don't plan to implement it anytime soon, but somebody wants to add this feature then I will be happy to help with implementation and verification.

Are you referring to Dreame support? If no I can also send you data for a Z10 Pro.

PiotrMachowski commented 3 years ago

@jaegerschnitzel yeah, I was talking about adding Dreame support. You do not have to send it, I already have a map from this model.

jaq1988 commented 2 years ago

Can anyone help me on how to integrate the z10 pro Please!

Thanks

odelma commented 2 years ago

Hi, it looks like Dreame models have recently been added to OpenHAB: https://github.com/openhab/openhab-addons/commit/b6836b8ef913a81c206521818f8d8795e98bd87c

Is the information in that commit helpful in any way - if someone with enough HA knowledge (and python skills) takes a look (I guess @PiotrMachowski would do it if enough time, but currently not)?

PiotrMachowski commented 2 years ago

Hi @odelma!

Support for controlling vacuums and support for retrieving their maps are two extremely different things, so in this case OpenHAB code doesn't help.

Having said that, in my first comment there is a link to map parser implemented in Valetudo - it "just" needs to be rewritten in python (actually HA knowledge is not needed at all).

odelma commented 2 years ago

Thanks @PiotrMachowski - misunderstanding from my side ☺️

@jaq1988 and others using Dreame vacuums, take a look at https://github.com/pooyashahidi/xiaomi_vacuum if it proves to be uselful.

pergolafabio commented 2 years ago

that doesnt work for F9 i use this one for F9 : https://github.com/microfrost1/xiaomi_vacuum

Noext commented 2 years ago

hello

any news on the support for the L10 pro ?