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
888 stars 111 forks source link

L10s Pro Ultra Heat only sweeping a segment Feature? possible? #649

Closed evilmumi closed 3 months ago

evilmumi commented 3 months ago

Is it possible - and how to only sweep a segment? I have tried with script:

alias: Saugroboter - Fernando - Kitchen clean sequence:

But it got ignored.

i have configured 2 weekly tasks with the app - is there a disturbing action?

Any1 with a solution or how to find https://github.com/Tasshack/dreame-vacuum/issues/553 https://github.com/Tasshack/dreame-vacuum/issues/648

I hope this time this issue is opened correctly.

Logs:

`2024-07-26 11:59:54.310 INFO (SyncWorker_12) [custom_components.dreame_vacuum.dreame.device] Send action START_CUSTOM [{'piid': 1, 'value': 18}, {'piid': 10, 'value': '{"selects":[[3,1,3,0,1]]}'}] 2024-07-26 11:59:54.624 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Render frame: 1:300 took: 0.44 2024-07-26 11:59:56.068 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] New object name received: ali_dreame/OB053123/761016331/1 2024-07-26 11:59:56.068 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Request map data from cloud DELETED 2024-07-26 11:59:56.239 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode I map 1 302 2024-07-26 11:59:56.240 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property DUST_COLLECTION Changed: 1 -> 0 2024-07-26 11:59:56.240 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property SELF_WASH_BASE_STATUS Changed: 2 -> 0 2024-07-26 11:59:56.240 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property BACK_CLEAN_MODE Changed: 1 -> 0 2024-07-26 11:59:56.240 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property TASK_TYPE Changed: 0 -> 1 2024-07-26 11:59:56.301 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Render frame: 1:302 took: 0.05 2024-07-26 11:59:58.067 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] New object name received: ali_dreame/OB053123/761016331/0 2024-07-26 11:59:58.097 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Request map data from cloud DELETED 2024-07-26 11:59:58.180 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode map 1 303 not changed 2024-07-26 11:59:58.180 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property ERROR Changed: 68 -> 0 2024-07-26 11:59:58.180 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property FAULTS Changed: 68 -> 0 2024-07-26 11:59:58.194 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Render frame: 1:303 took: 0.00 2024-07-26 12:00:00.074 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property SELF_WASH_BASE_STATUS Changed: 0 -> 1 2024-07-26 12:00:00.140 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Render frame: 1:303 took: 0.05 2024-07-26 12:00:03.077 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property STATE Changed: 12 -> 9 2024-07-26 12:00:03.088 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Skip render frame, map data not changed 2024-07-26 12:00:08.079 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property SELF_WASH_BASE_STATUS Changed: 1 -> 5 2024-07-26 12:00:08.089 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Skip render frame, map data not changed 2024-07-26 12:00:10.073 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property STATE Changed: 9 -> 20 2024-07-26 12:00:10.084 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Skip render frame, map data not changed 2024-07-26 12:00:46.076 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property SELF_WASH_BASE_STATUS Changed: 5 -> 1 2024-07-26 12:00:46.086 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Skip render frame, map data not changed 2024-07-26 12:00:48.072 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property STATE Changed: 20 -> 9 2024-07-26 12:00:48.082 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Skip render frame, map data not changed 2024-07-26 12:01:52.070 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property SELF_WASH_BASE_STATUS Changed: 1 -> 0 2024-07-26 12:01:52.131 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Render frame: 1:303 took: 0.05 2024-07-26 12:01:53.079 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property STATE Changed: 9 -> 12 2024-07-26 12:01:53.089 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Skip render frame, map data not changed 2024-07-26 12:01:55.067 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CHARGING_STATUS Changed: 1 -> 2 2024-07-26 12:01:55.128 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Render frame: 1:303 took: 0.05 2024-07-26 12:02:01.075 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] New object name received: ali_dreame/OB053123/761016331/1 2024-07-26 12:02:01.075 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Request map data from cloud DELETED 2024-07-26 12:02:01.262 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode map 1 304 not changed 2024-07-26 12:02:05.076 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] New object name received: ali_dreame/OB053123/761016331/0 2024-07-26 12:02:05.076 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Request map data from cloud DELETED 2024-07-26 12:02:05.108 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Map ID Changed: 1 -> 2 2024-07-26 12:02:05.178 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode I map 2 0 2024-07-26 12:02:06.088 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 1 2024-07-26 12:02:09.090 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 2

2024-07-26 12:02:12.082 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 3 2024-07-26 12:02:13.069 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 0 -> 2 2024-07-26 12:02:15.072 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 4 2024-07-26 12:02:18.086 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 5 2024-07-26 12:02:21.079 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 6 2024-07-26 12:02:23.075 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 2 -> 5 2024-07-26 12:02:24.082 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 7 2024-07-26 12:02:27.070 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 8 2024-07-26 12:02:30.085 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 9 2024-07-26 12:02:33.073 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 10 2024-07-26 12:02:33.073 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 5 -> 6 2024-07-26 12:02:36.078 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 11 2024-07-26 12:02:36.084 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANED_AREA Changed: 0 -> 1 2024-07-26 12:02:39.080 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 12 2024-07-26 12:02:42.086 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 13 2024-07-26 12:02:43.072 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 6 -> 11 2024-07-26 12:02:45.088 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 14 2024-07-26 12:02:48.079 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 15 2024-07-26 12:02:51.095 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 16 2024-07-26 12:02:53.067 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 11 -> 18 2024-07-26 12:02:54.082 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 17 2024-07-26 12:02:57.088 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 18 2024-07-26 12:03:00.095 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 19 2024-07-26 12:03:03.082 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 20 2024-07-26 12:03:03.082 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_TIME Changed: 0 -> 1 2024-07-26 12:03:03.082 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 18 -> 22 2024-07-26 12:03:06.089 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 21 2024-07-26 12:03:09.091 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 22 2024-07-26 12:03:12.081 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 23 2024-07-26 12:03:12.081 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANED_AREA Changed: 1 -> 2 2024-07-26 12:03:14.073 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 22 -> 27 2024-07-26 12:03:15.084 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 24 2024-07-26 12:03:18.084 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 25 2024-07-26 12:03:21.082 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 26 2024-07-26 12:03:24.097 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 27 2024-07-26 12:03:24.097 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 27 -> 29 2024-07-26 12:03:27.086 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 28 2024-07-26 12:03:30.072 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 29 2024-07-26 12:03:33.076 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 30 2024-07-26 12:03:36.090 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 31 2024-07-26 12:03:39.088 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 32 2024-07-26 12:03:42.089 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 33 2024-07-26 12:03:45.089 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 34 2024-07-26 12:03:48.077 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 35 2024-07-26 12:03:51.080 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 36 2024-07-26 12:03:54.079 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 37 2024-07-26 12:03:54.079 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 29 -> 31 2024-07-26 12:03:57.087 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 38 2024-07-26 12:04:00.084 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 39 2024-07-26 12:04:03.080 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 40 2024-07-26 12:04:03.080 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_TIME Changed: 1 -> 2 2024-07-26 12:04:04.082 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 31 -> 33 2024-07-26 12:04:06.081 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 41 2024-07-26 12:04:09.075 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 42 2024-07-26 12:04:12.087 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 43 2024-07-26 12:04:14.073 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.device] Property CLEANING_PROGRESS Changed: 33 -> 30 2024-07-26 12:04:15.083 INFO (Thread-2 (_thread_main)) [custom_components.dreame_vacuum.dreame.map] Decode P map 2 44 `

Tasshack commented 3 months ago

Turn off customized cleaning switch and try again.

Tasshack commented 3 months ago

Also 0 is not a valid water_volume, it should be 1, 2 or 3.

evilmumi commented 3 months ago

you mean that setting? grafik but if i just want to sweep only?

Tasshack commented 3 months ago

If you only want to sweep then you need to set cleaning_mode before seting the starting action.

evilmumi commented 3 months ago

how to do it? is there a service? or how?

Tasshack commented 3 months ago
service: select.select_option
data:
  option: "sweeping"
target:
  entity_id: select.l10s_pro_ultra_heat_cleaning_mode
evilmumi commented 3 months ago

i have updated script:

alias: Saugroboter - Fernando - Küche saugen
sequence:
  - service: select.select_option
    target:
      entity_id: select.l10s_pro_ultra_heat_cleaning_mode
    data:
      option: sweeping
  - service: dreame_vacuum.vacuum_clean_segment
    target:
      entity_id: vacuum.l10s_pro_ultra_heat
    data:
      segments: 3
      suction_level: 3
      water_volume: 0
  - service: select.select_option
    target:
      entity_id: select.l10s_pro_ultra_heat_cleaning_mode
    data:
      option: sweeping_and_mopping
mode: single
icon: mdi:robot-vacuum
Tasshack commented 3 months ago

Remove water_volume: 0

alias: Saugroboter - Fernando - Küche saugen
sequence:
  - service: select.select_option
    target:
      entity_id: select.l10s_pro_ultra_heat_cleaning_mode
    data:
      option: sweeping
  - service: dreame_vacuum.vacuum_clean_segment
    target:
      entity_id: vacuum.l10s_pro_ultra_heat
    data:
      segments: 3
      suction_level: 3
  - service: select.select_option
    target:
      entity_id: select.l10s_pro_ultra_heat_cleaning_mode
    data:
      option: sweeping_and_mopping
mode: single
icon: mdi:robot-vacuum
evilmumi commented 3 months ago

seems working. grafik not sure

2024-07-26 12:47:44.516 INFO (SyncWorker_47) [custom_components.dreame_vacuum.dreame.device] Send action START_CUSTOM [{'piid': 1, 'value': 18}, {'piid': 10, 'value': '{"selects":[[3,1,3,2,1]]}'}]
2024-07-26 12:47:44.527 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Render frame: 3:166 took: 0.43
2024-07-26 12:47:44.563 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Skip render frame, map data not changed
2024-07-26 12:47:44.745 INFO (SyncWorker_39) [custom_components.dreame_vacuum.dreame.device] Update Property: CLEANING_MODE: 5122 -> 5120

and one script WITH MOP: grafik

alias: Saugroboter - Fernando - Küche wischen und saugen
sequence:
  - service: select.select_option
    target:
      entity_id: select.l10s_pro_ultra_heat_cleaning_mode
    data:
      option: sweeping_and_mopping
  - service: dreame_vacuum.vacuum_clean_segment
    target:
      entity_id: vacuum.l10s_pro_ultra_heat
    data:
      segments: 3
      suction_level: 3
      water_volume: 2
mode: single
icon: mdi:robot-vacuum
description: ""

Thank you. Now I have to create it for each segment bind the buttons and alexa commands. Thanks for your support

evilmumi commented 3 months ago

and also multiple segments only sweep:


2024-07-26 13:12:14.076 INFO (SyncWorker_41) [custom_components.dreame_vacuum.dreame.device] Send action START_CUSTOM [{'piid': 1, 'value': 18}, {'piid': 10, 'value': '{"selects":[[1,1,3,2,1],[2,1,3,2,2],[3,1,3,2,3],[4,1,3,2,4]]}'}]
2024-07-26 13:12:14.390 INFO (MainThread) [custom_components.dreame_vacuum.dreame.map] Render frame: 5:90 took: 0.44
2024-07-26 13:12:14.515 INFO (SyncWorker_54) [custom_components.dreame_vacuum.dreame.device] Update Property: CLEANING_MODE: 5122 -> 5120