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
887 stars 110 forks source link

Dreame x40 Ultra - All custom cleaning option #776

Closed telegrambeans closed 2 weeks ago

telegrambeans commented 3 weeks ago

First of all, thank you very much for the integration.

My problem is that I can't give the dreame x 40 ultra all custom commands for cleaning.

At the moment you can choose the rooms, the amount of water and the mode. What I'm still missing is the route.

This creates a bug.

I would like to be able to specify that it cleans deeply, for example, when vacuuming first and then wiping.

Currently it does not pass on these parameters on the xiaomi-vacuum-card although I had previously chosen the option and resets it to the default. You cannot specify the route as an option in the command dreame_vacuum.vacuum_clean_segment.

Example:

action: dreame_vacuum.vacuum_clean_segment
data:
  segments: "[3,2] "
  repeats: "[1] "
  suction_level: "[Standard]"
  water_volume: "[Moist] "
  cleaning_mode:  [Mopping after sweeping] 
  cleaning_route: [Deep] 

Thank you. Maybe you can improve that.

telegrambeans commented 3 weeks ago

If I now select this via the xiaomi Vacuum map card beforehand, then it resets the route. That's a mistake for me. I can select everything in the dreame app. And if I select all the options beforehand, then the route selection is also reset. As soon as I start cleaning via the integration.

Tasshack commented 3 weeks ago

Cannot set those settings while starting a job, water volume and suction level is part of the service but the rest is not. You need to create a script for what you want to do

telegrambeans commented 3 weeks ago

But I can't create a script if the cleaning resets the route selection when starting. I would need a selection to send this when starting the cleaning. Otherwise, it sets the route selection back to default. I select it beforehand and the selection resets with startup.

Tasshack commented 3 weeks ago

I select it beforehand and the selection resets with startup.

This should not happen I you select a valid route.

I cannot sure why it is reverting without the logs.

telegrambeans commented 3 weeks ago

I think because it is overwritten with the default when starting. In the app, the route is set to default. If I select this in the app, then the selection is kept.

dreame.log

Tasshack commented 3 weeks ago

Integration only updates that parameter when you change it's value using it's entity and start cleaning api command does not have a parameter for that so it must be updating by the vacuum when you start cleaning. I can see that in the log too but still no idea why.

telegrambeans commented 3 weeks ago

Could it be that it is because the selection is only available in mopping and mopping after sweeping? Otherwise, you can only choose between quick and standard.

I select the mode and yet it always sets it to default, even though the selection is available in the mode.

telegrambeans commented 2 weeks ago

I now understand why it is. If you select first vacuum and then mop, then it shows the route from vacuuming first with standard and only then deep cleaning. It's the same in the app. This is apparently the case with dreame.

Thank you for your time.