Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Dreame vacuums #126

Closed
PiotrMachowski opened this issue Jun 7, 2021 · 169 comments · Fixed by #230
Closed

Support for Dreame vacuums #126

PiotrMachowski opened this issue Jun 7, 2021 · 169 comments · Fixed by #230
Assignees
Labels
enhancement New feature or request

Comments

@PiotrMachowski
Copy link
Owner

PiotrMachowski commented Jun 7, 2021

Vacuums confirmed to use this API:

  • dreame.vacuum.p2008 (Dreame F9)
  • dreame.vacuum.mc1808 (Xiaomi Mi Mop/Xiaomi Miija 1C)
  • Other ones mentioned in comments below

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

@PiotrMachowski PiotrMachowski added enhancement New feature or request maybe someday labels Jun 7, 2021
@PiotrMachowski PiotrMachowski self-assigned this Jun 7, 2021
@PiotrMachowski PiotrMachowski added the help wanted Extra attention is needed label Jun 7, 2021
@paultbarrett
Copy link

paultbarrett commented Jun 13, 2021

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

@xguitoux

This comment has been minimized.

@PiotrMachowski

This comment has been minimized.

@xguitoux

This comment has been minimized.

@pergolafabio
Copy link

i already shared map for Dreame F9

@PiotrMachowski
Copy link
Owner Author

PiotrMachowski commented Jun 14, 2021

@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
Copy link

@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
Copy link

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
Copy link

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

UraniumDonut added a commit to UraniumDonut/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor that referenced this issue Jun 26, 2021
Together with comment on issue PiotrMachowski#126
@aetha
Copy link

aetha commented Jul 15, 2021

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

@square-spade
Copy link

Is the Dev API branch broken?

@PiotrMachowski
Copy link
Owner Author

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

@pergolafabio
Copy link

Dreame is not supported Right?

@PiotrMachowski
Copy link
Owner Author

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

@cokefd
Copy link

cokefd commented Jul 25, 2021

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

@RoboMagus
Copy link

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

@SM-26
Copy link

SM-26 commented Jul 29, 2021

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
Copy link
Owner Author

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

@wistoff
Copy link

wistoff commented Jul 30, 2021

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
Copy link
Owner Author

@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
Copy link

wistoff commented Jul 31, 2021

@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
Copy link
Owner Author

@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

@MrAlex1124
Copy link

Hello,

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

@rumunn95
Copy link

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
Copy link

Scroll up, :-)

@rumunn95
Copy link

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
Copy link
Owner Author

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
Copy link

welfrjani commented May 22, 2022 via email

@PiotrMachowski
Copy link
Owner Author

Added in v2.2.0 release

@pergolafabio
Copy link

Great job, congrats to all who helped on this one

@kisjeth
Copy link

kisjeth commented May 24, 2022

Thnks a lot! Great work!

@spekkie3
Copy link

Does any one ( Dreame ) have the goto working ? ( pin & go to ? I get this error :

image

@kisjeth
Copy link

kisjeth commented May 24, 2022

Does any one ( Dreame ) have the goto working ? ( pin & go to ? I get this error :

image

Mee too

@PiotrMachowski
Copy link
Owner Author

PiotrMachowski commented May 24, 2022

That's because you use an integration that is not supported out of the box by the map card

Supported integrations

@ghost
Copy link

ghost commented May 24, 2022

Hi, Dreame D9 working mapa, now needs to test all services. Thanks

@magomao
Copy link

magomao commented May 24, 2022

What integration should I use for dreame.vacuum.mb1808?
The one I was using fails with send.command

@PiotrMachowski
Copy link
Owner Author

Which one do you use?

@magomao
Copy link

magomao commented May 24, 2022

@magomao
Copy link

magomao commented May 24, 2022

the map extractor works, the card too, start, stop all works, but when send.command fails

@xury77
Copy link

xury77 commented May 24, 2022

Which integration should i use? for Dreame L10?
Now I use xiaomi_vacuum (Dreame D9) integration for Homeassistant by pooyashahidi.

@PiotrMachowski
Copy link
Owner Author

PiotrMachowski commented May 24, 2022

@magomao @xury77 pooyashahidi/xiaomi_vacuum looks like an integration that should work for both of you. You can create a feature request in Map card

@magomao
Copy link

magomao commented May 24, 2022

didnt work for dreame.vacuum.mb1808 Xiaomi Miija 1C

@PiotrMachowski
Copy link
Owner Author

@magomao ok, you can create a feature request for DavidConnack/xiaomi_vacuum, but I suggest to try to find a version that is still maintained

@ghost
Copy link

ghost commented May 24, 2022

Good, I also can't put the zones or the pin & go to work, it always fails to call service. The play button, stop, location and return to the dock is working, the map also appears, which until now did not happen. Tks

@ghost
Copy link

ghost commented May 25, 2022

image

@xury77
Copy link

xury77 commented May 25, 2022

@magomao @xury77 pooyashahidi/xiaomi_vacuum looks like an integration that should work for both of you. You can create a feature request in Map card

Today I switched to the "send command" platform and found it works pretty well.
Start, pause, return to base, location, fan speed. All attributes are also valid. There is no choice of rooms and restricted zones. My robot is Dreame L10 pro. So is almost perfect even without https://github.com/pooyashahidi/xiaomi_vacuum integration.
Does the robot drive on the map in real time on other models? For me, unfortunately not.
dreamemap
dreamemap2

@PulsarFX
Copy link

for me the map seems to only update 2 times: at the start and after it has finished.
In between I could not get it to update the path. (Dreame F9)

@webjib
Copy link

webjib commented May 25, 2022

Same here, with my Dream D9. The behaviour is erratic: the map is updating randomly, and only a few times. It seems that opening the official Mi Home app helps a bit to retrieve the card (as if the robot is not sending information to Xiaomi cloud constantly, but only when this app is opened).

Config is:

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
    name: 'Carte AspiRobot'
    draw: ['all']
    force_api: dreame
    map_transformation:
      rotate: 90
      scale: 4

@PiotrMachowski
Copy link
Owner Author

It's possible that data in Xiaomi cloud is not updated live when app is not opened.

Repository owner locked as resolved and limited conversation to collaborators May 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.