Closed JimmyBjorklund closed 10 months ago
I ran into the same just now. The app works fine.
I have the same problem. Obviously Midea changed something. The MSMartHome has been updated some few weeks ago and is now 3.0.2. It works (of course). Also my cpp implementation (yet private) of your phyton fails with connection to the cloud and error 3004. It worked fine until at least may 2023. Local discovery works.
Update: I used new token/key pair derived from midea-discover 2023.8.1 from mac-zhou, then I could request data from my currently active AC. Possibly this token/key pair has "maximum age"? Without connection to the cloud I'm lost (and will check tomorrow what mac zhou exactly did to solve this problem)
It seems that the solution for this problem is such: When POST v1/user/login/id/get (you request the LoginID) add "deviceId": "c1acad8939ac0d7d" to the payload (between "stamp" and "LoginAccount"). Add the same in the POST /mk/user/login, between "osVersion" and "deviceId". It even works with "0123456789abcdef" as a "deviceId". Thanks to mill1000 https://github.com/mac-zhou/midea-msmart/issues/109
When using the library i keep getting '3004' - 'value is illegal.' a bit unclear what the issue is. Any one else have this issue?
Version of the library
version': '2.22.0', 'systemVersion': '8.1.0'
Logs