Open NewsGuyTor opened 1 year ago
If I understand it correctly, this is for a separate, non-miio communication protocol? If so, I don't think it should be added to this library that is merely providing an interface to the miio protocols and its flavors.
If it's just about fetching the miio token, it could be added in a similar way that there are to extract tokens from yeelight and roborock backups (the miio-extract-tokens
script).
Now that grabbing your Roborock token has been made pretty easy with this code,
https://gist.github.com/rovo89/dff47ed19fca0dfdda77503e66c2b7c7
I think that support for the Roborock token should be implemented. That way you can use both the Roborock app (way better than Mi Home) and Home Assistant at the same time for your Roborock vacuums.
Be aware that you need to change the url from https://euiot.roborock.com/ to https://usiot.roborock.com/ if you're in the US.