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 l40 ultra: impossible to change operating mode #733

Closed mattia93cz closed 1 month ago

mattia93cz commented 1 month ago

Describe the bug changing the operating mode in the dreame_vacuum service: vacuum_set_custom_cleaning is always used the last one set by the app

To Reproduce

alias: TEST VACUUM sequence:

Expected behavior setting - 0 - 1 - 2 in operating mod should change the modes

Screenshots If applicable, add screenshots to help explain your problem.

Additional Information (please complete the following information)

Tasshack commented 1 month ago

I need logs to see the command that has been sent to the vacuum.

PrinceofValium commented 1 month ago

Hi there,

i own the L20sUltra and its the same. It seems that the app custom-room settings override the in HA integration settings. Tell me what i have to do to give you logs and i will do.

Tasshack commented 1 month ago

I think problem is with the water volume. Can you try same command without water volume parameter?

PrinceofValium commented 1 month ago

This is my automation now without mop_humidity:

`sequence:

In app it is set to sweeping_and_mopping and if i start this automation the vacuum is sweeping and mopping...

Edit:

If i start this vacuum is also doing the things which set in app.

`action: dreame_vacuum.vacuum_clean_segment target: entity_id: vacuum.l20ultra data: segments:

Tasshack commented 1 month ago

Your automation seems correct. I will try to reproduce the issue and fix it.

mattia93cz commented 1 month ago

again with my L40 the cleaning mode entities are not available Screenshot 2024-09-30 093249

Tasshack commented 1 month ago

again with my L40 the cleaning mode entities are not available

You need to turn on customized cleaning switch.

mattia93cz commented 1 month ago

again with my L40 the cleaning mode entities are not available

You need to turn on customized cleaning switch.

Oh sorry. I've only been using the integration recently. Everything else seems to work fine. the only problem is with "vacuum_set_custom_cleaning". It is not possible to leave the water volume parameter blank or set to 0 If you need further information I'm available

Tasshack commented 1 month ago

Can you try setting it like this?

action: select.select_option
data:
  option: sweeping
target:
  entity_id:
    - select.l40_ultra_room_5_cleaning_mode
mattia93cz commented 1 month ago

Can you try setting it like this?

action: select.select_option
data:
  option: sweeping
target:
  entity_id:
    - select.l40_ultra_room_5_cleaning_mode

I created this script:

alias: test aspirazione corridoio sequence:

even changing select.select_option to sweeping always keeps the latest setting from the app.

Is the method I used to start it in room 5 wrong?

Tasshack commented 1 month ago

App does not refresh automatically so you need to return to the main screen before checking it again. Also room id may be wrong, you can check the correct room id from vacuum attributes. The number that you see on the map is not a room id but cleaning sequence.

mattia93cz commented 1 month ago

App does not refresh automatically so you need to return to the main screen before checking it again. Also room id may be wrong, you can check the correct room id from vacuum attributes. The number that you see on the map is not a room id but cleaning sequence.

I think I understand the problem. It worked but I had to reload the integration. Now I can get it to work properly. the only annoying thing is that if I decide to vacuum only one room, before leaving, the robot washes the mops anyway, leaves the charging base, comes back in, leaves the mops and then comes out again and vacuums the selected room. in this way it consumes water unnecessarily and energy to dry them

Tasshack commented 1 month ago

So you have wasted my time for no reason i guess.