Dreame vacuum - remove mop pads and detect undocking?

Hi,

I have a Dreame L20 Ultra and currently trying to learn Home Assistant, scripting, etc :slight_smile: I have the Dreame Integration and Xiaomi map card installed.

I have a “clean_zone” with coordinates set up. I would like to vacuum only, but at the moment the mop washing starts every time I press “Start vacuum”. Is it possible to either:

  • disable mopping (or set it to sweep/vacuum only) or
  • force mop pad removal or
  • disable mop washing

when pressing “Start vacuum” so that map washing does not happen?

Also, on “Start vacuum”, I would like to detect undocking, wait a few seconds and pause cleaning

Is any of this possible? Thanks!

1 Like

Hi, welcome to the forum!

Since you didn’t provide a category for your thread I did put it in the ‘Third party integrations’ because that’s what your question is about.

Does the integration provide the possibility to control what you want?

Ok, I thought I had put it in that category by mistake and later moved it to Configuration lol I can move back :slight_smile:

Geez I think I found a way to remove the mops… the way to do it is via “cleaning_mode”. But that was disabled for me, and I just realized it’s because Customized Cleaning was set to true. Setting it to false activates “Cleaning mode”. Setting that to Sweeping in my script will remove the mop pads. I will confirm.

Next thing is detecting undocking.

I got it working! See screenshot of my script below :slight_smile: The problem was that my vacuum is on floor 1, and when I set it to vacuum the carpet on floor 2, it would undock and think it was on the right floor and try to find the carpet zone, assuming it was on correct floor. Then it would start creating a new map.

All I wanted to do was automate the carpet settings and have it pause after it undocked, so that it gave me a chance to walk up to the floor and bring it to the correct floor. I couldn’t find a way to do that in the Dreame native app so I figured it would be a perfect first project for learning HA.