Custom Component: Dreame Vacuum

v2.0.0b9 has been released with some bug fixes new features;

Also X30 and X30 Pro has been added to the supported devices list with all available features in the App thanks to @AltaKendrick47.

Ko-Fi PayPal.Me

5 Likes

First of all, thank you for all your work on this. Your integration has made my vacuum (dreame.vacuum.p2140p - sold under the Xiaomi brand here) a pleasure to use.

Secondly, a question: In the Xiaomi app, my device is capable of room and area cleaning, but this integration seems to think it is not. Is this an error in my configuration or something that might potentially be added in the future?

Integration is capable of everything that your app can do. I donā€™t know why you think it cannot do room or zone cleaning but you should really read the documentation before making assumptions like this.

Thank you for your kind reply.

To close the loop for anyone who might stumble upon these posts while searching, indeed, the integration does support room cleaning for dreame.vacuum.p2140p. The problem was the configuration of xiaomi-vacuum-map card. Once I selected the correct vacuum platform within the card settings, room cleaning started to work.

Iā€™m just about to buy a L20 but would prefer to not send any camera stream/images to any cloud. Would this work with your component? If, for example, I would

  • set everything up with the Dreame app (including map features like forbidden zones etc?)
  • then set up with HA to what I need for ā€œdaily businessā€
  • then deny internet access for the dreame in my router and uninstall the app
  • in cases when I need to adjust forbidden zones, for example, allow internet acces, adjust everything and disable it again.

Are there downsides on this approach, besides the need to manually (dis)allow internet acces in my router? Your component wouldnā€™t send anything to the cloud, would it? Would I miss any ā€œdaily businessā€ feature in this scenario?

If that works out maybe I could even add that info somewhere in the docs as there have been more questions around ā€œdecloudingā€ but I wasnā€™t able to find an actual showcase how people use it.

Thank you very much in advance
Ben

1 Like

It is not going to work like that. If you plan to decloud your vacuum you should not prefer Dreame brand.

1 Like

On what point would the scenario ā€œbreakā€?

When vacuum installed to the Dreamehome cloud it disables the local api and can only be accessed from cloud.
The scenario you want to use is only available when vacuum is installed the Mi Home app and L20 cannot do that right now.

Is that something you expect to change? But as far as I understood, when I use the Dreamehome cloud in the first place Iā€™m lost anyway, or could I reset it and start over with Mi Home (and the above scenario)?

Iā€™m ok with cloud to some extend, but a camera stream from my flat somehow doesnā€™t feel too good :face_with_peeking_eye:

You cannot install your vacuum on Mi Home app because it is not present in the device list. There are very few vacuums that can be installed on both Mi Home and Dreamehome and I donā€™t expect to see other new models in Mi Home app at least a year (because testing by Xiaomi team takes a lot of time).
You can switch to the Dreamehome app from Mi Home app without hard resetting the device but you need to hard reset the device switching to Mi Home app otherwise device wonā€™t enable the local api and integration cannot access the device.
There is a switch for disabling the obstacle photos with a privacy policy in the app so if you donā€™t accept the policy you cannot enable the cloud photo upload feature anyway. Also device will tell you via sound every 15 minutes while live streaming is enabled but this does not mean Dreame or other 3rd parties cannot access the camera without you knowing about so I can understand your justified concern. You can put a sticker on your laptop webcam but you cannot do that on your vacuum because that will prevent it to work properly.
Dreame devices are not the most securely engineered devices but the newer models are especially designed not to be de-clouded (because they need your data for further development of the software like Tesla does) so I would recommend you checking the other models.

1 Like

Aside from this not being exactly the answer I had hoped for, Iā€™m really appreciating your great support and knowledge. Kudos!

I need access to a vacuum with Mopping Effect feature for implementing it to the integration because currently changing the Mop Pad Humidity setting does not effect anything and even may break operation of the device.

Is there anyone willing to share a L20/L20 Ultra to my Dreamehome account for couple of days to help make this project even better?

1 Like

Hi,
Iā€™m trying to add my dream L10 prime in the Mi Home app but my model is not there

Hello,
I have used this integration past year and have been happy with it. Iā€™m wondering is is possible to create some kind of button in HA / Dashboard to automate e.g vacuuming all rooms 2x time in map 1?

What can I do to reset the meter? In my application the sensor cannot be reset, only a brush and a filter. Or how to disable the notification?

I am going to fix this on the next Beta release but you can read my advice from the related issue.

Thanks, it works :slight_smile:

First of thank you so much for all the work you did. This is an amazing addon. With alot of featers, it just amazing. I have update dated to the lates beta version my dreame.vacuum.r2210 is working.

but i get some erros on my log:

This error originated from a custom integration.

Logger: custom_components.dreame_vacuum.dreame.protocol
Source: custom_components/dreame_vacuum/dreame/protocol.py:1018
Integration: Dreame Vacuum (documentation, issues)
First occurred: 10:35:35 AM (1 occurrences)
Last logged: 10:35:35 AM

Error while executing request: https://api.io.mi.com/app/v2/home/rpc/1058468772 HTTPSConnectionPool(host='api.io.mi.com', port=443): Read timed out. (read timeout=5)

also

This error originated from a custom integration.

Logger: custom_components.dreame_vacuum.dreame.map
Source: custom_components/dreame_vacuum/dreame/map.py:304
Integration: Dreame Vacuum (documentation, issues)
First occurred: 10:48:32 AM (1 occurrences)
Last logged: 10:48:32 AM

Send request map failed: Unable to discover the device over cloud

also

This error originated from a custom integration.

Logger: custom_components.dreame_vacuum
Source: custom_components/dreame_vacuum/camera.py:676
Integration: Dreame Vacuum (documentation, issues)
First occurred: 10:33:20 AM (1 occurrences)
Last logged: 10:33:20 AM

Waiting render complete

This may happen if you are connecting to the CN servers over Europe and you have enabled the Prefer Cloud option.
Integration does not work without you enabling the Prefer Cloud option because you have previously switched to Mi Home app from Dreamehome app without hard resetting the device.
The best way is to solve this without hard reset is to installing the device to the Dreamehome app again and add it to the Home Assistant using Dreamehome Account option since you have installed the Beta.

Hi, first of all thank you for your work on this :slight_smile:

Iā€™m trying to decide whether it is worth it to hard reset my L20 Ultra to be able to use local control. Do you know which features are lost when using the L20 Ultra through the Mi home app instead of the Dreame app?