dgiese / dustcloud

Xiaomi Smart Home Device Reverse Engineering and Hacking
GNU General Public License v3.0
2.22k stars 255 forks source link

Error while rooting xiaomi vacuum #332

Open Eyap53 opened 1 year ago

Eyap53 commented 1 year ago

Hello !

While trying to root my xiaomi vacuum v1, I got an error that I don't know where it came from :

Flasher for Xiaomi Vacuum
Connecting to device 192.168.8.1...
Sending handshake to get token
Starting local http server...
Serving http server at 192.168.8.169:44475
Sending ota command with parameters: {"mode": "normal", "install": "1", "app_url": "http://192.168.8.169:44475/v11_004010.fullos.pkg", "file_md5": "xxx", "proc": "dnld install"}
unable to parse json '': Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/home/eyp/dustcloud/flasher.py", line 212, in <module>
    main()
  File "/home/eyp/dustcloud/flasher.py", line 190, in main
    r = vacuum.send('miIO.ota', ota_params)
  File "/home/eyp/dustcloud/.venv/lib/python3.10/site-packages/miio/device.py", line 278, in send
    self.__id = m.data.value["id"]
TypeError: 'NoneType' object is not subscriptable

I installed python-miio version 0.4.8 as specified in the wiki (manuel root). I also tried with latest version, without much success (another error).

Is there any step I missed ?

Thanks !