How to retrieve token from Xiaomi Vacuum Robot

Hi,
I’m using my Mi Robot since 2 years with my home assistant server, but a few days ago my robot got a new update and after that it went crazy - looses always WiFi connections and hence the connection to the home assistant server.

Yesterday I got a new update of my robot and hoped they fixed it, but my Mi Robot is not available anymore on my home assistant server. I’ve reset it, hard-reset it and I’ve tried to get the token with any available methode, but there is no token available.

What’s the problem or did they fix it, because it is a security issue?

Thanks for your support :slight_smile:

@mathd has posted a working solution.