[Custom Component] Roborock communication

I’m running into the same problem, see: [Custom Component] Roborock communication

It has worked for me in the past, but it seems they changed things.

I made an update to @jd89’s component that no longer requires NodeJS.

You can try it here: https://github.com/redphx/hass-roborock
I also modded the Roborock app to display tokens inside Logcat: https://github.com/redphx/roborock-tuya-token

Tested on S5 Max and it worked.

Hopefully it will be merged into the original component soon. Thanks @jd89 for all the work.

5 Likes

Interesting, great work.

I tried the modified app to retrieve the token, but after loggin in the app does not show my device. Should it work with all firmware versions?

Hmm that’s weird. Which device are you using? Maybe Roborock v1.2 is too old and doesn’t support your device. I should make a modded version of the 2.x version. Please wait.

I also have a S5Max… on firmware 01.13.40.

The latest (or a recent) version of the original app was working for me on BlueStacks.

Does it work with Roborock s6 maxV?

Please try again with version 2.3.32: https://github.com/redphx/roborock-tuya-token/tree/main/android

Sorry I don’t know the answer. If this module supports it then the answer is likely yes: https://github.com/rytilahti/python-miio

This version displays my device indeed.

Unfortunately only the information below is printed in my command window. I also had problems before with the rr_tuya_ file method, after a while it did not contain the deviceId and token anymore…

output:
./adb logcat -s “ROBOROCK-name”, “ROBOROCK-devId”, “ROBOROCK-localKey”
--------- beginning of system
--------- beginning of main

Where is your account located? Mine is US.

I’ve updated the app. Please download the 2.3 version and try again: https://github.com/redphx/roborock-tuya-token/tree/main/android
Hopefully it will work this time.

Mine is EU (The Netherlands). Same result with the last version…

As I mentioned before, a couple of months ago I was able to get the code from a file. It looks likes they have changed things. Some other Roborock owners noticed the same behavior (for example the post of jan 10). Thanks anyway, appreciate your work.

Sorry I couldn’t help. My guess is that your account is not migrated to Tuya yet (but I don’t know how to activate the migration process manually).

Hi Jack,
I really like what you prepare to integrate a Roborock, and keep the Roborock App still active. But am stuck to get you code deployed. Using Raspberry Pi and Hass.io implemented and also was able to get key and token. But starting with connecting to the repository does not work in my environment.
Anyone with suggestions, looks like I miss a part.

Hi, I have a S6 MaxV and have tried the following methods shared above:

  1. Bluestack with root
  2. modded roborock app 2.3xx
  3. apktool to mod the roborock app

but sadly, the rr_tuya_xxxx files only shown “[]” for all the methods. I noted that most mentioned S5. Question is does anyone managed to get it work for S6 MaxV?

I am really interested to get it work for S6 MaxV in HA with roborock app concurrently. As the MiHome app does not have the camera functions enabled. Anyone can advise?

I just got the S6 MaxV and was wondering whether it is supported by this custom component yet?

Doesn’t seem like it, I’ve tried every which way till sunday and it doesn’t work. The only thing I could do is use the Mi app and then it works. Once you switch to the roborock app it loses the token. You can get the token for the roborock app with a rooted android (you will get it in ascii, which you then convert to hex) its called “|ocalToken” but it doesn’t work. Would love if someone could help here

Same… For me the reason I bought the vacuum was that it had a remote camera and only the Roborock app supports that.

The AI features were also a big selling point.

I installed the app in Bluestacks and logged into the Roborock app, but I have not yet been able to get at the data in any way I’ve tried so I can’t even get at the key/token.

Thank you for this! I feel that I am so close to getting it to work, but when adding the integration, I am not able to see the descriptions of the necessary fields. There seems to be an extra field required.

If you see the screenshots, If i leave it blank (where it says ‘what goes here???’), I am able to see the device & entity, but it is ‘Unavailable’. I have a Roborock S6 in the US, if that helps?

Upon reading further, maybe it’s because the model isnt listed on: GitHub - rytilahti/python-miio: Python library & console tool for controlling Xiaomi smart appliances
Would you have any advice or suggestions?

image
image
image