Unable to connect Roborock Vacuum

I’ve been trying to get the Xiaomi Miio integration working so Home Assistant can control my roborock s4 max. I’ve used the default ui method with cloud credentials, and I’ve tried configuring it manually using the token, which I got from the app logs and from the cloud token extractor.

Everything ends up with the same error. The integration page looks like this: https://i.imgur.com/pIS2GvH.png and the error message in the logs looks like this: https://i.imgur.com/nY6QAza.png

I can ping the vacuum’s ip from home assistant, so I know it can reach it. Any help is appreciated.

I have the same issue with Roborock S6. Tried both the cloud and manual config. I don’t know how to ping from HA, but pinging from my home server to the vacuum’s IP works. IP to MAC binding has been set up in the wi-fi router.