Just wanted to share my project I have been working on to connect to Roborock and use the latest roborock app in parallel.
Not setup properly with HACS yet, but it can be installed by adding a custom repository in HACS (see link below):
If you are interested in my working out, read the below
I also wrote up my findings when reverse engineering the communications etc below: -
To get this to work, I had to do something a bit strange, which was to use the tuyapi that has been written, and is maintained with node. With the python port, I just couldn’t get the connection working, and get the messages recognised. So, I developed a node wrapper around the tuyapi, which is used to communicate over file descriptors: -
Then, I wrote a python wrapper around the IPC, so that I could ultimately use this to communicate with the node library easily:
Finally, I then wrote a wrapper around python-miio, that uses tuya, to talk with the device. This was so that all the message parsing etc, was done in the same way as it does with the old miio protocol, because ultimately the message format is the same
Hope that makes sense, and it is of some use to people. Seen other people like me wanting this.
One question for any devs out there. Is there a way to hook into when the hass server is restarting. I will raise an issue on the github too, but the issue is that, the old node process seems to hang around. I just need to be able to close the old session on restart, so any ideas, I am wiling to make the changes!
Any questions or anything else, feel free to reach out to me.