homebridge-midea
homebridge-midea copied to clipboard
Getting the firmware version
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.
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.
Are you using the actual Midea Air app? Go to the device, Function, About Device
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.
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.
@kbalana Can you please look into this using the version from the development branch if you have time? I just implemented proxy support.
Hi guys I'm using MSmart app from Midea. For this device is possible to use this plugin?
Depends on what device you have.