aholstenson / miio

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
1.87k stars 354 forks source link

Sending OTA command to gateway #290

Open esc247 opened 4 years ago

esc247 commented 4 years ago

Hi,

I installed the miio software on my mac, and added my device token.

When I run miio discover i get the following:

Device ID: XXXXXXXX Model info: lumi.gateway.lmuk01 Address: 192.168.1.XXX Token: XXXXXXX362713870496b32747XXXXXXX via stored token Support: At least generic

I googled and searched everywhere but cannot seem to find how to do an ota. The documentation does not state it either. I would like to send the ota request to the gateway to update to the hacked miio firmware. How can I do this? I cannot use the soldering method, as I burnt off the connection the last time I was removing the connection.

I tried using:

miio protocol call 192.168.1.XXX miIO.ota '{"mode":"normal", "install":"1", "app_url":"https://github.com/roth-m/miioclient-mqtt/blob/master/firmware-mod/lummod_gw.bin", "file_md5":"967a4ebbfe48a1d38022872ed2b617e9"}'

but that returns:

INFO Attempting to call miIO.ota on 192.168.1.XXX INFO Device found, making call ERROR Encountered an error while controlling device Error was: Call to device timed out

Not sure what else to do. Any help would be great!