python-miio icon indicating copy to clipboard operation
python-miio copied to clipboard

Xiaomi Roborock V1 not discoverable

Open fragsalat opened this issue 1 year ago • 1 comments

Hey people,

I'm sharing this with you without requiring action. I'm owning a very old Roborock v1 (before 2020) with original firmware 3.3.6_003062. The issue I had is that I could not discover the device / flash new firmware using valetudo helper or python-miio. I tried long and followed all steps including multiple hard resets, just wifi reset and even with updated firmware and at no point I could discover or update the firmware. Normal control was possible and after connecting to the roborock network I pinged 192.168.8.1 and it was properly responsive. I had no VPN active and flushed my iptables config for that on my Ubuntu 22.04.2. Example response of discovery:

❯ mirobo --debug discover --handshake true
INFO:miio.integrations.roborock.vacuum.vacuum_cli:Debug mode active
INFO:miio.miioprotocol:Sending discovery to <broadcast> with timeout of 5s..
INFO:miio.miioprotocol:Discovery done

Response of firmware update (debug mode showed normal timeout after the hardcoded 5 seconds)

❯ mirobo --ip 192.168.2.121 --token 34443757736967367441505878686977 update-firmware v11_004028.pkg
Going to update from v11_004028.pkg
INFO:miio.updater:Serving on 0.0.0.0:42149, timeout 10
INFO:miio.updater:Using local v11_004028.pkg (md5: 2fcab626751807d95bc68621769dc890)
Hosting file at http://192.168.2.141:42149/v11_004028.pkg
Update started!
  0%|                                                                                                                                                                                                                                                      | 0/100 [00:05<?, ?it/s]
ERROR:miio.updater:No request was made..

I also tried the update-firmware with ip 192.168.8.1 within the roborock network without success. The only thing which now finally worked was this app https://forum.xda-developers.com/t/app-android-4-4-ios-9-0-xvacuum-firmware-xiaomi-vacuum-roborock-v1-v2-v3.3896526/ It was able to update the firmware without connecting to the roborock network or resetting wifi. I just added the LAN local ip and the token and the firmware update worked. So may you can see some helpful things for the firmware update in this app.

Just an FYI, can be closed if wanted. Still thanks for all your work :)

fragsalat avatar May 23 '23 07:05 fragsalat

It looks like the same problem with Roborock S8 Ultra Pro. It doesn't work with miiocli after I added vacuum Roborock app. When I resetting my vacuum and connect it in Mi Home with my region - it works well in Mi Home and miiocli both. But I have a lot of another devices in Mi Home with China region, so I can't use vacuum in Mi Home with my region. And when I am reconnected my vacuum to Roborock app, it is stopped to work with miiocli... Have no idea how to achieve it all to be able manage my vacuum both in some app and miiocli.

bartwell avatar Jul 16 '23 12:07 bartwell