Ecovacs component stopped working

not working in 0.84.5 either, would be awesome if this can be fixed :slight_smile:

Same with me…Ecovacs component not working

Got a Deebot N79S for Christmas. Running HA 0.84.3. No go for me. Would love to have this fixed so I can integrate with HA.

It is working for me now - in .86.4

Hassio with 86.4
I still have the “day of month” problem:

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

I also tried it because of the information above.
I still get the day out error.

Home assistant 0.86.4 on hassio

Anything new on that?

Yep same here, damnit i just got a new one after reading that it is supported

Forgot what post I got this tip from, but you need to downgrade some packages in order for the Ecovacs component to work. I have this built into a package with a bunch of other Ecovacs stuff;

shell_command:
  ecovacs_fix: "pip uninstall -y pyasn1 pyasn1-modules sleekxmpp slixmpp && pip install sleekxmpp==1.3.2 dnspython3==1.15.0"

script:
  ecovacs_fix:
    alias: Fix Ecovacs
    sequence:
    - service: shell_command.ecovacs_fix
    - service: persistent_notification.create
      data:
        title: 'Please Restart HA'
        message: 'To fully fix Ecovacs, please restart Home Assistant.'

@vidvisionify - does this fix work on hassio? Could you share the details of how to execute that script or where to place that logic? E.g. does it go in the scripts yaml file?

Thanks!

You can either put this in your configuration.yaml/scripts.yaml, or use it as a package.

Thanks @vidvisionify. I tried it out on Hassio and it keeps giving me an error with return code: 2

Error running command: `pip uninstall -y pyasn1 pyasn1-modules sleekxmpp slixmpp`, return code: 2

I even tried splitting out the uninstall and install into separate calls (hence why the above error doesn’t show the install part) and it still didn’t work. But that command worked just fine on my Windows box. Not sure why Hassio doesn’t like it, maybe it needs to be executed with elevated permissions?


A pull request is open to fix this issue.
Thanks to @OverloadUT

So nice to see this working again in 0.92.1

Thank you so much @OverloadUT

1 Like

same! that was an awesome fix!

I have a strange issue.

I use emulated hue to control my ecovacs switch with alexa.

So when I say “Alexa, turn on vacuum”. It turns on.

When I say “Alexa, turn off vacuum”. It turns it of, but it says that it is not reachable.

The same thing within the alexa app, but a little different. I can turn it on, but when I turn it on it goes unavailbale and it’s not possible to turn it off. But when when I say. it to alexa again, it will turn it off.

This issue doesn’t appear in homekit (apple).

Alos the homeassisant vacuum switch turn on and off immediately after I tell alexa to controll the vac.

Can someone help. Maybe @petro again?

I have the same issue. There are work arounds, like converting all switches into lights. There’s also a half-ass python solution in this PR. I haven’t implemented any of them yet. The issue is with emulated hue at this point.

1 Like

@petro can count on you. At least I know that it is a known issue now.

Hopefully someone is bale to fix it. Till then I can live with that.

Thanks for posting that link, I started a thread on this 2 days ago. This issue only started to occur for me when updating 92.1 from 91.1.

I don’t believe the issue is related to home assistant. I’m am almost 100% sure there was a change in Alexa that is causing this problem. I had a power outage and the only update that occurred was to Alexa and this problem started. I was at 0.91.4 at the time.