-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Xiaomi Vacuum - resume clean-up after pause #471
Comments
This would need to know what command is being used to continue the cleaning after a pause, either by checking what miio (javascript) does if it supports this, or analyzing the traffic to see what the app does. |
I sniffed the command:
so
I guess it is more a job for home assistant to remember state before paused... |
Ok, what happens if you try to resume the cleaning with that command when it has been paused during a normal cleanup? Could you also check what does it send to resume from a regular pause? |
During regular cleanup this command do nothing. To resume from a regular cleanup it just send I'm not sure how Mi Home app knows that vacuum is paused from zone clean up, but I think it is This is full info sent to app during paused in zone clean up:
This is how it looks like when vacuum is paused:
One thing, MI Home app after restart doesn't know that vacuum is resuming clean up if you press clean. |
Uhh, that's ugly.. So from the looks of it they reused the I'm all ears if you have a proposed way to handle exposing this, my proposal:
|
So, tested it more.
So for me it is like this:
But I cannot figure timeout for this... as if app is open it always know that vacuum is paused. If I open another instance of Mi Home, then it gets state: 10, but doesn't know that vacuum was paused. Maybe they don't care So about your proposal:
|
Yeah, I think all states all also valid in the zone clean up mode. in_cleaning did not use to work in earlier firmwares (or maybe it really indicates the mode of the cleaning? So one for each regular, spot and zone?), so that's why the state itself is used in the code.
My gen1 does not have I created a preliminary PR to add the resume command as well as a small helper which first checks the state and runs either resume or start depending on it.
Vacuum platform provides also |
First take on fixing #471. resume_or_start() can be used to either unpause or start a new cleanup depending on the state of the vacuum.
First take on fixing #471. resume_or_start() can be used to either unpause or start a new cleanup depending on the state of the vacuum.
My friend has gen1 vacuum and it supports zone cleaning. I guess they added it with some firmware update.
Xiaomii Vacuum component is derived from
|
Yeah, mine supports
Good catch! |
First take on fixing #471. resume_or_start() can be used to either unpause or start a new cleanup depending on the state of the vacuum.
@pszafer can you tell me jow you sniffed out that command? I need another command for the roborock's water supply. |
I guess I used Wireshark on phone or tcpdump on router. I don't remember now because it was so long ago, but tshark would work I think |
And then what? The command won't be in plain text in the log. How can the command be read out of the hex data? Do you remember that? |
@Markkuuss which command do you need? |
These both here:
:-) Thank you, @rezmus ! |
I think this should be working now, #763 fixed a corner case when the vacuum has errored. Please reopen, if this is still a problem. |
Hello,
Is it possible somehow to resume zone clean up and regular clean up?
This task is possible from Mi Home app.
I can send pause command, but with start command vacuum wants to clean everything.
The text was updated successfully, but these errors were encountered: