rytilahti / python-miio

Python library & console tool for controlling Xiaomi smart appliances
https://python-miio.readthedocs.io
GNU General Public License v3.0
3.64k stars 550 forks source link

Add Roborock token support, now that it is easily grabbable? #1622

Open NewsGuyTor opened 1 year ago

NewsGuyTor commented 1 year ago

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.

rytilahti commented 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).