Dreame X40 Ultra integration with HA?

Hi all,

I’ve been having a heck of a time trying to integrate my new Dreame X40 Ultra robot vacuum into HA. I’ve created an account via the app, (got my ID, email address, password, etc all registered. Then downloaded the HACS Dreame integration. I’ve been looking at this post (Custom Component: Dreame Vacuum) and (GitHub - Tasshack/dreame-vacuum: Home Assistant integration for Dreame robot vacuums with map support), and for the life of me can’t figure out how to get this into HA. Some directions say to create an account with Xiamo, but I’m confused on how to bring my device into that - I’ve created that account but nothing… I always get an error message when trying to put in my login info:

Does anyone else have this model, or know how to integrate this into HA? Any help would be appreciated!!

I’m stumped on how to get this into HA

I don’t have a Dreame so can’t help you with your current issues, but I have been looking at the X40 during recent sales as it supports local-only control via Valetudo.

Getting it onto the Dreame looks to be more involved than my current robot vacuum (Roborock S5), it requires a breakout board and physical access, but I can vouch that Valetudo works well for me and lets me avoid vendor clouds.

If you’re interested in local control (or if the Dreame integration keeps giving you issues) it might be worth considering.

Actually that was going to be my next step after figuring out how to integrate it into HA - or should I just completely bypass the Dreame integration via HACS and just try Valetudo.

All the documentation I’ve been reading mentions using Xiaomi (which I am thinking functions similarly?) - again just got the vacuum setup yesterday so still getting used to what everything is.

If you want to install Valetudo, it makes more sense to me to just get it done and integrate it locally, but I am very cloud aversr. One thing that’s not clear to me however, is how much of the advanced functionality of the more modern vacuums still works after flashing, so it might be worth exploring before committing.

Maybe somebody else can chip in and speak to the Dreame cloud reliability with the HACS integration, no clue on that myself.

You need to install the latest Beta to get the Dreamehome account support.

1 Like

If you install Valetudo you will loose some of the important features of device so that you can buy L10s instead.

2 Likes

Here is a snippet from Valetudo support page.

1 Like

Thank you!! This is what fixed the issue for me. I am seeing everything now. Much appreciated!!

Do you know if these features are documented somewhere? I haven’t been able to find it.

There are still benefits to the higher end robovacs which I guess should not be affected (extendable arm, mop autoclean etc). I’m not so concerned if I don’t have camera access or the like with Valetudo, but if it cleans worse then it might not be an option.

Sorry OP for hijacking your thread but it looks like you managed to solve it anyways :slightly_smiling_face:

Yes, the beta version has fixed the issue. Thanks @tasshack

Does segment cleaning work for you? i want my x40 to only vacuum and not mopping in a segment cleaning, but this sh*t makes me old very fast!

@svalle This feature hasn’t been implemented in HACS yet, but there are workarounds to achieve the same result.
One approach that worked for me is to create a shortcut in the Dreame app that only vacuums a specific room.
You can then access that shortcut in Home Assistant and create a button to trigger it directly.

I hope this helps!
If anyone knows a better approach, I’d love to hear about it.

1 Like

I just got a X40 Ultra too… curious so did you install the beta version in order to just get pass the “xiaomi” login? It’d be nice if the plugin didn’t call it Xiami, or maybe refer to it as Dreame / Xiaomi to avoid the confusion (at least for me)…

The Beta version allows you to log in directly to Dreame using your Dreame account credentials. No Xiaomi login required.

Is it possible to use it without cloud connection? I’d rather not have a robot vacuum in my house with a camera connected to the cloud. Or is Valetudo my only option then?

The X40 is supposed to get Matter support very soon. I think it was promised for April 2025 and then postponed to July. So hopefully, the update will come very soon.

When Matter support is there, it should be possible to block Internet access from the router s side. Then Matter should still work and you’ll be able to control your X40 with it.

You will probably loose the map functionality because I don’t imagine getting the map data over Matter.

That’s true, it will be certified under Matter 1.2 for now (to my knowledge also not in more recent Matter versions upon 1.4.2 / 1.5).

For the record: Actually, the CSA just certified it (see here). According to the XML files, we will get a rather basic functionality (operational state, start/pause/resume/stop buttons, specific warnings (e.g., full bin, bin missing, or stuck)). More advanced features like maps or room selection will - if at all - come later.

I just bought the x40 Ultra and it arrived last week. I purchased the PCB breakout board and installed Valetudo and it works great.

Not sure what is missing compared to the built in app as I refused to use their cloud one. Actually I prefer it this way because now I don’t know what I am missing out on. AFAIK the only missing feature is being able to look out the camera on the unit which I personally prefer because that is a bit of security nightmare.

1 Like