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

Ecovacs - component not loading #18054

Closed
christensonautohome opened this issue Oct 31, 2018 · 76 comments · Fixed by #23354
Closed

Ecovacs - component not loading #18054

christensonautohome opened this issue Oct 31, 2018 · 76 comments · Fixed by #23354
Assignees
Labels
integration: ecovacs waiting-for-upstream We're waiting for a change upstream

Comments

@christensonautohome
Copy link

christensonautohome commented Oct 31, 2018

Home Assistant release with the issue:
using HASSIO - 0.81.2

Last working Home Assistant release (if known):
Can't remember if it was 0.79 or if it might have been working in 0.80 (I think 0.80)

Operating environment (Hass.io/Docker/Windows/etc.):
Pi3+

Component/platform:
ecovacs

Description of problem:
It appears the setup is taking too long and as a result the component is no loading.

2018-10-31 10:08:56 WARNING (MainThread) [homeassistant.setup] Setup of rainmachine is taking over 10 seconds.
2018-10-31 10:09:05 WARNING (MainThread) [homeassistant.setup] Setup of ecovacs is taking over 10 seconds.
2018-10-31 10:09:15 WARNING (MainThread) [homeassistant.components.vacuum] Setup of platform ecovacs is taking over 10 seconds.
2018-10-31 10:10:05 ERROR (MainThread) [homeassistant.components.vacuum] Setup of platform ecovacs is taking longer than 60 seconds. Startup will proceed without waiting any longer.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

ecovacs:
  username: [email protected]
  password: **
  country: us
  continent: na

Traceback (if applicable):


Additional information:

@christensonautohome christensonautohome changed the title Ecovacs - stalling at Ecovacs - component not loading Oct 31, 2018
@christensonautohome
Copy link
Author

christensonautohome commented Oct 31, 2018

found this in my log... this is among the last log files for ecovacs. this appears after the message saying it's taking over 60 seconds

2018-10-31 12:35:46 DEBUG (SyncWorker_4) [homeassistant.util.json] JSON file not found: /usr/local/lib/python3.6/site-packages/homeassistant/components/.translations/ecovacs.en.json

@christensonautohome
Copy link
Author

christensonautohome commented Oct 31, 2018

2018-10-31 12:34:19 DEBUG (SyncWorker_1) [sucks] got {'code': '0000', 'msg': '操作成功', 'time': 1541003659086, 'data': {'authCode': 'xxx', 'ecovacsUid': 'xxx'}}
2018-10-31 12:34:19 DEBUG (SyncWorker_1) [sucks] calling user api loginByItToken with {'country': 'US', 'resource': 'xxx', 'realm': 'ecouser.net', 'userId': 'xxx', 'token': 'xxx'}
2018-10-31 12:34:20 DEBUG (SyncWorker_1) [sucks] got {'todo': 'result', 'result': 'ok', 'userId': 'cxxx', 'resource': 'x', 'token': 'xxx'}
2018-10-31 12:34:20 DEBUG (SyncWorker_1) [root] Switching to shorter UID xxx
2018-10-31 12:34:20 DEBUG (SyncWorker_1) [root] EcoVacsAPI connection complete
2018-10-31 12:34:20 DEBUG (SyncWorker_1) [sucks] calling user api GetDeviceList with {'userid': 'xxx', 'auth': {'with': 'users', 'userid': 'xxx', 'realm': 'ecouser.net', 'token': 'xxx', 'resource': 'xxx'}}
2018-10-31 12:34:21 DEBUG (SyncWorker_1) [sucks] got {'todo': 'result', 'result': 'ok', 'devices': [{'did': 'xxx', 'name': 'xxx', 'class': '155', 'resource': 'atom', 'nick': 'xxx', 'company': 'eco-legacy'}]}

@kmlucy
Copy link

kmlucy commented Oct 31, 2018

I'm not sure if this is the same error, but mine works fine on 0.80.3, but breaks on 0.81.0 or newer. Here are the relevant logs:

2018-10-31 14:22:15 INFO (SyncWorker_8) [homeassistant.components.ecovacs] Discovered Ecovacs device on account: ******* with nickname Deebot
2018-10-31 14:22:15 WARNING (SyncWorker_8) [sleekxmpp.basexmpp] fulljid property deprecated. Use boundjid.resource
2018-10-31 14:22:15 INFO (MainThread) [homeassistant.setup] Setup of domain ecovacs took 2.0 seconds.
2018-10-31 14:22:15 INFO (MainThread) [homeassistant.loader] Loaded vacuum from homeassistant.components.vacuum
2018-10-31 14:22:15 INFO (MainThread) [homeassistant.setup] Setting up vacuum
2018-10-31 14:22:15 INFO (MainThread) [homeassistant.setup] Setup of domain vacuum took 0.0 seconds.
2018-10-31 14:22:15 INFO (MainThread) [homeassistant.loader] Loaded vacuum.ecovacs from homeassistant.components.vacuum.ecovacs
2018-10-31 14:22:15 INFO (MainThread) [homeassistant.components.vacuum] Setting up vacuum.ecovacs
2018-10-31 14:22:17 INFO (read_thread) [sleekxmpp.xmlstream.xmlstream] Negotiating TLS
2018-10-31 14:22:17 INFO (read_thread) [sleekxmpp.xmlstream.xmlstream] Using SSL version: TLSv1
2018-10-31 14:22:17 ERROR (read_thread) [sleekxmpp.basexmpp] day is out of range for month
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1492, in _process
    if not self.__read_xml():
  File "/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1564, in __read_xml
    self.__spawn_event(xml)
  File "/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1632, in __spawn_event
    handler.prerun(stanza_copy)
  File "/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/handler/callback.py", line 64, in prerun
    self.run(payload, True)
  File "/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/handler/callback.py", line 76, in run
    self._pointer(payload)
  File "/usr/local/lib/python3.6/site-packages/sleekxmpp/features/feature_starttls/starttls.py", line 64, in _handle_starttls_proceed
    if self.xmpp.start_tls():
  File "/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 889, in start_tls
    cert.verify(self._expected_server_name, self._der_cert)
  File "/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/cert.py", line 133, in verify
    not_before, not_after = extract_dates(raw_cert)
  File "/usr/local/lib/python3.6/site-packages/sleekxmpp/xmlstream/cert.py", line 111, in extract_dates
    not_before = datetime.strptime(not_before, '%Y%m%d%H%M%SZ')
  File "/usr/local/lib/python3.6/_strptime.py", line 565, in _strptime_datetime
    tt, fraction = _strptime(data_string, format)
  File "/usr/local/lib/python3.6/_strptime.py", line 528, in _strptime
    datetime_date(year, 1, 1).toordinal() + 1
ValueError: day is out of range for month
2018-10-31 14:22:17 INFO (read_thread) [sleekxmpp.xmlstream.xmlstream] Waiting for </stream:stream> from server
2018-10-31 14:22:25 WARNING (MainThread) [homeassistant.components.vacuum] Setup of platform ecovacs is taking over 10 seconds.

@dgomes dgomes added the waiting-for-upstream We're waiting for a change upstream label Nov 2, 2018
@dgomes
Copy link
Contributor

dgomes commented Nov 2, 2018

These issues are being handled by the supporting library:

https://github.com/wpietri/sucks/issues

Please direct these issues to over there.

@eracknaphobia
Copy link

eracknaphobia commented Nov 3, 2018

I'm seeing the same issue as @kmlucy. Works in 80.3, errors in every 81.X version. It appears that the sleekxmpp has changed between versions. I wonder if @OverloadUT can shed any light on what the issue might be.

Nm, I see that there is an open issue in the sucks repo as @dgomes mentioned.
wpietri/sucks#45

@kmlucy
Copy link

kmlucy commented Nov 3, 2018

It may be an upstream issue, but something changed between 0.80.3 and 0.81.0. Until the upstream issue gets resolved, can we reverse whatever change caused this problem to pop up?

@christensonautohome
Copy link
Author

Should l close my ticket? It seems as though this is being checked into here.
Just odd that it was working on every 80.x version but under 81.x it appears broken. It also seems odd that the issue was seen by some as far back as August (post date on sucks issue page).

@dgomes
Copy link
Contributor

dgomes commented Nov 4, 2018

The last change on the ecovacs platform was updating the supporting library. It would seam unwise to revert that update.

We can leave this issue open for reference, I've already marked it as "waiting-for-upstream"

@kmlucy
Copy link

kmlucy commented Nov 14, 2018

Just FYI, I was able to get the Ecovacs component working again by reverting to the dependencies from 0.80. I run in Docker, so a simple Dockerfile with:

FROM homeassistant/home-assistant

RUN pip uninstall -y pyasn1 pyasn1-modules sleekxmpp slixmpp && pip install pyasn1==0.3.7 pyasn1-modules==0.1.5 sleekxmpp==1.3.2 dnspython3==1.15.0

fixes the problem. I'm not sure if reverting will cause problems for other components, but I haven't noticed any to date.

@DemiMelfice
Copy link

Just FYI, I was able to get the Ecovacs component working again by reverting to the dependencies from 0.80. I run in Docker, so a simple Dockerfile with:

FROM homeassistant/home-assistant

RUN pip uninstall -y pyasn1 pyasn1-modules sleekxmpp slixmpp && pip install pyasn1==0.3.7 pyasn1-modules==0.1.5 sleekxmpp==1.3.2 dnspython3==1.15.0

fixes the problem. I'm not sure if reverting will cause problems for other components, but I haven't noticed any to date.

I also revered mine, I've tried sleekxmpp 1.3.1 & 1.3.2 and in all occasions i'm seeing the ping error still. Don't suppose you know how to resolve this? Basically the times out the ping to the bot and that only time you get a status update is when it first initiates the connection on home assistant.

@kmlucy
Copy link

kmlucy commented Nov 21, 2018

@DemiMelfice What ping error are you referring to? My N79 updates fine.

@DemiMelfice
Copy link

@DemiMelfice What ping error are you referring to? My N79 updates fine.

I see the following error:
2018-11-21 03:49:01 WARNING (SyncWorker_5) [sleekxmpp.xmlstream.handler.waiter] Timed out waiting for IqWait_a149c745-5a6e-417a-9226-89dab269696d-3

2018-11-21 03:49:01 WARNING (SyncWorker_5) [sucks] Ping did not reach VacBot. Will retry.

2018-11-21 03:49:01 DEBUG (SyncWorker_5) [sucks] *** Error type: cancel

2018-11-21 03:49:01 DEBUG (SyncWorker_5) [sucks] *** Error condition: remote-server-timeout

it then loads:
2018-11-21 03:49:01 DEBUG (SyncWorker_5) [homeassistant.components.vacuum.ecovacs] Vacuum initialized: E0000983316700380003
2018-11-21 03:49:01 DEBUG (SyncWorker_5) [homeassistant.components.vacuum.ecovacs] Adding Ecovacs Vacuums to Hass: []

after this is loads everthing such as GetCleanState, GetChargeState, GetBatteryInfo, GetLifeSpan and then the following:
2018-11-21 03:49:02 DEBUG (event_thread_0) [sucks] *** clean_status = stop fan_speed = None
2018-11-21 03:49:02 DEBUG (event_thread_0) [sucks] *** charge_status = charging
2018-11-21 03:49:02 DEBUG (event_thread_0) [sucks] *** battery_status = 100%
2018-11-21 03:49:02 DEBUG (event_thread_0) [sucks] *** error = get_life_span

2018-11-21 03:49:02 DEBUG (event_thread_0) [sucks] *** error = get_life_span

2018-11-21 03:49:02 DEBUG (event_thread_0) [sucks] *** error = get_life_span

2018-11-21 03:49:31 DEBUG (event_thread_0) [sucks] *** sending ping ***
2018-11-21 03:50:01 DEBUG (event_thread_0) [sucks] *** sending ping ***
2018-11-21 03:50:31 DEBUG (event_thread_0) [sucks] *** sending ping ***
2018-11-21 03:51:01 DEBUG (event_thread_0) [sucks] *** sending ping ***
2018-11-21 03:51:31 DEBUG (event_thread_0) [sucks] *** sending ping ***
2018-11-21 03:52:01 DEBUG (event_thread_0) [sucks] *** sending ping ***
2018-11-21 03:52:31 DEBUG (event_thread_0) [sucks] *** sending ping ***
2018-11-21 03:53:01 DEBUG (event_thread_0) [sucks] *** sending ping ***
2018-11-21 03:53:31 DEBUG (event_thread_0) [sucks] *** sending ping ***
2018-11-21 03:54:01 DEBUG (event_thread_0) [sucks] *** sending ping ***
2018-11-21 03:54:31 DEBUG (event_thread_0) [sucks] *** sending ping ***

when the vacuum cleaner is running it doesn't update within HA.

I have a R98

@kmlucy
Copy link

kmlucy commented Nov 21, 2018

I haven't seen any of those errors with mine.

@DemiMelfice
Copy link

Can I ask you to check your init.py and confirm if at line 44 it looks like this:

    login_response = self.__call_login_by_it_token()
    self.user_access_token = login_response['token']
    if login_response['userId'] != self.uid:
         logging.debug("Switching to shorter UID " + login_response['userId'])
         self.uid = login_response['userId']
    logging.debug("EcoVacsAPI connection complete")

@kmlucy
Copy link

kmlucy commented Nov 21, 2018

Which init.py?

@DemiMelfice
Copy link

DemiMelfice commented Nov 21, 2018

Sorry the one under sucks components folder. I have HA in a docker so mines is located @ ./usr/local/lib/python3.6/site-packages/sucks/__init.py

@kmlucy
Copy link

kmlucy commented Nov 21, 2018

I have the same code you posted in mine, but it starts at line 126. My __init__.py is identical to https://github.com/wpietri/sucks/blob/master/sucks/__init__.py

@DemiMelfice
Copy link

Thanks, I connect to the EU/UK and i'm using a R98. I believe everything else I have is the same set up as yours.

@whadat1
Copy link

whadat1 commented Dec 20, 2018

Has this issue been solved yet? I am hoping it is because I bought an Ecovacs N79S hoping I could set up and control it with Hass.io. Please say it's fixed.

@h4nc
Copy link

h4nc commented Dec 20, 2018

It is not fixed yet.

@whadat1
Copy link

whadat1 commented Dec 20, 2018 via email

@h4nc
Copy link

h4nc commented Dec 20, 2018

I'm waiting for the fix since some months. I think it will be fixed. There is a workarround somewhere in the thread (i think).

My workarrount for now is to use ir commands provided by my broadlink rm mini to turn on the ecovacs. Would be better with the component, but yeah ... I hope it will be fixed

@whadat1
Copy link

whadat1 commented Dec 20, 2018

Sure wish I could find a workaround but I am not as verse. I am new to home automation and am learning each day.

@kmlucy
Copy link

kmlucy commented Dec 20, 2018

The workaround is to install the previous dependencies:

pip uninstall -y pyasn1 pyasn1-modules sleekxmpp slixmpp && pip install pyasn1==0.3.7 pyasn1-modules==0.1.5 sleekxmpp==1.3.2 dnspython3==1.15.0

If you use Docker, you can just use kmlucy/docker-home-assistant instead of homeassistant/home-assistant for now.

@meyerdenney
Copy link

meyerdenney commented Mar 30, 2019

Any update on this? Is the problem with the sucks library? If so, I tested out the library on its own on my Ecovac N79S and both the master branch (https://github.com/wpietri/sucks) and the latest PR (wpietri/sucks#63) worked just fine.

Edit: to clarify I tested sucks library on my windows box, not on hassio, which looks like the env having issues

@lollo78
Copy link

lollo78 commented Apr 1, 2019

Sorry, I just haven't had time personally. I think we've waited long enough for a fix to come from SleekXMPP though. I'll try to get to this soon.

Hi, any news?

@jelkinsiv
Copy link

Any new on getting this working? I'm a Hass.io user.

@OverloadUT
Copy link
Contributor

I am happy to report that I have a stopgap fix submitted to the upstream library: wpietri/sucks#67

@ghost
Copy link

ghost commented Apr 18, 2019

Hey there @OverloadUT, mind taking a look at this issue as its been labeled with a integration (ecovacs) you are listed as a codeowner for? Thanks!

This is a automatic comment generated by codeowners-mention to help ensure issues and pull requests are seen by the right people.

@skynet01
Copy link
Contributor

Woohoo!! so excited for this to start working! Thanks so much OverloadUT!

@ferdicoast
Copy link

Thanks a lot OverloadUT! Keep on the good work! Cheers

@h4nc
Copy link

h4nc commented Apr 25, 2019

So does this work for hassio users too again? Or do we have to wait for an update?

Does someone know if this will work with 0.92? Don't available yet for hassio users.

@skynet01
Copy link
Contributor

I prey it makes it into the coming 0.92 release as well :)

@insertjokehere
Copy link
Contributor

Thanks @OverloadUT - you are awesome!

@h4nc @skynet01 This didn't make it into 0.92.0, but keep an eye on the release notes for 0.92.1 - failing that it should be included in 0.93.0

@h4nc
Copy link

h4nc commented Apr 27, 2019

So nice to see this working again in 0.92.1

Thank you so much @OverloadUT

@whadat1
Copy link

whadat1 commented Apr 27, 2019

Just checked and we are back in business !! Great...

@DerMattes
Copy link

DerMattes commented Apr 28, 2019

Hi, thanks for the work to the component, but I still have problems loading this.
It never worked for me, I started with HA when this was already broken.

Here are my logs:

2019-04-28 12:03:17 WARNING (SyncWorker_14) [sleekxmppfs.basexmpp] fulljid property deprecated. Use boundjid.resource
2019-04-28 12:03:27 WARNING (MainThread) [homeassistant.components.vacuum] Setup of platform ecovacs is taking over 10 seconds.
2019-04-28 12:03:50 WARNING (SyncWorker_14) [sleekxmppfs.xmlstream.handler.waiter] Timed out waiting for IqWait_40d35ad4-4bb1-4850-9d5d-55efb530b71c-3
2019-04-28 12:03:50 WARNING (SyncWorker_14) [sucks] Ping did not reach VacBot. Will retry.
2019-04-28 12:03:50 ERROR (MainThread) [homeassistant.components.vacuum] Error while setting up platform ecovacs
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/ecovacs/vacuum.py", line 27, in setup_platform
    vacuums.append(EcovacsVacuum(device))
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/ecovacs/vacuum.py", line 38, in __init__
    self.device.connect_and_wait_until_ready()
  File "/usr/local/lib/python3.7/site-packages/sucks/__init__.py", line 279, in connect_and_wait_until_ready
    self.xmpp.schedule('Ping', 30, lambda: self.send_ping(), repeat=True)
  File "/usr/local/lib/python3.7/site-packages/sleekxmppfs/xmlstream/xmlstream.py", line 1219, in schedule
    repeat, qpointer=self.event_queue)
  File "/usr/local/lib/python3.7/site-packages/sleekxmppfs/xmlstream/scheduler.py", line 220, in add
    raise ValueError("Key %s already exists" % name)
ValueError: Key Ping already exists
2019-04-28 12:03:50 ERROR (read_thread) [sleekxmppfs.xmlstream.xmlstream] Socket Error #1: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2488)
2019-04-28 12:03:50 ERROR (read_thread) [sleekxmppfs.xmlstream.xmlstream] Socket Error #1: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2488)
2019-04-28 12:03:50 WARNING (read_thread) [sleekxmppfs.xmlstream.xmlstream] Failed to send b'</stream:stream>'

This is the entry in configuration.yaml:

vacuum:
  - platform: ecovacs
    name: Gonk
    host: !secret vacuum_host

ecovacs:
  username: !secret ecovacs_email
  password: !secret ecovacs_passwd
  country: !secret ecovacs_country
  continent: eu

@h4nc
Copy link

h4nc commented Apr 28, 2019

I don’t have the vacuum: section you have.

Only ecovacs: ...

@DerMattes
Copy link

I removed the vacuum section, restarted and now HA shows a new vacuum entity :-)
Thanks!!

@h4nc
Copy link

h4nc commented Apr 28, 2019

BTW it works now, but this is a warning that shows up in the logs:

fulljid property deprecated. Use boundjid.resource
15:45 components/ecovacs/__init__.py (WARNING)

@h4nc
Copy link

h4nc commented May 16, 2019

@OverloadUT First it worked fine, but lately I takes serveral HA-restarts until it starts without an error.
When the error appears the component doesn't load. I than restart Ha (and restart by vacuum; don't know if that matters, but feels like it helps) and after serveral tries it will work again.

Does someone else have this issue too?

call to loginByItToken failed with {'todo': 'result', 'result': 'fail', 'errno': 0, 'error': 'set token error.'}

and

Error during setup of component ecovacs
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 156, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/ecovacs/__init__.py", line 49, in setup
    config[DOMAIN].get(CONF_CONTINENT))
  File "/usr/local/lib/python3.7/site-packages/sucks/__init__.py", line 126, in __init__
    login_response = self.__call_login_by_it_token()
  File "/usr/local/lib/python3.7/site-packages/sucks/__init__.py", line 185, in __call_login_by_it_token
    'token': self.auth_code}
  File "/usr/local/lib/python3.7/site-packages/sucks/__init__.py", line 177, in __call_user_api
    "failure {} ({}) for call {} and parameters {}".format(json['error'], json['errno'], function, params))
RuntimeError: failure set token error. (0) for call loginByItToken and parameters {'todo': 'loginByItToken', 'country': '*scratched*', 'resource': '*scratched*', 'realm': 'ecouser.net', 'userId': '*scratched*', 'token': '*scratched*'}

@whadat1
Copy link

whadat1 commented May 16, 2019

No issues here !!

@Sha-Darim
Copy link

Sha-Darim commented May 17, 2019 via email

@DerMattes
Copy link

Same problem, log entry:
Error during setup of component ecovacs 20:25 components/ecovacs/__init__.py (ERROR)

@Rudertier
Copy link

Rudertier commented May 17, 2019

I also have a similar issue:

2019-05-17 20:49:16 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1789064144] <iq id="608ecf2b-9365-46f0-95de-4bla-1BEF" to="[email protected]/atom" from="[email protected]/27d63er421431bdabc326301ec1a8f5e22" type="set"><query xmlns="com:ctl"><ctl td="Clean"><clean type="auto" speed="standard" /></ctl></query></iq>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/websocket_api/commands.py", line 121, in handle_call_service
    connection.context(msg))
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1138, in async_call
    self._execute_service(handler, service_call))
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1160, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py", line 194, in handle_service
    required_features
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 316, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 337, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/vacuum/__init__.py", line 301, in async_turn_on
    partial(self.turn_on, **kwargs))
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/ecovacs/vacuum.py", line 144, in turn_on
    self.device.run(Clean())
  File "/usr/local/lib/python3.7/site-packages/sucks/__init__.py", line 416, in run
    self.send_command(action.to_xml())
  File "/usr/local/lib/python3.7/site-packages/sucks/__init__.py", line 413, in send_command
    self.xmpp.send_command(xml, self._vacuum_address())
  File "/usr/local/lib/python3.7/site-packages/sucks/__init__.py", line 482, in send_command
    c.send()
  File "/usr/local/lib/python3.7/site-packages/sleekxmppfs/stanza/iq.py", line 233, in send
    raise IqTimeout(self)
sleekxmppfs.exceptions.IqTimeout: <iq id="608ecf2b-9365-46feqwre-4c6f92c7b97e-1BEF" to="[email protected]/atom" from="[email protected]/27d63eqer1bdabc326301ec1a8f5e22" type="set"><query xmlns="com:ctl"><ctl td="Clean"><clean type="auto" speed="standard" /></ctl></query></iq>

I hope this is somehow helpful

@Sha-Darim
Copy link

Sha-Darim commented May 20, 2019 via email

@jigglycrumb
Copy link

Same problem here, with a Deebot OZMO 930

Error during setup of component ecovacs
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 156, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/ecovacs/__init__.py", line 49, in setup
    config[DOMAIN].get(CONF_CONTINENT))
  File "/usr/local/lib/python3.7/site-packages/sucks/__init__.py", line 126, in __init__
    login_response = self.__call_login_by_it_token()
  File "/usr/local/lib/python3.7/site-packages/sucks/__init__.py", line 185, in __call_login_by_it_token
    'token': self.auth_code}
  File "/usr/local/lib/python3.7/site-packages/sucks/__init__.py", line 177, in __call_user_api
    "failure {} ({}) for call {} and parameters {}".format(json['error'], json['errno'], function, params))
RuntimeError: failure set token error. (0) for call loginByItToken and parameters {'todo': 'loginByItToken', 'country': 'DE', 'resource': 'ABCDE', 'realm': 'ecouser.net', 'userId': 'xxx', 'token': 'xxx'}

@AbDhops
Copy link

AbDhops commented May 23, 2019

This issue is closed. No point in adding comments in issue which is closed. So created new one...

@Sha-Darim
Copy link

New issue:
#24079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration: ecovacs waiting-for-upstream We're waiting for a change upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.