I was trying to get the token last couple days on Android, today I took the time to get the token and I got it after 4 hours trial and error, tried different apk’s none of those worked except this one (but read my explanation below):
If you have the Roborock app, delete data first and remove the app and never install it back ![]()
Do not remove the roborock between the tries from the app you use, first install the latest version from play store, in my case I used The Netherlands as region but 5.4.49 does not have Netherlands so I choose Europe. After your Roborock S5 Max shows it’s map in the app, remove the app (do not delete data) and install 5.4.49 and open the app, after login the vacuum will be there, try to tap on it couple times, it will give error and wont open the map or anything, close the app and get the log file from “Plug_Devicemanager” the last token shown there should be the correct one. Now you can remove the app (don’t touch the data) and reinstall the latest one from play store.
DO NOT try to connect to the robot through HA integrations, instead wait couple minutes and add this in your configuration.yaml:
vacuum:
- platform: xiaomi_miio
host: 192.168.1.xx
token: 01234567891g123456789f0123456789
Replace the host with the IP adres of your Robodock S5 MAX and use the token you got earlier. reboot HA and the entity will show in your list (at least it did for me)
There was also problem with the integrations when I tried to add from there, every time I tried, it give me errors like “unknown error” or “fail to connect” But putting it manually in the configuration.yaml did the trick for me.
Our Roborock S5 Max has firmware: 3.5.8_1026 and I am on HA 0.117.1
Added in to my tablet dash with lovelace:
