For anyone who read this thread and still had no idea what should be done to get the Roborock token when you use the Roborock app. This post is for you. This is what I did and it worked like a charm. I used windows 10.
- Download and install Bluestacks 4 https://www.bluestacks.com/
- Open Bluestacks and install the Roborock app from the play store
- Login to the Roborock app and make sure the vacuum is added. (I did this on my phone months ago)
- You now need to “root” Bluestacks to get access to the folder you need. This can be done with BSTweaker 5. You can download it from https://bstweaker.tk/
- Extract BSTweaker 5 to your PC. Open BlueStacksTweaker5.exe.
- In the “Main” tab click on “Force Kill BS”
- In the “Root” tab, click “Unlock”
- Go back to the “Main” tab and click “Start BS”
- Next on the same tab click “Install SuperSU” and then “Update SuperSU” when the first is done.
- Start Bluestacks again and check that it is successfully rooted. You can download something like “Root checker Basic” from the play store
- Go back to BSTweaker 5, goto tab “FM”. The right-hand side will be your Bluestacks system and the left hand your local windows system.
- On the right hand nagibate to /data/data/com.roborock.smart/files/rr_cache/
- Look for a file called starting with “rr_tuya_” and ending in a bunch of numbers. For example. “rr_tuya_145367”
- Select this file by clicking on it. Select a location on the left and click “Copy”, above the right hand window on the right top.
- Navigate to the location you copied the file and rename the “rr_tuya_???” to “rr_tuya_???.zip”
- Now unzip the file inside and open it.
- Inside this file look for “localKey”, this will be your token.
- Next look for “devId”, this will be your Device ID.
- Inside Home Assistant go to integrations and add Roborock.
- Enter the Name, IP, and the newly discovered Token and Device ID.
That is it you are done.