Custom Component: Dreame Vacuum

Unfortunately X30 is a special model that requires my access to the device for adding support for it because I cannot access its plugin over cloud API without adding the actual device to my account unlike the other models.

Hello, I was wondering if this integration would allow me to bypass the region lock on the X20 pro plus or not?

Dreame has recently implemented the region lock on the device firmware too so you cannot use this integration for bypassing it.

Thanks for the reply So if I buy one can you use it to access the api?

If you share the device with my Dreame account when I enter the device page the app will download the plugin and I can extract it after from the phone and get the map private key from it. API only returns the correct plugin if the device has been added to the account requesting it.

Great! I’ll back home in about a week. Once I back home and received the x30 I will contact you. Thanks
And one more question. Is this api extract “once for all” Or needs to be done with each individual x30?

This is required only for adding support to the X30 series, after that anybody can use the integration as is like other models.

Hi, can I do fast mapping on x20 pro? -don’t know why, but fast mapping button always disable.

PS My robot build bad map, and always working with it((

There might be three reasons why the button is disabled.

  • While vacuum is cleaning or another task is present
  • You have reached max number of maps can be added
  • There might be a bug preventing re-enabling the button after task completion

1 I check in different modes, always unavailable.
2 Don’t know how to check? Visually, I have only one map.
3 I also think is a bug, it here from start using that add-on (this *option always set unavailable)

*option:

Maybe there is another way to force robot Rebuild map (without full reset), because for now I have bad map, and I think because of this robot cleans not optimal (use more energy and water).
Current dreame “bad” map (only bathroom is correct):
badMapMap

And for comparison what I want to have if all will be correct. Here is a picture of my fake photoshop map that I want (it is possible?)

Fast mapping button is disabled because you have not enabled the multi-map feature therefore your maximum map count is one. First you need to delete the current map for creating a new map when you have reached the maximum number of maps.
This is implemented as is on the app too so please don’t try to decide what is bug and what is not since you don’t know how app actually works.

I think the 2023.11 update of Home Assistant broke this integration.
I get the following errors in logs during the setup of the platform:

Error setting up entry Dreame L10 for dreame_vacuum
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/dreame_vacuum/__init__.py", line 22, in async_setup_entry
    coordinator = DreameVacuumDataUpdateCoordinator(hass, entry=entry)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/dreame_vacuum/coordinator.py", line 125, in __init__
    persistent_notification.EVENT_PERSISTENT_NOTIFICATIONS_UPDATED,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'homeassistant.components.persistent_notification' has no attribute 'EVENT_PERSISTENT_NOTIFICATIONS_UPDATED'

Is somebody facing the same issue?

Regards

1 Like

Hi,
I have the smame issue as vercellino, just updated to new HA 2023.11 and integration stop working with the same error in log. Just before this update Dreame works after not :frowning:
BR

1 Like

Currently latest stable version does not work with HA 2023.11+ but the beta version works perfectly.

I encourage everyone to switch to the beta version.

3 Likes

Thank you, I will give it a try.

Great integration.

Regards

wow… so I have just installed the beta (was still on stable until now…) - you mean, the beta is working with the dreamehome app?

I will immediately test it :slight_smile:

btw: how does it work if I switch from the xiaomii to dreame app?
I think, I need to re-configure the integration…?
But my current settings, and information like first clean, etc. would still be recovered, or?

Hi.
It works.
Thanks.

Maps and statistics won’t be lost if you are switching from Mi Home to Dreamehome app but you have to hard reset the device if you are switching from Dreamehome to Mi Home app.

Hi, thanks - that worked well… :slight_smile:
One more question: will the camera stream be available? or saved pictures?