I just updated to OH5.1.3 and got my hands on the Midea AC binding. I followed the config-steps of the doc and README, which got me the token and key from the “cloud” via my email address and password.
There have some reports about the MSmartHome cloud having issues. One option is to use the default settings for Nethome plus. The other option is to get a debug log during the cloud process. There is also an option to get the token and key from a python app, but that shouldn’t be needed.
I read about the issue with MSmartHome and as it was not what I was seeing I thought it was OK.
Nevertheless I tried NetHome now. I could connect to the AC using the IoS APP. Using the credentials in OpenHAB leads to the same problem: I get a token and a key, but OH says Invalid Key. Back to start…
I found the msmart-ng-script, which discovered the device on the local network and puts out the key and token. Inserting them to openhab fails the same way as before.
Obviously, something new. For background did you discover the device with a scan or use textual? I’m assuming a new device too. What is the name of the IOS app?
EDIT: I have been a little concerned about API changes and my ability to reverse engineer it.
search the forum there was a setting that has to be enabled for docker to have proper cyphers for use in OpenHab and https been a while and I am on a mobile so don’t have link in front of me.
You can also test if the script you ran to retrieve key and token works to change or retrieve any settings from the A/C if that script works outside of “docker openhab” then you know that your issue is docker related configurations.
I don’t have time right now, but I think this is the root. The code returns [0] in this case, that throws off the handshake match. 72 is the correct bytes.
Sorry for the off topic but if these ac are midea based you could always replace the dongle and use the smlight ones (I use 5 at my home.) they are fully local, esphome based, and we have a binding for OpenHAB. I’d be happy to share more info if anyone cares but I don’t want to make a big off topic here