homebridge-midea icon indicating copy to clipboard operation
homebridge-midea copied to clipboard

Getting the firmware version

Open ttimpe opened this issue 4 years ago • 7 comments

As a novelty, I am trying to implement a function to get the firmware version running on the device, however I am still unable to perform the right request to the API, maybe someone else can look into that.

The request URL is https://mapp.appsmb.com/v1/app2base/data/transmit?serviceUrl=/ota/version

It requires the applianceId and userId, encoded as a JSON object, encrypted and signed as the data parameter and returns information about the firmware version and the chip inside the unit.

I am able to decrypt the request and response between the server and the Midea app, however my request still fails with a 3004 Value illegal error.

Maybe someone else can look into this.

ttimpe avatar Jul 02 '20 11:07 ttimpe

In which case this request is being triggerred? I'm wandering trough app with charles proxy attached, however I didn't trigger this request yet.

kbalana avatar Jul 02 '20 20:07 kbalana

Are you using the actual Midea Air app? Go to the device, Function, About Device

ttimpe avatar Jul 02 '20 23:07 ttimpe

Sorry! I forgot to mention I was using a NetHome Plus on Android, which basically is the same app (they share identical pacakge). But, I will try to check it via proper midea app as well.

kbalana avatar Jul 03 '20 06:07 kbalana

After comparing both requests, the Midea app seems to send the serviceUrl again in the POST body, but unescaped. This is the only difference I can spot so far.

ttimpe avatar Jul 03 '20 12:07 ttimpe

@kbalana Can you please look into this using the version from the development branch if you have time? I just implemented proxy support.

ttimpe avatar Jul 07 '20 19:07 ttimpe

Hi guys I'm using MSmart app from Midea. For this device is possible to use this plugin?

adrianopery avatar Jul 10 '20 15:07 adrianopery

Depends on what device you have.

ttimpe avatar Jul 10 '20 15:07 ttimpe