These tokens are requried if you want to use Roborock vacuums on both Home Assistant and Roborock app.
- Install any version of modded Roborock app on your phone/Bluestacks/Genymotion... Remember to uninstall the old version first. This modded app will display tokens inside phone's Logcat.
- You'll need
adb
tool. It's included in Android SDK Platform Tools. - Enable USB Debugging.
- Connect your device to your Windows/Mac/Linux using ADB.
- Run this command on your Windows/Mac/Linux to view Logcat (don't close it):
adb logcat -s "ROBOROCK-name", "ROBOROCK-devId", "ROBOROCK-localKey"
- Open the modded Roborock app and log in.
- Your tokens will be displayed on your Windows/Mac/Linux.
I used Charles Proxy to sniff packets on my iPad. It's rather complicated so I won't recommend doing this method unless you know what to do.