georgezhao2010 / midea_ac_lan

Auto-configure and then control your Midea M-Smart devices (Air conditioner, Fan, Water heater, Washer, etc) via local area network.
MIT License
1.37k stars 230 forks source link

小天鹅86洗衣机和35干衣机协议认证交互问题 #565

Open Atanmo opened 2 months ago

Atanmo commented 2 months ago

HA版本

No response

集成版本

0.3.22

设备类型及型号

Clothes Dryer Unknown (0)

使用的App

美的美居

问题详细描述

我启动了DEBUG日志,并打印了一些日志登录后获取token和认证的信息,我发现可能我的设备是v3协议的,但是在获取token和key的时候调用的是v2或者v1的api,导致后面协议不同无法添加指定设备,大概是认证的时候不通过,所以我判断是这个问题。我使用v1和v2通过配置的方式都可以将设备添加集成进去,但是各项传感器和按钮都是失效的,应该控制是v3版本协议的。希望作者可以尽快修复,日志中我去掉了一些重要信息的数据,作者请甄别一下 (也许无法连接指定设备的bug就是因为控制协议的问题,目前出现这种情况的人也挺多的)

image

The logs

2024-07-20 10:15:04.327 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.discover] All addresses for broadcast: ['192.168.31.255', '172.30.233.255', '172.30.33.255'] 2024-07-20 10:15:04.439 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.discover] Received response from ('192.168.31.78', 6445): 837000c8200f00005a5a0111b8007a8000000000d95b0e0a140718148dc8740000bf00000000000000000180000000001310d23120c6898f5e774cb8b5db69fa8207342a3f8941f1ccaf19d03325dc8eb44be01c5b15ebc7f4c80d7c0f20c88dd61f5bb739b1f3b67b656f2df9ad15259cc59a2590ad1bfdd2aa3ce7811ac91cf179894f8e261f3bd275b7c9ec371a444bdfb3e16e33d88768cc4c3d0658937d96fbcce99f70c976413c2f05f60f82e71df3806b78c5bc37a04cafd1dae61429a469cd253163ce49e8b6bd404c0f1901 2024-07-20 10:15:04.441 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.discover] Declassified reply: 4e1fa8c02c19000030303030444335313133383230363333313433323035413032313137344e33380d6d696465615f64635f323131370000bf0302000000000000000000dc003530000000002459e507d67a059009012205010300000000000000000000000000000000000000000000000000000000000000000000 2024-07-20 10:15:04.442 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.discover] Found a supported device: {'device_id': 210006728733, 'type': 220, 'ip_address': '192.168.31.78', 'port': 6444, 'model': '38206331', 'sn': '0000DC5113820633143205A021174N38', 'protocol': 3} 2024-07-20 10:15:04.470 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.discover] Received response from ('192.168.31.18', 6445): 837000c8200f00005a5a0111b8007a80000000009e440f0a140718141c6b740000be0000000000000000018000000000fa29d43a02773c15159f1df02ff675408d85b0f2d54af8f2d39a15521be861ce8253140c99eba82c42fc066a70d8bd9fa9adc958aa59830edb183a904e526d4f715802e1d85319b71c93813287bfe967e2dad8dc6604b1d40a608e7e3696e83a4bdfb3e16e33d88768cc4c3d0658937d96fbcce99f70c976413c2f05f60f82e734ec9ff85ddb37e9c2ecab0c4bbf3677a4c436e9c54dfbc20c4736c0c25508df 2024-07-20 10:15:04.472 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.discover] Declassified reply: 121fa8c02c19000030303030444235313333383132353233303433313131313030313534413447470d6d696465615f64625f3031353400009f0002000000020000000000db003275000000009cc12d5c867f058703092413010300000000000000000000000000000000000000000000000000000000000000000000 2024-07-20 10:15:04.473 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.discover] Found a supported device: {'device_id': 20890721690, 'type': 219, 'ip_address': '192.168.31.18', 'port': 6444, 'model': '38125230', 'sn': '0000DB5133812523043111100154A4GG', 'protocol': 3} 2024-07-20 10:15:13.995 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.smartmidea.net/mas/v5/app/proxy?alias=/v1/user/login/id/get, data: {'loginAccount': '13753617224', 'reqId': 'c3badc8b55fc3f990843695d44a3aa68', 'stamp': '20240720101513'}, response: b'{"code":0,"msg":null,"data":{"loginId":"560be1f3128a428d9fd161e4d1748e58"}}' 2024-07-20 10:15:14.374 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.smartmidea.net/mas/v5/app/proxy?alias=/mj/user/login, data: {'iotData': {'clientType': 1, 'deviceId': '32e89c479352b2', 'iampwd': 'eab656cf7d63aa4652831a65e9ab62b2', 'iotAppId': '900', 'loginAccount': '13753617224', 'password': '0f2b82894c10b2a5bc7b75a5c1381732e572070e8791e6944cce481e01ac6598', 'reqId': '20e37625feac4d825f2570afa10f9024', 'stamp': '20240720101513'}, 'data': {'appKey': '46579c15', 'deviceId': '32eab89c479352b2', 'platform': 2}, 'timestamp': '20240720101513', 'stamp': '20240720101513', 'reqId': '8eebca3b7b7f2e83af48cc46aebf7738'}, response: b'{"code":0,"msg":"\xe6\x88\x90\xe5\x8a\x9f","data":{"uid":"3305f660fdbe485496a582388d04931b","userInfo":{"birthday":null,"mail":null,"signature":null,"homeName":null,"phone2":null,"phone3":null,"uid":"3305f660fdbe485496a582388d04931b","homeCode":null,"isWeixin":"0","cardid":null,"isQq":"0","brand":"1","isApple":"0","registerTime":"1548559714000","nickName":"AT\xe3\x80\x81\xe5\xae\x89\xe5\xa2\xa8","sex":null,"mobile":"13753617224","userId":"1114988185114","headImgUrl":"https://thirdwx.qlogo.cn/mmopen/vi_32/Xn6usnn1vxQe8Z26Cfodib2ic5VBN0wtKqpHXiaqOSeNzcpaxTOzD3n8f5VXH79Y5RNmpibDQzng8L2bSgsquwcHew/132","phone":null,"name":null,"mipUser":null,"isUpdateCacheTime":1,"age":null,"account":null},"iotUserId":10827519,"mdata":{"tokenPwdInfo":{"tokenPwd":"ccfdc79d8dfb481bba8d0a30569af9c5","expiredDate":1726625714347,"createDate":1721441714347},"userInfo":{"sourceId":"mj_12345","empId":null,"address":"","gender":"0","mobile":"13753617224","userDeptInfoList":null,"extras":null,"nameEn":null,"employeeNumber":null,"headPhoto":null,"uid":"3305f660fdbe485496a582388d04931b","name":"13753617224","email":null},"expired":1721456104030,"doDeviceBind":null,"accessToken":"T1m0xtiaaups380dc","signUnlockEnabled":null},"jwtToken":null,"clusterId":65793,"region":10,"isOldUse":null,"key":"20aa5c9539bc3f4aa687e5a356e1eed3187c944f79041a1b4b632650e1b4aed9"}}' 2024-07-20 10:15:14.461 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.smartmidea.net/mas/v5/app/proxy?alias=/v1/appliance/info/get, data: {'applianceCode': 20890721690 36, 'reqId': '5709d4df6de10fe17b6c512dc2da9aa7', 'stamp': '20240720101514'}, response: b'{"code":0,"msg":null,"data":{"id":null,"applianceCode":20890721690,"sn":"6633ca1589f7e9d12ad94acf7a18c01069dbf8dc61f3e5cf69cf49017cd70bb23cb971263c8abc80b56c1e586e5970ec","onlineStatus":1,"type":"0xDB","modelNumber":"30002","name":"\xe6\xbb\x9a\xe7\xad\x92\xe6\xb4\x97\xe8\xa1\xa3\xe6\x9c\xba","des":null,"activeStatus":1,"activeTime":"2024-06-25 17:00:24","masterId":null,"wifiVersion":"058703092413","enterprise":"0000","isOtherEquipment":null,"attrs":null,"roomName":null,"btMac":null,"btToken":null,"hotspotName":null,"isBluetooth":0,"bindType":null,"ability":null,"nameChanged":null,"sn8":"38125230","supportWot":false,"templateOfTSL":null,"shadowLevel":null,"smartProductId":null,"brand":null}}' 2024-07-20 10:15:14.464 DEBUG (MainThread) [custom_components.midea_ac_lan.config_flow] Try to get the Token and the Key use the preset MSmartHome account 2024-07-20 10:15:15.831 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/multicloud/platform/user/route, data: {'src': '1010', 'format': '2', 'stamp': '20240720101514', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '6e802e0f7c52e5d572b15598f3f583b9', 'uid': None, 'clientType': '1', 'appId': '1010', 'userType': '0', 'userName': 'c414e631394b8639@outlook.com'}, response: b'{"msg":"ok","code":0,"data":{"masUrl":"https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=","sseUrl":"https://sse.msmartlife.net","idAdapt":"131329","countryCode":"HK","emsIdAdapt":"132097"}}' 2024-07-20 10:15:16.035 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/user/login/id/get, data: {'src': '1010', 'format': '2', 'stamp': '20240720101515', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '5e71df3ab7fb9e74be90f42954cc73cc', 'uid': None, 'clientType': '1', 'appId': '1010', 'loginAccount': 'c414e631394b8639@outlook.com'}, response: b'{"code":"0","msg":"ok","data":{"loginId":"9648630d-5e43-4686-bd54-e63c71d8"}}' 2024-07-20 10:15:16.302 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/mj/user/login, data: {'iotData': {'src': '1010', 'format': '2', 'stamp': '20240720101516', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '3ebf12861c8f1f65c8fc72e5d319066d', 'clientType': '1', 'appId': '1010', 'iampwd': '1ab5cd2aad2ed71f1995aedc17ee399685e2de448ec4f2c3435d4e75036528b7', 'loginAccount': 'c414e631394b8639@outlook.com', 'password': 'f7ce89749ef954a4af08cd2e5cdef0f176c5af3d2d35ab78eac2e1e6e52ab723'}, 'data': {'appKey': 'ac21b9f9cbfe4ca5a88562ef25e2b768', 'deviceId': '2625df98eed17b6f', 'platform': '2'}, 'stamp': '20240720101516', 'reqId': 'a3b07c43d8344c606d081b51d64c68a3'}, response: b'{"code":0,"msg":"\xe6\x88\x90\xe5\x8a\x9f","data":{"randomData":"653b5987ccc078e3962a468133328a5512d906a6b26a9e6910908d6c42ddd9d5","uid":"1551cbb009fcac0a41cfc7ca850f0855","accountId":"1006912800","nickname":"c414e631394b8639","mdata":{"tokenPwdInfo":{"tokenPwd":"0bbc0efcde2a488dab4572bbcea03da9","expiredDate":1724033716186,"createDate":1721441716186},"userInfo":{"sourceId":"mj_12345","empId":"5499821268679680","address":"","gender":"0","mobile":"c414e631394b8639@outlook.com","userDeptInfoList":null,"extras":null,"nameEn":null,"employeeNumber":null,"headPhoto":null,"uid":"1551cbb009fcac0a41cfc7ca850f0855","name":"c414e631394b8639@outlook.com","email":null},"doDeviceBind":null,"accessToken":"T1m0xtiuudxc4n07z","signUnlockEnabled":null},"accessToken":"80728f8c4f50e805054c10e7d0ad3b5fa896ee7d12b2f17d16ed3eb7161910a8","userId":"94566877018113","email":"c414e631394b8639@outlook.com"}}' 2024-07-20 10:15:16.508 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/iot/secure/getToken, data: {'src': '1010', 'format': '2', 'stamp': '20240720101516', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '8fe209f04eb4ab8b4c8d0a28eb8e0781', 'uid': '1551cbb009fcac0a41cfc7ca850f0855', 'clientType': '1', 'appId': '1010', 'udpid': '2534f0fef161b05d4e37ea594c1ffbd3'}, response: b'{"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"2534f0fef161b05d4e37ea594c1ffbd3","key":"eae9cc40dd6f4412bd30b9981eb8688a0229d679ebb54fe7b4a11dab5995c84a","token":"6A60C00083FDAE51CEA2375CFF6780DC6FB879DBFB59B9EB252A595A3DB250B36487FB6F9279F7E464ABA7A38918804EA23A0EE9B2F6894F5D224600BF7B4BC7"}]}}' 2024-07-20 10:15:16.724 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/iot/secure/getToken, data: {'src': '1010', 'format': '2', 'stamp': '20240720101516', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': 'aa3f80f2da8f08e48e978192a90fd9a5', 'uid': '1551cbb009fcac0a41cfc7ca850f0855', 'clientType': '1', 'appId': '1010', 'udpid': 'b08a3fb8f6fbd25ae0819c42f66497ac'}, response: b'{"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"b08a3fb8f6fbd25ae0819c42f66497ac","key":"fb957e938921476f98664bb8dde3d71cf38c48e141ff4c36a409f52f7620b9db","token":"48D846EA7B5311CD1625D0A1F4814456BEFBCB07484D49E29C24701303BAC98AE493D1108E0B05BFA563A4B033BA9A0BED127D3173A4605B5BC58A378191E062"}]}}' 2024-07-20 10:15:16.727 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connecting to 192.168.31.18:6444 2024-07-20 10:15:16.742 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connected 2024-07-20 10:15:16.743 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authenticating with protocol version 3 2024-07-20 10:15:16.744 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 83700040200000006a60c00083fdae51cea2375cff6780dc6fb879dbfb59b9eb252a595a3db250b36487fb6f9279f7e464aba7a38918804ea23a0ee9b2f6894f5d224600bf7b4bc7 2024-07-20 10:15:16.790 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 83700005200f00004552524f52 2024-07-20 10:15:16.790 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authentication failed 2024-07-20 10:15:16.791 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Status update: {'available': False} 2024-07-20 10:15:16.792 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connecting to 192.168.31.18:6444 2024-07-20 10:15:16.818 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connected 2024-07-20 10:15:16.820 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authenticating with protocol version 3 2024-07-20 10:15:16.821 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 837000402000000048d846ea7b5311cd1625d0a1f4814456befbcb07484d49e29c24701303bac98ae493d1108e0b05bfa563a4b033ba9a0bed127d3173a4605b5bc58a378191e062 2024-07-20 10:15:16.895 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 83700005200f00004552524f52 2024-07-20 10:15:16.897 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authentication failed 2024-07-20 10:15:16.897 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Status update: {'available': False} 2024-07-20 10:15:16.904 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connecting to 192.168.31.18:6444 2024-07-20 10:15:16.937 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connected 2024-07-20 10:15:16.938 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authenticating with protocol version 3 2024-07-20 10:15:16.938 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 8370004020000000ee755a84a115703768bcc7c6c13d3d629aa416f1e2fd798beb9f78cbb1381d091cc245d7b063aad2a900e5b498fbd936c811f5d504b2e656d4f33b3bbc6d1da3 2024-07-20 10:15:17.008 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 83700005200f00004552524f52 2024-07-20 10:15:17.009 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authentication failed 2024-07-20 10:15:17.010 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Status update: {'available': False} 2024-07-20 10:15:22.178 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/multicloud/platform/user/route, data: {'src': '1010', 'format': '2', 'stamp': '20240720101521', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': 'f04f38dc73718fcfb63d79c9c19ace7b', 'uid': '1551cbb009fcac0a41cfc7ca850f0855', 'clientType': '1', 'appId': '1010', 'userType': '0', 'userName': 'c414e631394b8639@outlook.com'}, response: b'{"msg":"ok","code":0,"data":{"masUrl":"https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=","sseUrl":"https://sse.msmartlife.net","idAdapt":"131329","countryCode":"HK","emsIdAdapt":"132097"}}' 2024-07-20 10:15:22.388 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/user/login/id/get, data: {'src': '1010', 'format': '2', 'stamp': '20240720101522', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': 'd84216cdb30eb3aae0fee6615253ad86', 'uid': '1551cbb009fcac0a41cfc7ca850f0855', 'clientType': '1', 'appId': '1010', 'loginAccount': 'c414e631394b8639@outlook.com'}, response: b'{"code":"0","msg":"ok","data":{"loginId":"0e93fe73-a08f-40eb-b25e-83b4194d"}}' 2024-07-20 10:15:22.767 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/mj/user/login, data: {'iotData': {'src': '1010', 'format': '2', 'stamp': '20240720101522', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '942311428408a612cebff28c642ff44d', 'clientType': '1', 'appId': '1010', 'iampwd': '50e664f2aaa71c34e0d91fa8b76e6f31e2a8ed827854f3d482619df379f86f0d', 'loginAccount': 'c414e631394b8639@outlook.com', 'password': 'e6059f443a4381e869c78c0d602f45a7f3e0424c41db7a518a1590d8567b6547'}, 'data': {'appKey': 'ac21b9f9cbfe4ca5a88562ef25e2b768', 'deviceId': '2625df98eed17b6f', 'platform': '2'}, 'stamp': '20240720101522', 'reqId': '7a372bcfdb4a3964b0607d7a03c64866'}, response: b'{"code":0,"msg":"\xe6\x88\x90\xe5\x8a\x9f","data":{"randomData":"1824a2226ca33f7726340a6045fc1d283a6e045ae3fa4ee1aaf4245fbdcc91ec","uid":"1551cbb009fcac0a41cfc7ca850f0855","accountId":"1006912800","nickname":"c414e631394b8639","mdata":{"tokenPwdInfo":{"tokenPwd":"a8e9f2c6d61d44aab82a763f9600c216","expiredDate":1724033722540,"createDate":1721441722540},"userInfo":{"sourceId":"mj_12345","empId":"5499821268679680","address":"","gender":"0","mobile":"c414e631394b8639@outlook.com","userDeptInfoList":null,"extras":null,"nameEn":null,"employeeNumber":null,"headPhoto":null,"uid":"1551cbb009fcac0a41cfc7ca850f0855","name":"c414e631394b8639@outlook.com","email":null},"doDeviceBind":null,"accessToken":"T1m0xtkktce8xgee","signUnlockEnabled":null},"accessToken":"6f9b11ba7aee2eda68915fb7f7bc285070b96e95732fd1147c1c7dda2892aab7","userId":"94566877018113","email":"c414e631394b8639@outlook.com"}}' 2024-07-20 10:15:23.198 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/appliance/user/list/get, data: {'src': '1010', 'format': '2', 'stamp': '20240720101522', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '977fc96ac222d056b29cbe698b69c85a', 'uid': '1551cbb009fcac0a41cfc7ca850f0855', 'clientType': '1', 'appId': '1010'}, response: b'{"code":"0","msg":"ok","data":{"list":[]}}' 2024-07-20 10:15:23.199 DEBUG (MainThread) [custom_components.midea_ac_lan.config_flow] Try to get the Token and the Key use the preset MSmartHome account 2024-07-20 10:15:23.801 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/multicloud/platform/user/route, data: {'src': '1010', 'format': '2', 'stamp': '20240720101523', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': 'a2eceab51941ff1b56396ae9957dc1b0', 'uid': None, 'clientType': '1', 'appId': '1010', 'userType': '0', 'userName': 'c414e631394b8639@outlook.com'}, response: b'{"msg":"ok","code":0,"data":{"masUrl":"https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=","sseUrl":"https://sse.msmartlife.net","idAdapt":"131329","countryCode":"HK","emsIdAdapt":"132097"}}' 2024-07-20 10:15:24.042 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/user/login/id/get, data: {'src': '1010', 'format': '2', 'stamp': '20240720101523', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '671c0debdd18918fe8df5c62a599a34f', 'uid': None, 'clientType': '1', 'appId': '1010', 'loginAccount': 'c414e631394b8639@outlook.com'}, response: b'{"code":"0","msg":"ok","data":{"loginId":"ed5d898b-9b7c-46b1-b124-b3ec403a"}}' 2024-07-20 10:15:24.289 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/mj/user/login, data: {'iotData': {'src': '1010', 'format': '2', 'stamp': '20240720101524', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': 'f5bac3d76f5d1d31a6b30c5b25778cc6', 'clientType': '1', 'appId': '1010', 'iampwd': 'f5fb3aec14cb95a2ac80aed08cc92d044a52838078fa7b4f3fbbf5d80649a351', 'loginAccount': 'c414e631394b8639@outlook.com', 'password': 'cd2f1acbd3c462a0421cd5561b08f9a91af53e277e746237a128068ab04ab1c2'}, 'data': {'appKey': 'ac21b9f9cbfe4ca5a88562ef25e2b768', 'deviceId': '2625df98eed17b6f', 'platform': '2'}, 'stamp': '20240720101524', 'reqId': 'c5c5fde949ec72530441588e3042e400'}, response: b'{"code":0,"msg":"\xe6\x88\x90\xe5\x8a\x9f","data":{"randomData":"3886653e7697699e98ce76b8fc0c1a1edf03f4cd276048022934d666c6fb7b82","uid":"1551cbb009fcac0a41cfc7ca850f0855","accountId":"1006912800","nickname":"c414e631394b8639","mdata":{"tokenPwdInfo":{"tokenPwd":"1c0510250e354ccca1b90e7f6a3db086","expiredDate":1724033724191,"createDate":1721441724191},"userInfo":{"sourceId":"mj_12345","empId":"5499821268679680","address":"","gender":"0","mobile":"c414e631394b8639@outlook.com","userDeptInfoList":null,"extras":null,"nameEn":null,"employeeNumber":null,"headPhoto":null,"uid":"1551cbb009fcac0a41cfc7ca850f0855","name":"c414e631394b8639@outlook.com","email":null},"doDeviceBind":null,"accessToken":"T1m0xtl0zxfk35vp5","signUnlockEnabled":null},"accessToken":"c2c8332972d997932d9053ed6f0b790f004f8f1fee8f615550befdf6b21e04bc","userId":"94566877018113","email":"c414e631394b8639@outlook.com"}}' 2024-07-20 10:15:24.507 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/iot/secure/getToken, data: {'src': '1010', 'format': '2', 'stamp': '20240720101524', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '4c8b370cfad63a4c18798082aa22e5e5', 'uid': '1551cbb009fcac0a41cfc7ca850f0855', 'clientType': '1', 'appId': '1010', 'udpid': '2534f0fef161b05d4e37ea594c1ffbd3'}, response: b'{"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"2534f0fef161b05d4e37ea594c1ffbd3","key":"18421077b72b4ca8acffeefd832f611b58571ddfbace48c78a8b928b7335c85c","token":"A957C565DA912B46631C2153FAE39894EC325415D4D6C664925C6DE8297EDDE0D8CA617F92700FA98C79A2F7BB7D6B7B635FD47D9A3133D0D054D0089E5C30"}]}}' 2024-07-20 10:15:24.742 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/iot/secure/getToken, data: {'src': '1010', 'format': '2', 'stamp': '20240720101524', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '757eb4dfc1f59967537936ea1a61c6f4', 'uid': '1551cbb009fcac0a41cfc7ca850f0855', 'clientType': '1', 'appId': '1010', 'udpid': 'b08a3fb8f6fbd25ae0819c42f66497ac'}, response: b'{"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"b08a3fb8f6fbd25ae0819c42f66497ac","key":"2655a535d83846ea9b4822cd79928bcfdd5d739b82124539949dc0c3063951ca","token":"FBE80563CF1C6A39AFFD32683685C2D55DFA0E4CF1DE93AEFC9ECE3D6770C698654B8406E5252E586C4F973816FEE8120DFF41462E830096B1CC14D1E2C85"}]}}' 2024-07-20 10:15:24.748 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connecting to 192.168.31.18:6444 2024-07-20 10:15:24.762 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connected 2024-07-20 10:15:24.763 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authenticating with protocol version 3 2024-07-20 10:15:24.763 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 8370004020000000a957c565da912b46631c2153fae39894ec325415d4d6c664925c6de8297ed46de0d8ca617f92700fa98c79a2f7bb7d6b7b635fd47d9a3133d0d054d0089e5c30 2024-07-20 10:15:24.816 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 83700005200f00004552524f52 2024-07-20 10:15:24.819 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authentication failed 2024-07-20 10:15:24.821 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Status update: {'available': False} 2024-07-20 10:15:24.828 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connecting to 192.168.31.18:6444 2024-07-20 10:15:24.850 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connected 2024-07-20 10:15:24.851 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authenticating with protocol version 3 2024-07-20 10:15:24.853 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 8370004020000000fbe80563cf1c6a39affd32683685c2d55dfa0e4cf1de93aefc9ece3d67708f0c698654b8406e5252e586c4f973816fee8120dff41462e830096b1cc14d1e2c85 2024-07-20 10:15:24.929 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 83700005200f00004552524f52 2024-07-20 10:15:24.930 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authentication failed 2024-07-20 10:15:24.930 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Status update: {'available': False} 2024-07-20 10:15:24.931 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connecting to 192.168.31.18:6444 2024-07-20 10:15:24.957 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Connected 2024-07-20 10:15:24.957 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authenticating with protocol version 3 2024-07-20 10:15:24.958 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 8370004020000000ee755a84a115703768bcc7c6c13d3d629aa416f1e2fd798beb9f78cbb1381d091cc245d7b063aad2a900e5b498fbd936c811f5d504b2e656d4f33b3bbc6d1da3 2024-07-20 10:15:25.028 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Handshaking request: 83700005200f00004552524f52 2024-07-20 10:15:25.031 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Authentication failed 2024-07-20 10:15:25.032 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [208907216907036] Status update: {'available': False}

wuwentao commented 1 month ago

as current repo is not active more than 6 months. we have forked it and consider to maintain it in futuer. https://github.com/wuwentao/midea_ac_lan

PR is welcome

Thanks