wpietri / sucks

Simple command-line script for the Ecovacs series of robot vacuums
GNU General Public License v3.0
281 stars 104 forks source link

How to logon from the UK? #96

Open collse opened 4 years ago

collse commented 4 years ago

I have tried various things and could identify the following:

country: gb continent: eu

seems to be the right option to chose but the endpoint in the library is set to: eco-gb-api.ecovacs.com (which doesnt not resolve)

when trying to redirect it via dns to the endpoint (eco-uk-api.ecovacs.com) that actually replies to ping (unlike the eco-gb-api.ecovacs.com ) this then at least starts the authentication process but fails with:

2020-07-25 09:45:40 DEBUG (SyncWorker_6) [sucks] got {'code': '0001', 'msg': '操作失败', 'time': 1595666740099, 'data': None} - google translate this says operation failed 2020-07-25 09:45:40 ERROR (SyncWorker_6) [sucks] call to user/login failed with {'code': '0001', 'msg': '操作失败', 'time': 1595666740099, 'data': None}

as the endpoint eco-gb-api.ecovacs.com doesnt seem to exist and the ww endpoint doesnt work either I wonder what may have changed here?

authentication via app with same credentials works just fine for my N79S.

genericnerd99 commented 4 years ago

Hey - just to say im seeing the same in the UK, i have tried multiple variations of uk,gb,eu,ww with same results, pings to uk resolve as above as well. also seeing: Logger: sucks Source: /usr/local/lib/python3.8/site-packages/sucks/init.py:371 First occurred: August 16, 2020, 11:57:34 PM (7 occurrences) Last logged: 12:00:34 AM

Ping did not reach VacBot. Will retry. Thanks for any help

yannkuesthardt commented 4 years ago

Check out #91. I believe I found the problem (at least for my Deebot 600) in Germany.

leelfd commented 4 years ago

I am in the UK and had exactly the same issue so I corrected the convert_country_alpha2_to_continent_code.py script to replace the GB code with UK. Now it works.

yannkuesthardt commented 4 years ago

I am in the UK and had exactly the same issue so I corrected the convert_country_alpha2_to_continent_code.py script to replace the GB code with UK. Now it works.

Do you know where I can change that, if I want to use the Ecovacs Home Assistant integration? Can I find that file using the File Editor?