I have the S5 max. And it appears to be working fine The kids named him ‘Bob’.
I have the token working for both HA and Xiaomi Home app.
It took me an hour or two to get it working.
I used a custom apk on andriod. version 5.5.4vevs.
But roughly I thought it worked when I did.
Install official xiaomi home app, register and login. connect/pair roborock to wifi.
in this official app, the token is created, but not visibly presented to us.
THen I uninstalled official app, installed a custom vevs version. just login again, No need to pair it again. no need to operate the cleaner.
In the folder smarthome/logs/plug_devicemanager/ date.txt will be written. If you search this file, you will find a token. In the file you could best search for ‘token’. there might be more than one. It should look like this: (ofcourse I replaced some details with xxx yyy)
SmartHome 311:[DEBUG]-08-14 20:50:23.424 processResult in result={“code”:0,“message”:“ok”,“result”:{“list”:[{“did”:“322170xxxx”,“token”:“33694a4f4f5xxxxxxxx17a5xxx6b794e”,“longitude”:“0.00000000”,“latitude”:“0.00000000”,“name”:“Bob”,“pid”:“0”,“localip”:“192.168.xx.xx”,“mac”:“xx:xx:xx:xx:xx:xx”,“ssid”:“yadayadayada”,“bssid”:“yy:yy:yy:yy:yy:yy”,“parent_id”:“”,“parent_model”:“”,“show_mode”:1,“model":"roborock.vacuum.s5e”,“adminFlag”:1,“shareFlag”:0,“permitLevel”:16,“isOnline”:false,“desc”:"Apparaat offline ",“extra”:{“isSetPincode”:0,“fw_version”:“3.5.8_0876”,“needVerifyCode”:0,“isPasswordEncrypt”:0},“uid”:… /cut
`
Uninstalled the russion custom apk
install official xiaomi app again, login and continue using that, and I fed HA the token in configuration
Dont forget to change password after this final login. The custom apk goes through external (russian) server I read which might be unsafe if your data is retained there. I cant be sure, so I have changed it.
vacuum:
- platform: xiaomi_miio
host: 192.168.xx.xx
token: 33694a4f4f5xxxxxxxx17a5xxx6b794e
name: Bob
Keep in mind that every time you pair your device with the wifi, the token will be changed.
also I have read that the Roborox app creates a new token each time you install the app. I havent tested it if this is true. I use theXiaomi Home app. which works fine for me
Hope this helps someone