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.43k stars 234 forks source link

无法添加洗衣机设备,账号密码出错。 #425

Open Printfo opened 10 months ago

Printfo commented 10 months ago

HA版本

Core 2024.1.2 Supervisor 2023.12.0 Operating System 11.2 Frontend 20240104.0

集成版本

0.3.22

设备类型及型号

洗衣机

使用的App

ios 美居

问题详细描述

设备可以搜索的到也支持添加,冰箱和烘干机都能正常添加但是洗衣机添加是会显示无法连接到指定设备,第二次提交就会报账号密码错误,删除 .storage里的账户信息,尝试重新添加账户添加设备依旧不行。 CleanShot 2024-01-08 at 17 18 18@2x 查看日志发现countryCode为HK以为是网络问题,关闭代理后依然无法添加,日志显示身份验证失败不可用。 请问应该怎么处理这个问题?

日志获取key和token手动添加协议选择v3则不能成功添加 CleanShot 2024-01-13 at 16 24 27@2x 选择协议v2或v1可成功添加但设备实体都不可用

CleanShot 2024-01-13 at 16 25 11@2x

日志显示两次接口调用,获得两个key与token都可以手动添加设备,是不是重复调用获取多次数据导致不能识别具体设备??? 麻烦看看什么情况!!!

The logs

2024-01-08 17:12:05.611 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': 210006726776784, 'reqId': '723f65b0ec1e155552d0b6daa75d380b', 'stamp': '20240108171205'}, response: b'{"code":0,"msg":null,"data":{"id":null,"applianceCode":210006726776784,"sn":"74a2247f258a776b6b59c4cd8f3a1235d7489bde77b40031cba6a3684247905f86d64e961ef70c5c1944da516e9b7410","onlineStatus":1,"type":"0xDB","modelNumber":"12877","name":"\xe6\xbb\x9a\xe7\xad\x92\xe6\xb4\x97\xe8\xa1\xa3\xe6\x9c\xba","des":null,"activeStatus":1,"activeTime":"2024-01-08 23:20:07","masterId":null,"wifiVersion":"059009012205","enterprise":"0000","isOtherEquipment":null,"attrs":null,"roomName":null,"btMac":"44:35:d3:73:36:f3","btToken":null,"hotspotName":null,"isBluetooth":0,"bindType":null,"ability":null,"nameChanged":null,"sn8":"38127874","supportWot":false,"templateOfTSL":null,"shadowLevel":null,"smartProductId":10004256}}' 2024-01-08 17:12:05.612 DEBUG (MainThread) [custom_components.midea_ac_lan.config_flow] Try to get the Token and the Key use the preset MSmartHome account 2024-01-08 17:12:06.380 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': '20240108171205', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '2b843699939b041dd45738c78356c42e', '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-01-08 17:12:06.570 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': '20240108171206', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '9f6ad57d85e7954638390c503981e911', 'uid': None, 'clientType': '1', 'appId': '1010', 'loginAccount': 'c414e631394b8639@outlook.com'}, response: b'{"code":"0","msg":"ok","data":{"loginId":"18bd89f6-0da8-4457-9229-29b62dd3"}}' 2024-01-08 17:12:06.816 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': '20240108171206', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': 'ef512e94b183d2340359484b4f0b9a49', 'clientType': '1', 'appId': '1010', 'iampwd': 'a9cea0f37f9a714f76ff7a04ebd92afb57f0e9f2ebf7b39706f9f39f81862426', 'loginAccount': 'c414e631394b8639@outlook.com', 'password': 'edfe7eef2bade499d98c5a6c47c54f51309ea82f29886142313375bd6a04d0de'}, 'data': {'appKey': 'ac21b9f9cbfe4ca5a88562ef25e2b768', 'deviceId': '2625df98eed17b6f', 'platform': '2'}, 'stamp': '20240108171206', 'reqId': '9fa18231d45d8a4b2f8aa579af6e7533'}, response: b'{"code":0,"msg":"\xe6\x88\x90\xe5\x8a\x9f","data":{"randomData":"d960b6bb73dcf1be08ef71734fbb0539de05929fd3c6c4529d816113e82445a2","uid":"1551cbb009fcac0a41cfc7ca850f0855","accountId":"1006912800","nickname":"c414e631394b8639","mdata":{"tokenPwdInfo":{"tokenPwd":"c6ab665b5a6e451e8934b08ff9654b73","expiredDate":1707297126719,"createDate":1704705126719},"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":"T1jbqm524b9c38ooq","signUnlockEnabled":null},"accessToken":"99a963199af0c1bc34a8fc6d94e925f522e3ceb44a144215a5f0568f651b1247","userId":"94566877018113","email":"c414e631394b8639@outlook.com"}}' 2024-01-08 17:12:07.007 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': '20240108171206', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': '460590a3179157f9c94be5b759cbb023', 'uid': '1551cbb009fcac0a41cfc7ca850f0855', 'clientType': '1', 'appId': '1010', 'udpid': '8e75afc9585e9f3e506d773feb601434'}, response: b'{"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"8e75afc9585e9f3e506d773feb601434","key":"c88b5943c9574d98868efb5eb124990ff90c90d269e547599a18466332a399d5","token":"4BF09333826D450288636236F8BA87034216E260BD96D85F7CADC95CFFEC34C5C0BAE3B3A9C550A0C8397DBA58AC7A46DBEE69D1BFC54FC96AFE8679CB0361C9"}]}}' 2024-01-08 17:12:07.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/iot/secure/getToken, data: {'src': '1010', 'format': '2', 'stamp': '20240108171207', 'platformId': '1', 'deviceId': '2625df98eed17b6f', 'reqId': 'a9120a0412290bef656d5ab4a9c7bda9', 'uid': '1551cbb009fcac0a41cfc7ca850f0855', 'clientType': '1', 'appId': '1010', 'udpid': 'f1887071612fb6b849510e373049d301'}, response: b'{"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"f1887071612fb6b849510e373049d301","key":"973fe81c98ca4492bd3f40a6dea4b81e21e90cfb401344cd80c6aab07c13466e","token":"7DD43CF387C58BFF91B32AEC745851927B19ABD3317659FEAEE679AEE8C15C2311AD10B02008CC402199ABE575FBEA6417B39415DB6C309DB69D5A62FE903334"}]}}' 2024-01-08 17:12:07.200 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Connecting to 192.168.100.110:6444 2024-01-08 17:12:07.206 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Connected 2024-01-08 17:12:07.207 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Handshaking 2024-01-08 17:12:07.260 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Authentication failed 2024-01-08 17:12:07.260 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Status update: {'available': False} 2024-01-08 17:12:07.261 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Connecting to 192.168.100.110:6444 2024-01-08 17:12:07.268 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Connected 2024-01-08 17:12:07.268 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Handshaking 2024-01-08 17:12:07.337 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Authentication failed 2024-01-08 17:12:07.337 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Status update: {'available': False} 2024-01-08 17:12:07.341 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Connecting to 192.168.100.110:6444 2024-01-08 17:12:07.374 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Connected 2024-01-08 17:12:07.374 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Handshaking 2024-01-08 17:12:07.439 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Authentication failed 2024-01-08 17:12:07.439 DEBUG (MainThread) [custom_components.midea_ac_lan.midea.core.device] [210006726776784] Status update: {'available': False}

android0276 commented 10 months ago

我和你一样的问题,无解

android0276 commented 10 months ago

开发者同学能不能帮忙看下临时解决的方案

ysjy11 commented 10 months ago

遇到同样问题,之前还可以的

android0276 commented 10 months ago

你要去研究下如何解决啊,现在最少100个人有这个问题

Zzmail commented 10 months ago

看你日志里有打印的设备key和token了 手动添加一下吧

Printfo commented 10 months ago

看你日志里有打印的设备key和token了 手动添加一下吧

看你日志里有打印的设备key和token了 手动添加一下吧

不确定是不是那个设备的,因为有两个设备是成功的,我先试试吧。

sloganlau commented 10 months ago

同样遇到无法登录的问题

leeh107 commented 10 months ago

现在这个问题怎么解决有方法了吗

YangOu3500 commented 10 months ago

我的美的华凌2台空调无法添加,美的洗衣机也是,都是提示账号密码错误,登录不上去,是最新的0.322版本

Dgitalcat12 commented 7 months ago

请问.Storage在哪里,如何清理?

Printfo commented 7 months ago

请问.Storage在哪里,如何清理?

homeassistant文件夹下ls -a查看

leonvvip commented 5 months ago

添加中央空调碰到同样的问题,log也是获取两次token,手动v3协议也添加失败。debug日志里显示连接验证失败。