Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dreame D9 & L10 Pro specific room cleaning #491

Closed
Sim0cYz opened this issue Mar 27, 2022 · 11 comments
Closed

Dreame D9 & L10 Pro specific room cleaning #491

Sim0cYz opened this issue Mar 27, 2022 · 11 comments

Comments

@Sim0cYz
Copy link

Sim0cYz commented Mar 27, 2022

Hello! I tried to follow other issues to setup specific room cleaning in Home Assistant for my robots (D9 and L10 Pro) without any success. I am only able to create scripts to start, stop whole floor cleaning and return to docking station.

For example:

service: xiaomi_miot.call_action
data:
  entity_id: vacuum.dreame_p2029_2133_robot_cleaner
  siid: 3
  aiid: 1
  throw: true

is successfully returning to the base, but this does nothing:

service: xiaomi_miot.call_action
data:
  entity_id: vacuum.dreame_p2029_1882_robot_cleaner
  siid: 2
  aiid: 3
  params:
    - piid: 1
      value: 18
    - piid: 10
      value: '{"selects":[[3,1,3,3,1]]}''

Originally posted by @xBourner in #449 (comment)

and I can't understand where are those params took from..

I tried to use Vevs' modded MiHome APK, but I'm missing something because I can't find room ids in my logs. What should I do and what should I look for?
Thank you!

@al-one
Copy link
Owner

al-one commented Mar 28, 2022

You can show me the vevs logs.

@Sim0cYz
Copy link
Author

Sim0cYz commented Mar 28, 2022

Sure, hope pastebin is ok for you.

D9
L10 Pro

Let me know if you needed something else. Thank you!

@al-one
Copy link
Owner

al-one commented Mar 29, 2022

- siid: 2 # vacuum
  aiid: 3 # start-room-sweep
- siid: 4 # vacuum-extend
  aiid: 1 # start-clean

2022-03-27 19:54:38 -> {"id":4004,"method":"action","params":{"did":"447506991","siid":4,"aiid":1,"in":[{"piid":1,"value":18},{"piid":10,"value":"{\"selects\":[[4,1,2,2,1]]}"}]}}

If only one related record is found in your logs, please clean your each room in the Mihone APP (vevs) and then search for "siid":2,"aiid":3 or "siid":4,"aiid":1 in the logs.

@Sim0cYz
Copy link
Author

Sim0cYz commented Apr 1, 2022

Thank you, I tried creating this script:

service: xiaomi_miot.call_action
data:
  entity_id: vacuum.dreame_p2029_2133_robot_cleaner
  siid: 2
  aiid: 3
  params:
    - piid: 1
      value: 18
    - piid: 10
      value: '{"selects":[[4,1,2,2,1]]}''

but it does nothing..
Do I need to control it via Cloud, or locally should work too?

@Sim0cYz
Copy link
Author

Sim0cYz commented Apr 11, 2022

Sorry for bumping this, but I'm still stuck and unable to set it up correctly

@al-one
Copy link
Owner

al-one commented Apr 12, 2022

service: xiaomi_miot.call_action
data:
  entity_id: vacuum.dreame_p2029_2133_robot_cleaner
  siid: 2
  aiid: 3
  params:
    - piid: 1
      value: 18
    - piid: 10
      value: '{"selects":[[3,1,3,3,1]]}'

The original post mistakenly wrote an extra quotation mark.

@Sim0cYz
Copy link
Author

Sim0cYz commented Apr 15, 2022

Thank you, that worked! But I find out that my L10 Pro goes unavailable after few hours, without I do anything.
Is that a known issue? Thank you

@al-one
Copy link
Owner

al-one commented Apr 15, 2022

If you find some error/warning logs after it's unavailable, please report it to me via a new issue.

@Sim0cYz
Copy link
Author

Sim0cYz commented Apr 15, 2022

If you find some error/warning logs after it's unavailable, please report it to me via a new issue.

Here's the new issue and it's the reason why I'm unable to clean certain rooms with scripts (in cloud mode they don't work, but in local mode - when it happened to be available - they worked fine)

@Sim0cYz
Copy link
Author

Sim0cYz commented Apr 16, 2022

Ok so it was a connection issue between Home Assistant Core and my device, solved as in the issue linked above. Now the script to clean a specific room works, without that extra quotation mark. This works fine:

entity_id: vacuum.dreame_p2029_2133_robot_cleaner
siid: 4
aiid: 1
params:
  - piid: 1
    value: 18
  - piid: 10
    value: '{"selects":[[4,1,2,2,1]]}'
force_params: true
throw: true

Thank you for your kind support! 👍

I'm leaving this here, may be useful for somebody like me.
Inside square brackets, these are the values you should specify:

1) room id
     - 1-… (I have 6 rooms and they are numbered consecutively from 1 to 6)
2) number of repetitions
     - 1-… (I don't know if there's a maximum number of repetitions)
3) vacuum power
     - 0 = silent
     - 1 = standard
     - 2 = high
     - 3 = turbo
4) water quantity 
     - 1 = low
     - 2 = medium
     - 3 = high
5) mopping/wash mode
     - 1 = daily wash
     - 2 = deep wash

to clean multiple rooms with one script, you can add other groups of parameters in square brackets, separated by commas, just like this:

entity_id: vacuum.dreame_p2029_2133_robot_cleaner
siid: 4
aiid: 1
params:
  - piid: 1
    value: 18
  - piid: 10
    value: '{"selects":[[5,1,2,3,3],[3,1,2,3,3]]}'
force_params: true

(translated roughly, sorry!)

@jlssmt
Copy link

jlssmt commented Sep 19, 2022

Hi @Sim0cYz
I also have your Dreame D9. I tried to adapt your calls above for the L10. Unfortunately, I can't get it to work. I figured out my room IDs. Would you happen to have a current running template for the D9 for me? Thanks in advance ;-)

(#793)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants