rytilahti / python-miio

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

Support for vacuum Roborock T8 Plus #1654

Open chris-chensy opened 1 year ago

chris-chensy commented 1 year ago

Device information:

Use miiocli device --ip <ip address> --token <token> info.

Additional context The device successfully returns the token when use the discover command. However, the device does not work with the command 'status'. For most of the commands, the device returns {'code': -10002, 'message': 'rrcheck access denied'}, 'exe_time': 101}.

The configure wifi command works but it seems the device only stored the wifi credential without connecting to the wifi. The device was purchased in Mainland China.

rytilahti commented 1 year ago

As that message is coming directly from the device, it tells us that the communication is still working (i.e., the token is still correct). So from the looks of it, the firmware is restricting access to these commands...

The configure wifi is not really that useful, as using it will cause the device to invalidate the used token in favor of a new, generated one.

chris-chensy commented 1 year ago

Thanks. I had some progress in discovering the commands. After I set up the device using vpn bypassing the geoblocker, the commands give me more info. Still I could not use the start command to start cleaning, even though the manual control commands are working.

info

Model: roborock.vacuum.a52 Hardware version: Linux Firmware version: 4.1.5_1106

status Running command status

I connected it to Home Assistant that was used this integration. But I found that the device status is very intermittent. The jumped between unavailable and normal frequently. Sometimes the command will fail but after a few seconds, it works again. Maybe that's why I thought that some commands were not working using the CLI. Refer to the status below. image
poldiderjungdrache commented 1 year ago

Thanks. I had some progress in discovering the commands. After I set up the device using vpn bypassing the geoblocker, the commands give me more info. Still I could not use the start command to start cleaning, even though the manual control commands are working.

Sorry this is a bit off topic but I am also struggling with a Geoblock on my newly acquired Roborock P10. Can you comment on how you were able to overcome this with VPN? Having my phone connected to China VPN during the setup does not seem to be enough or am I missing something? Thanks for the help, poldi