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

Vacuum ignores cleaning mode when customized cleaning is on #696

Closed OlafKocanda closed 2 months ago

OlafKocanda commented 2 months ago

Describe the bug I have two automations per week where the vacuum (Dreame LS10u) mops once a week and vacuums twice a week on other days. So far, it worked that I have the customized cleaning turned on and have e.g. different mop pad humidity set in different rooms. For that I switch the cleaning mode for every room and then let the vacuum run.

Now, when I run the automation with the customized cleaning on, it seems to override the cleaning mode before exiting the station so that it always vacuums (and does not mop).

Interestingly when switching off the customized cleaning and changing the "general" cleaning mode option, it works as planned and the vacuum also mops.

To Reproduce At first the rooms are set to sweeping and mopping and then it is starting the action to run:

description: ""
trigger:
  - platform: state
    entity_id:
      - schedule.mop_schedule
    to: "on"
condition: []
action:
  - device_id: d652f7351cd68bc8b5e68ab4a03249b5
    domain: select
    entity_id: 1591447e4d0bd57e3728bb9a0d1e1fd9
    type: select_option
    option: sweeping_and_mopping
    enabled: true
  - device_id: d652f7351cd68bc8b5e68ab4a03249b5
    domain: select
    entity_id: 424dcd6967b3d58691a5f245a16a4dbe
    type: select_option
    option: sweeping_and_mopping
  - device_id: d652f7351cd68bc8b5e68ab4a03249b5
    domain: select
    entity_id: b0d89c9308676f7e145fa44828a5c10b
    type: select_option
    option: sweeping_and_mopping
  - device_id: d652f7351cd68bc8b5e68ab4a03249b5
    domain: select
    entity_id: 440d17fd78d01335b5e51cf837cbdd8d
    type: select_option
    option: sweeping_and_mopping
  - metadata: {}
    data: {}
    target:
      device_id: d652f7351cd68bc8b5e68ab4a03249b5
    enabled: true
    action: vacuum.start
mode: single

Expected behavior I would expect the vacuum to mop when the customized cleaning is set to mop and sweep.

Screenshots grafik

Additional Information (please complete the following information)

Tasshack commented 2 months ago

This is how the device works, nothing I can do about it. You need to set the room cleaning mode setting.

OlafKocanda commented 2 months ago

@Tasshack Maybe I have not stated it clearly enough. What is not working is:

What is working is:

Tasshack commented 2 months ago

I need a log.

logger:
  default: warn
  logs:
    custom_components.dreame_vacuum: info
OlafKocanda commented 2 months ago

Unfortunately I cannot reproduce it now. This is crazy.

I will reopen it with the logs once it comes up again. Sorry for that!