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

API keys

Open ttimpe opened this issue 4 years ago • 8 comments

Currently, this plugin uses the same API key as the iOS and Android app, it would be nice to either get our own key directly from Midea or get another one from another app as testing the plugin for accurate information by switching to the app and constantly getting logged out of it is annoying.

ttimpe avatar Jun 24 '20 00:06 ttimpe

I am using the credentials from Midea Air in the homebridge-midea plug-in, and use the NetHome Plus app on my iOS device for detailed AC control. This works perfectly without getting logged out (in both apps your can login with the same Midea credentials).

Another possibility is to create another Midea account specifically for the homebridge-midea plug-in, and share the AC from your main account (via the 'Share device' menu) with this new account.

thoorn avatar Jun 24 '20 13:06 thoorn

I was looking into this last night and there are a ton of apps out there that interact with the API. The only advantage that the Midea Air app has is that it can show the firmware version (and maybe even update it), which I haven't seen in any other app.

ttimpe avatar Jun 24 '20 14:06 ttimpe

Hi.

Where is the documentation that you are currently referring? Is it https://midea-sdk.github.io/index.html ?

It seems like Midea doesn't provide the API for Javascript but they does have the API for Android and iOS. I am curious that how you use them as coding in Javascript.

Midea has a mostly different version of App for China Mainland than for Global, thus I am not sure whether the APIs are remaining the same between China Mainland version and Global version or not. You can find the develop docs for Midea IoT and the developer panel login page in the following links: https://mis.midea.com/ & https://mis.midea.com/docs/

I hope it helps and I am looking forward to the fan speed adjustment function.

lilingxi01 avatar Jul 09 '20 02:07 lilingxi01

Hello,

unfortunately, Midea doesn't provide documentation of the raw HTTP api but instead only for their precompiled binaries for Android and iOS.

My work is based on the awesome work of many others (midea-inverter-lib, midea.iobroker, etc.) and I am mostly trying to figure out how it works by using other people's code.

I tried registering on the Midea website already, it seems one needs a chinese phone number for that as my phone number is longer than what the text field can handle.

ttimpe avatar Jul 09 '20 07:07 ttimpe

I'm planning on getting a new AC which it is not MIDEA but uses the same app. Everything at home is heavily integrated with Homekit/Homebridge and I think that this plugin maybe would work with my unit.

Does anybody know experiences with the MIDEA API used on other brands units based on the same app? (NetHome plus)

greensouth avatar Jul 09 '20 19:07 greensouth

I'm planning on getting a new AC which it is not MIDEA but uses the same app. Everything at home is heavily integrated with Homekit/Homebridge and I think that this plugin maybe would work with my unit.

Does anybody know experiences with the MIDEA API used on other brands units based on the same app? (NetHome plus)

Don’t worry, mine is also a unit from a brand called Comfee. Midea mostly sells their chips to third-parties.

I can‘t guarantee that it works, a support matrix would be a nice thing to write up in the future.

ttimpe avatar Jul 09 '20 19:07 ttimpe

Well it seems it doesn't work atm. Something weird is when I try to login from several platforms, the device is removed from my account and have to put it in AP mode and add it again.

I think the plug-in retrieves the current room temperature, but when trying to set a new one, it becomes unresponsive in Home app.

My model is something called MUNDOCLIMA, very common in Spain and uses the infamous NetHome plus app also.

How can I help to provide whatever it's needed to make it work? I'm a developer also. If I sniff traffic from the app thru a proxy, I'm not sure how to decrypt it using Wireshark.

Thanks in advance!

I'm planning on getting a new AC which it is not MIDEA but uses the same app. Everything at home is heavily integrated with Homekit/Homebridge and I think that this plugin maybe would work with my unit. Does anybody know experiences with the MIDEA API used on other brands units based on the same app? (NetHome plus)

Don’t worry, mine is also a unit from a brand called Comfee. Midea mostly sells their chips to third-parties.

I can‘t guarantee that it works, a support matrix would be a nice thing to write up in the future.

greensouth avatar Jul 27 '20 20:07 greensouth

You can decrypt most of the communication from the app using some of the code in the Util class. Sadly, there is no official public documentation on the raw API.

ttimpe avatar Jul 28 '20 07:07 ttimpe