DeebotUniverse / Deebot-4-Home-Assistant

Home Assistant integration for deebot vacuums
https://deebot.readthedocs.io/integrations/home-assistant/
GNU General Public License v3.0
179 stars 37 forks source link

Hope to add support for “T20S Pro” #458

Closed yyxida closed 7 months ago

yyxida commented 7 months ago

Is there an existing issue for this?

Is your feature request related to a problem?

yes

Suggested solution

I just purchased the ‘T20S Pro’ model, which seems to be only available in China. I hope to add support. I know this model is only sold in China and I don't know what help I can provide. I have some basic programming knowledge.

Api example request

No response

Alternatives you've considered

No response

Additional information

No response

edenhaus commented 7 months ago

Did you already try to add it? How far did you come?

I'm currently working on adding a easier method to add new bots but it is not ready yet

yyxida commented 7 months ago

image After logging into my account using the latest version, I only have a paragraph of uppercase text, but there are no devices or entities.

edenhaus commented 7 months ago

I don' speak chinese, so I can't read the screenshot. Please change the language to English and make the screenshot again.

Please also activate debug logs and attach them to the issue

yyxida commented 7 months ago

Sorry, this is a log and only the 'deebot_client' item is retained. Some (possible) data has been modified, and I am not sure which ones contain my personal information. If you have removed the information required for device adaptation, please let me know.

2023-11-20 06:39:04.368 WARNING (MainThread) [deebot_client.hardware.deebot] No capabilities found for yqzyt5. Using fallback.
2023-11-20 06:39:34.137 DEBUG (MainThread) [deebot_client.authentication] Performing login
2023-11-20 06:39:34.137 DEBUG (MainThread) [deebot_client.authentication] Start login to EcovacsAPI
2023-11-20 06:39:34.137 DEBUG (MainThread) [deebot_client.authentication] calling login api
2023-11-20 06:39:34.354 DEBUG (MainThread) [deebot_client.authentication] got {'code': '0000', 'msg': '操作成功', 'time': 1700462374282, 'data': {'uid': '[REMOVED]', 'accessToken': '[REMOVED]', 'userName': '[REMOVED]', 'email': '[REMOVED]', 'mobile': '[REMOVED]', 'isNew': None, 'loginName': '[REMOVED]', 'ucUid': '[REMOVED]', 'hasMobile': '[REMOVED]', 'isNewThirdAccount': None}, 'success': True}
2023-11-20 06:39:34.354 DEBUG (MainThread) [deebot_client.authentication] calling auth api
2023-11-20 06:39:34.560 DEBUG (MainThread) [deebot_client.authentication] got {'code': '0000', 'msg': '操作成功', 'time': 1700462374546, 'data': {'authCode': '[REMOVED]', 'ecovacsUid': '[REMOVED]'}, 'success': True}
2023-11-20 06:39:34.560 DEBUG (MainThread) [deebot_client.authentication] Calling api(1/3): url=https://portal.ecouser.net/api/users/user.do, params=None, json={'edition': 'ECOGLOBLE', 'userId': '20231111111111_kkkkkkkkkkkkkkkkkkk', 'token': 'GLOBAL_APP_ECOVACS_IOT_kkkkkkkkkkkkkkkkkkkk', 'realm': 'ecouser.net', 'resource': 'DN9P14KM', 'org': 'ECOCN', 'last': '', 'country': 'Chinese', 'todo': 'loginByItToken'}
2023-11-20 06:39:34.771 DEBUG (MainThread) [deebot_client.authentication] Success calling api url=https://portal.ecouser.net/api/users/user.do, params=None, json={'edition': 'ECOGLOBLE', 'userId': '20231111111111_kkkkkkkkkkkkkkkkkkk', 'token': 'GLOBAL_APP_ECOVACS_IOT_kkkkkkkkkkkkkkkkkkkk', 'realm': 'ecouser.net', 'resource': 'DN9P14KM', 'org': 'ECOCN', 'last': '', 'country': 'Chinese', 'todo': 'loginByItToken'}, response={'todo': 'result', 'result': 'ok', 'userId': '[REMOVED]', 'resource': 'DN9P14KM', 'token': '[REMOVED]', 'last': 604800000}
2023-11-20 06:39:34.771 DEBUG (MainThread) [deebot_client.authentication] Switching to shorter UID
2023-11-20 06:39:34.771 DEBUG (MainThread) [deebot_client.authentication] Login to EcovacsAPI successfully
2023-11-20 06:39:34.771 DEBUG (MainThread) [deebot_client.authentication] Calling api(1/3): url=https://portal.ecouser.net/api/appsvr/app.do, params=None, json={'userid': 'hkmfrkd11111111', 'todo': 'GetGlobalDeviceList'}
2023-11-20 06:39:34.865 DEBUG (MainThread) [deebot_client.authentication] Success calling api url=https://portal.ecouser.net/api/appsvr/app.do, params=None, json={'userid': 'hkmfrkd11111111', 'todo': 'GetGlobalDeviceList'}, response={'code': 0, 'todo': 'result', 'ret': 'ok', 'devices': [{'did': '[REMOVED]', 'name': 'E09R17739E1FPF9B1369', 'class': 'yqzyt5', 'resource': 'b3OX', 'nick': None, 'company': 'eco-ng', 'bindTs': 1699773016262, 'service': {'jmq': 'jmq-ngiot-cn.dc.cn.ecouser.net', 'mqs': 'api-ngiot.dc-cn.cn.ecouser.net'}, 'homeId': '6550684111111111119f1', 'homeSort': 1, 'deviceName': 'DEEBOT T20S PRO', 'icon': 'https://portal.ecouser.net/api/pim/file/get/64f96085c5c5ab000873746c', 'ota': True, 'UILogicId': 't10_cn_n_darwinomni', 'materialNo': '110-2242-0005', 'pid': '64eea65ebfa1111111111cea6', 'product_category': 'DEEBOT', 'model': 'T20S_PRO', 'updateInfo': {'needUpdate': False, 'changeLog': ''}, 'status': 1, 'offmap': True, 'otaUpgrade': {}}]}
2023-11-20 06:39:34.865 WARNING (MainThread) [deebot_client.hardware.deebot] No capabilities found for yqzyt5. Using fallback.
edenhaus commented 7 months ago

This model is currently only partly supported as the capabilities file is missing. If you want to add it, please see https://github.com/DeebotUniverse/client.py/tree/dev/deebot_client/hardware/deebot

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.