Setting up Dreame X40 Ultra in HA + Zone cleaning

Hi everyone,

Today I managed to add my Dreame X40 Ultra to Home Assistant using the HACS Dreame Vacuum integration.
I also installed the Xiaomi Vacuum Map Card to access features like the live map.

Here’s what I added to the dashboard:

Almost all the buttons seem to work out of the box without any additional configuration, except for the zone cleaning feature (or perhaps I’m using it incorrectly).
When I try to start cleaning using either of these options, I get the following error:**

Action xiaomi_miio.vacuum_clean_zone not found.

Does anyone know why this error appears and how I can fix it?

Thanks

Resolved: I just needed to select the correct option for the card.

Just one last question: now that I’ve selected the correct platform option, room cleaning is working perfectly. However, when I click on the Rooms icon, I get a long list of repeated rooms, as shown below:

Is there something I’m missing? Do I need to edit the configuration YAML to tidy that up?

I had the same issue. Generating the room config added multiples. I cleaned up the extra duplicates in the YAML and it’s working well.

@AndyMUK thanks for the tip! Could you please clarify which YAML file I need to modify?

The YAML for the card. After you have generated the config for the rooms, click show code editor

Then look for the section that starts…

  • template: vacuum_clean_segment
    predefined_selections:

You’ll find that is repeated lots of times but only needs to exist once. It looks like a bug in the card for the routine that generates the room config but it’s easily worked around.

1 Like

Perfect! Thank you mate.