Tasshack / dreame-vacuum

Home Assistant integration for Dreame robot vacuums with map support
https://community.home-assistant.io/t/custom-component-dreame-vacuum
MIT License
777 stars 93 forks source link

Dreame L20 Ultra ONLY Vac or ONLY Wipe/Mop #333

Closed pillemats closed 9 months ago

pillemats commented 9 months ago

Hi

is it possible to start a clean mode where the vac only vaccuums or only wipes?

at the moment the vac uses my settings from the app. but in the dreame app i can only set up for each room -> only vac, only wipe, or both. if i change this it will automaticly accepted to the dreame plugin.

in my mind i would like to change this directly from the plugin and not from the app.

i would like to use it with my buttons in lovelace one button for vac, on for wipe and one for both

Bildschirmfoto 2023-12-08 um 09 39 46

Thanks

maehmann commented 9 months ago

Hey,

There is a select field where you can select that in HA called "Cleaning Mode".

If Customized Cleaning is active this select is deactivated as then the settings need to be made on a room by room basis through individual select fields.

pillemats commented 9 months ago

Thank you! I think I don’t understand.

Do you have an example for one of my rooms?

here is my config from the buttons cards:

`

and here of the automation:

` alias: Vac Büro saugen description: "" trigger: [] condition: [] action:

maehmann commented 9 months ago

Try adding a new card

`type: entities entities:

That should give you a dropdown to select the mode. This will be valid for all the rooms that are started through a service call.

PS: My current understanding is that there is no way to call the cleaning service and add the cleaning mode directly to the code.

pillemats commented 9 months ago

ok but i cant find any mod sounds like wipe or only vacuum

Bildschirmfoto 2023-12-08 um 15 53 51
maehmann commented 9 months ago

Don't add any services. Only the select field. On the GUI you can then select the cleaning mode which will be applied after calling the service to clean a segment.

It would be much nicer to be able to add the cleaning mode directly in the data section of the service call but as mentioned I don't think that is possible at the moment

pillemats commented 9 months ago

ok, this is now the setup.

Bildschirmfoto 2023-12-08 um 16 12 29

if i tap on the button it shows this:

Bildschirmfoto 2023-12-08 um 16 12 15
maehmann commented 9 months ago

The trick is to use the "Entities" card and not the "Entity" card.

Then you get the drop down menu where you can select the mode instead of the current state.

Another way would be to use an automation and call the service select.select_option to automatically set the mode ...

Options are: mopping sweeping sweeping_and_mopping mopping_after_sweeping

service: select.select_option target: entity_id: select.dreamebot_l20_ultra_cleaning_mode data: option: mopping

pillemats commented 9 months ago

ah ok i understand. I think the first way is easier.

I tried out but the field is grey and i cant change anything

Bildschirmfoto 2023-12-08 um 16 59 44

edit: I found the problem: i must use the room too, not only cleaning mode.

did you know its possible to change the name of the rooms?

Bildschirmfoto 2023-12-08 um 17 06 24

i looks not nice....

also i cant choose all my rooms at once.... is it also possible ? i cant find an select option for that

maehmann commented 9 months ago

This option is only available if the "select.dreamebot_l20_ultra_cleangenius" is set to Off => Add another entities card for that. If not Off you can't set any custom settings as this is the "Smart Mode" of the robot.

Additionally the "switch.dreamebot_l20_ultra_customized_cleaning" also needs to be Off. If this is On you need to set the cleaning mode on a room basis.

pillemats commented 9 months ago

the finish is nearby :-)

so it looks now:

Bildschirmfoto 2023-12-08 um 17 27 35

is it possible to integrade this directly as an card? Without tapping on it?

Bildschirmfoto 2023-12-08 um 17 26 46
maehmann commented 9 months ago

Hm ... not sure if this is possible with a simple card.

The Mushroom cards can show more buttons like Pause etc: https://github.com/piitaya/lovelace-mushroom/blob/main/docs/cards/vacuum.md

but not the fan speed for example.

pillemats commented 9 months ago

ok thanks.... i also done this with xiaomi vacuum map

Bildschirmfoto 2023-12-08 um 17 48 21

the right side is now a little bit empty.... what can i show there?