Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible issue with example code on unsupported device #78

Closed
4 tasks done
h4de5 opened this issue Feb 25, 2022 · 0 comments
Closed
4 tasks done

Possible issue with example code on unsupported device #78

h4de5 opened this issue Feb 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@h4de5
Copy link

h4de5 commented Feb 25, 2022

Checks

  • I have searched the existing issues and no issue is describing my issue
  • I have checked the FAQ
  • I have checked the documentation
  • I have installed the latest version

The problem

I started the example - login seem to work but got the following error.

bot = VacuumBot(session, devices_[0], api_client)
TypeError: VacuumBot.__init__() takes 3 positional arguments but 4 were given

I am filing it as a bug report rather than a feature request, as I don't know if the provided example code should work for that device or not.

On which deebot vacuum you have the issue?

Deebot Ozmo Slim10

Which version of the deebot-client are you using?

1.2.1

Country

de

Continent

eu

Anything in the logs that might be useful for us?

DEBUG:deebot_client.authentication:No cached credentials, performing login
DEBUG:deebot_client.authentication:Start login to EcovacsAPI
DEBUG:deebot_client.authentication:calling login api
DEBUG:deebot_client.authentication:got {'code': '0000', 'msg': '操作成功', 'time': 1645786538571, 'data': {'uid': '[REMOVED]', 'accessToken': '[REMOVED]', 'userName': '[REMOVED]', 'email': '[REMOVED]', 'mobile': '[REMOVED]', 'isNew': None, 'loginName': '[REMOVED]', 'ucUid': '[REMOVED]'}, 'success': True}
DEBUG:deebot_client.authentication:calling auth api
DEBUG:deebot_client.authentication:got {'code': '0000', 'msg': '操作成功', 'time': 1645786539229, 'data': {'authCode': '[REMOVED]', 'ecovacsUid': '[REMOVED]'}, 'success': True}
DEBUG:deebot_client._api_client:calling api users/user.do with {'edition': 'ECOGLOBLE', 'userId': '[REMOVED]', 'token': '[REMOVED]', 'realm': 'ecouser.net', 'resource': 'xxxxxxxxxxxx', 'org': 'ECOWW', 'last': '', 'country': 'DE', 'todo': 'loginByItToken'}
DEBUG:deebot_client._api_client:got {'todo': 'result', 'result': 'ok', 'userId': '[REMOVED]', 'resource': '7a6xxxxxxxxxxxxxxx', 'token': '[REMOVED]', 'last': 604800000}
DEBUG:deebot_client.authentication:Switching to shorter UID
DEBUG:deebot_client.authentication:Login to EcovacsAPI successfully
DEBUG:deebot_client._api_client:calling api appsvr/app.do with {'userid': '[REMOVED]', 'todo': 'GetGlobalDeviceList'}
DEBUG:deebot_client._api_client:got {'code': 0, 'todo': 'result', 'ret': 'ok', 'devices': [{'did': '[REMOVED]', 'name': 'e000119xxxxxxxxxxxx', 'class': '02uwxm', 'resource': 'Etq0', 'nick': 'Staubi', 'company': 'eco-ng', 'bindTs': 1623691430807, 'service': {'jmq': 'jmq-ngiot-eu.dc.ww.ecouser.net', 'mqs': 'api-ngiot.dc-as.ww.ecouser.net'}, 'deviceName': 'DEEBOT OZMO Slim10 Series', 'icon': 'https://portal-ww.ecouser.net/api/pim/file/get/608xxxxxxxxxxxxxxxxxx', 'ota': False, 'UILogicId': 'D_OZMO_SLIM10', 'materialNo': '110-1715-0201', 'pid': '5aexxxxxxxxxxxxxx', 'product_category': 'DEEBOT', 'model': 'SLIM10', 'updateInfo': {'needUpdate': False, 'changeLog': ''}, 'status': 1}]}
ERROR:asyncio:Task exception was never retrieved

future: <Task finished name='Task-1' coro=<main() done, defined at /github-deebot-api/example.py:22> exception=TypeError('VacuumBot.__init__() takes 3 positional arguments but 4 were given')>

Traceback (most recent call last):
  File "/github-deebot-api/example.py", line 33, in main
    bot = VacuumBot(session, devices_[0], api_client)
TypeError: VacuumBot.__init__() takes 3 positional arguments but 4 were given


### Additional information

I really want to get the deebot slim10 to work with home-assistant and seeing that it does work with the `ecovacs-deebot.js` makes me want it even more.
If you give me some insights on how the lib works and on which places I may need to convert the data to xml I can play around on my own.
@h4de5 h4de5 added the bug Something isn't working label Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant