AlexxIT / XiaomiGateway3

Home Assistant custom component for control Xiaomi Multimode Gateway (aka Gateway 3), Xiaomi Multimode Gateway 2, Aqara Hub E1 on default firmwares over LAN
https://github.com/AlexxIT/Blog
MIT License
2.46k stars 343 forks source link

Multimode Gateway 2 won't OTA #1379

Closed wangyz1997 closed 4 months ago

wangyz1997 commented 5 months ago

I bought a Multimode Gateway 2 the other day, and the stock firmware version was 1.0.3. I connected it to the intergration as soon as I received it, and everything just worked as expected. After I obtained the key, I decided to upgrade the firmware to version 1.0.7, as start with this version, Multimode Gateway 2 is possible to operate as subgateway of central gateway. However, it failed immediately after I clicked the OTA button in MiHome app.

45289f1330b6e74a7d461d393a233611

I then restored the gateway to factory defaults, left intergration unconnected, and performed the OTA. This time the progress went on to 80%, got stuck, then failed.

c22bef3d28be2f1edbbbd5afc3f80eaf

I'm wondering if this has something to do with the intergration, or this is simply a MiHome issue? In fact, I found someone else with exactily the same problem as I got. If this is an intergration issue, what should I do to restore the gateway and upgrade the firmware? Thank you for your nice intergration and looking forward to your reply.

AlexxIT commented 5 months ago

Disable integration. Reboot gateway. Update firmware. Enable integration.

wangyz1997 commented 5 months ago

Thanks. I'll have a try now.

wangyz1997 commented 5 months ago

I've just tried, and everything happened just like that I menthoned when I restored the gateway to factory settings: after I clicked the upgrade button, the blue led on gateway blinked, and the progress goes up to 80%, then stuck for several minutes, smart MiHome app returned to the "click to start the upgrade procedure" screen, just like nothing happened: no errors, no successful upgrades. Finally the blue led stopped blinking after another few minutes, MiHome showed the "upgrade failed screen", and the gateway worked as it was.

wz69699 commented 5 months ago

Think you should ask xiaomi.

wangyz1997 commented 5 months ago

Yes, I'm here to confirm if there is any relation between using the intergration and the issue. I'll then consult Xiaomi when I got the origin of this issue.

AlexxIT commented 5 months ago

This is know issue about updating to 1.0.7. Because gateway flash Zigbee chip firmware. And integration may brake this process.

wangyz1997 commented 5 months ago

Thanks for your reply. Is there any solution?

AlexxIT commented 5 months ago

https://github.com/AlexxIT/XiaomiGateway3/issues/1379#issuecomment-2165938931

wangyz1997 commented 5 months ago

Yes, I followed your step, but it failed over and over again, the symptom is as mentioned earlier.

I've just tried, and everything happened just like that I menthoned when I restored the gateway to factory settings: after I clicked the upgrade button, the blue led on gateway blinked, and the progress goes up to 80%, then stuck for several minutes, smart MiHome app returned to the "click to start the upgrade procedure" screen, just like nothing happened: no errors, no successful upgrades. Finally the blue led stopped blinking after another few minutes, MiHome showed the "upgrade failed screen", and the gateway worked as it was.

wangyz1997 commented 4 months ago

Swapped to a new gateway from Xiaomi, OTA successed following steps from https://github.com/AlexxIT/XiaomiGateway3/issues/1379#issuecomment-2165938931 . So this is a hardware issue.

Thank @AlexxIT for your patience and great intergration, closing this issue.