I think I was wrong. I only tried to get token with mi home app and this is the way I using it. Sorry.
In my experience, the easiest way is to use the windows “roborock_token” app: https://github.com/prinz3nroll3/roborock-token
BUT … what I’ve found for me (I use the Roborock app):
- Resetting the Wifi and using the app above easily gets the token
- Use the Roborock app to setup the S5 Max as a “new” vacuum (it, does infact just replace thje eixsting one, with all maps etc maintained) to connect it back to WiFi
BUT - this then appears to create a new token - which means we are back at square one. Anyone who uses Roborock app managed to get a token and then manage to get S5 max back in the app and also have a usable token??
Same here with an S5 Max, with an older firmware (01.06.xx) it worked also when connected to the network. With both firmwares, it said “unavailable” in Home Assistant
Used same app, token is showed, but I used it in NodeRed plugin and problem with connection.
Have S5 Max with firmare 1.08.76
So, I bought recently S5 Max as an upgrade of my S5. Still to understand if it really vacuums and mops better, but this ain’t the question.
I want to ease how I use it - since I use one setting for vacuuming and one setting for mopping I could really benefit of some widget-style operation - one button for vacuuming and one for mopping.
I found this - https://github.com/jghaanstra/com.robot.xiaomi-mi
If I understand correctly, if I spoof the UDP package for vacuuming and mopping I can potentially create my own widget.
My question - is it possible to obtain this with S5 Max and Roborock app? I have been trying for a while with the method above but I either get UDP packages, but they don’t work or I don’t get any. Does this work, in general? Or there is something wrong with the way I spy on my traffic?
Dont think it’s possible…yet. It appears that the token changes too often for it to be reliable when paired with the Roborock app. More discussion can be found here:
Please take a look at the following request for feedback on Roborock and share your feedback:
Hey Folks
I’ve added S5 Max to Home assistant on a very basic level… But i want to further integrate with homekit and show maps and do various things? Is it possible? Just shows as a switch currently in homekit
Can anyone guide on how to make this integration full with maps, scripts, zones etc so that we can do automation etc?
Hi, which version of Xiaomi Mi Home did you use to find the robot?
I can’t find a version that detects the robot
I’m with roborock 5s max and nonway to get token to allow HA manage the device…
any of workaround works…
any idea…?
I recently picked up a Roborock S5 max on a pre-black Friday sale and though I would share my experience with getting it integrated with home assistant. There are a number of guides around for getting the token using a older version of the Mi Home app, downloaded an an apk. I could not get any of these to work. What worked very well was Mi-Home-token-extractor. I should note that my vacuum is set up with a country value of “us”. However, token-extractor reported no us token. I ran it again without specifying so it would search all countries. It reported the token under both “tw” and “sg”.
Set up of the integration proceeded normally after this. I also upgraded the firmware to the latest version without it impacting connectivity.
So, anyone have the new S4 Max? From my google’ing its only compatible with the Roborock app, not the Mi home. Anyone have it connected to Home Assistant?
Hey,
If you haven’t got an answer, the S4 Max is supported in the Mi app
here is a picture of presumably all the vacuum supported by the Mi app
Given the volume and recency of the comments above is putting me off buying the S5 Max at all. Anyone want to convince me otherwise?
I have a s5 max in the mail on route to me. But I agree with you that integration in Home Assistant seems complicated.
It seems like there are multiple options to do so and it can be done with the mi app and the roborock app, but none of the solutions are very straightforward.
No, your choice.
If not ingrated into HA is a big item for you, don’t do it.
Otherwhise it is a supurb vacuumcleaner and I’m very happy with it.
I got my S5 Max a few days ago and have successfully integrated it into HA.
Just wondering if there is anyway from within HA to control water levels for the mopping?
I’ve also found, if I set the vacuum power to “customize” it shows as “106” in HA. The other power settings show up correctly. I would like to be able to set the “customize” power setting via HA.
Any thoughts?
Hi, all s5 max on the way. Read the entire thread. One thing I do not understand yet about “getting the token” is if I need to “register somewhere”? Do I need to install an adroid app? Or windows app or other? And is that really needed? Can I delete that app afterwards and keep using the HA integration? In other words, can I attach the s5 via a separate ip subnet from my home network with internet access to home assistant without registering on a chinese cloud?
Thanks in advance for answering possibly stupid questions.
Yes, in the Mi Home app you have to create an account.
Yes. The Mi Home app. AFAIK, there is no Windows app.
Yup! Can’t register or activate the vacuum without it (which is REALLY stupid, but it is what it is).
Nope. If the vacuum can’t connect to the Xiaomi servers, it won’t be able to be controlled via either HA or the app.
What you can do though, is install Valetudo on it. For the S5 max, you have to connect to it via uart, though.
https://valetudo.cloud/pages/general/rooting-instructions.html
https://builder.dontvacuum.me/s5e-cheatsheet.txt
Thanks for replying!
Hm… if I have added the S5 max to wifi it can connect to the server though? Do I really need to keep an app on my phone? really? prefer not to…
Valutedo? I that a custom firmware thing alike?