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

Roborock Integration not working on Home Assistant Core 2024.5.4 #640

Open
guanaco0403 opened this issue May 22, 2024 · 28 comments
Open

Roborock Integration not working on Home Assistant Core 2024.5.4 #640

guanaco0403 opened this issue May 22, 2024 · 28 comments

Comments

@guanaco0403
Copy link

guanaco0403 commented May 22, 2024

Roborock Integration not working on Home Assistant Core 2024.5.4

Version of the custom_component

am using the latest version avaible on HACS

What vacuum are you using?

Roborock S7

Describe the bug

the roborock integration doesnt setup correctly at HA boot anymore + makes crash HA after a few hours
it spams errors in the log file


[home-assistant_2024-05-19T15-00-17.677Z.log](https://github.com/humbertogontijo/homeassistant-roborock/files/15401485/home-assistant_2024-05-19T15-00-17.677Z.log)


@guanaco0403
Copy link
Author

home-assistant_2024-05-19T15-00-17.677Z.log
it didnt upload correctly

@simonepittis
Copy link

+1

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/roborock/init.py", line 88, in async_setup_entry
device_network.update(await get_local_devices_info())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/roborock/init.py", line 162, in get_local_devices_info
discovered_devices = await RoborockProtocol(timeout=10).discover()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/roborock/protocol.py", line 66, in discover
await asyncio.sleep(self.timeout)
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 665, in sleep
return await future
^^^^^^^^^^^^
asyncio.exceptions.CancelledError

@ifflanb
Copy link

ifflanb commented May 25, 2024

Yes I believe I am seeing HA crash when the Roborock vacuum is running. I don't have any proof of this. Just seems very coincidental at this stage.

@jacobwaage
Copy link

+1

hope this will be fixed asap ☺️

@isthevao
Copy link

I had the same problem after the update, but today it was able to connect and is working properly. Maybe it was on the roborock side.

@RacerEdge
Copy link

Same issue. Not working after the update. :-(

@machielkreiken
Copy link

Same here. Setup failing since last update.

@HarsiTomiii
Copy link

HarsiTomiii commented May 29, 2024

Same here. Since last update, setup failing. on 2024.5.5

edit: added version, since this is a different thread

@Dillton
Copy link

Dillton commented May 29, 2024

I am running HA Core 2024.5.5 for 4 days now and have no problem at all.

@RacerEdge
Copy link

But what else could it be?
I uninstalled the integration, reboot HAS and installed the integration.
Login data are accepted but initialization failed.

Any ideas ?

@guanaco0403
Copy link
Author

its a problem with the code they need to fix it

@RacerEdge
Copy link

ok, so the only thing we can do is wait and hope. :-)

@bobzer
Copy link

bobzer commented May 29, 2024

or you can contribute either by code, probable reason for the crash. or simply buy a coffee, it take a lot of time and effort to maintain and it's done on the family time.

@HarsiTomiii
Copy link

Same here. Since last update, setup failing. on 2024.5.5

edit: added version, since this is a different thread

so I did some cleaning and reinstall.

  1. I removed the roborock integration, then restart home assistant
  2. I reinstalled the roborock hacs integration, then restart home assistant
  3. I reinstalled the xiaomi map extractor hacs integration, then restart home assistant
  4. I reinstalled the roborock integration, it asked for login, authorization etc and then it works again

I am on 2024.5.5, Roborock S7, Roborock custom integration + xiaomi map extractor

@Lash-L
Copy link
Collaborator

Lash-L commented May 30, 2024

Hi everyone - for those of you still having issues, I recommend you disable the integration for a day and then switch to the core integration.

I do not have the time to maintain both the custom integration and the core integration. I barely have enough time to maintain the core integration by itself. And I believe @humbertogontijo does not have the time either for the custom integration

@guanaco0403
Copy link
Author

Oh they are not the same ? @Lash-L

@guanaco0403
Copy link
Author

I taught they were soo i just remove it and then use the ha one ?

@Lash-L
Copy link
Collaborator

Lash-L commented May 30, 2024

Oh they are not the same ? @Lash-L

No

@RacerEdge
Copy link

How is the way to install it ?

@japper83
Copy link

Removing the hacs intergration, restart HA. Then reinstall and reauthenticate fixed it for me.

@Eidolf
Copy link

Eidolf commented May 31, 2024

Removing the hacs intergration, restart HA. Then reinstall and reauthenticate fixed it for me.

Also for me, good Tip.

@jacobwaage
Copy link

jacobwaage commented May 31, 2024 via email

@Lash-L
Copy link
Collaborator

Lash-L commented May 31, 2024

Both of these exist. Just use the vacuum send command service

app_segment_clean

app_goto_target

@RacerEdge
Copy link

After setup with a W11 PC and not with my MAC-Book it works!

@r77s
Copy link

r77s commented Jun 20, 2024

Same here. Since last update, setup failing. on 2024.5.5
edit: added version, since this is a different thread

so I did some cleaning and reinstall.

  1. I removed the roborock integration, then restart home assistant
  2. I reinstalled the roborock hacs integration, then restart home assistant
  3. I reinstalled the xiaomi map extractor hacs integration, then restart home assistant
  4. I reinstalled the roborock integration, it asked for login, authorization etc and then it works again

I am on 2024.5.5, Roborock S7, Roborock custom integration + xiaomi map extractor

Thank you for your tip, but in version 2024.6.3 it doesn't work for me with the Roborock S8. Has anyone managed to do this with the current Home Assistant version?

@cpsskipper
Copy link

Same here. Since last update, setup failing. on 2024.5.5
edit: added version, since this is a different thread

so I did some cleaning and reinstall.

  1. I removed the roborock integration, then restart home assistant
  2. I reinstalled the roborock hacs integration, then restart home assistant
  3. I reinstalled the xiaomi map extractor hacs integration, then restart home assistant
  4. I reinstalled the roborock integration, it asked for login, authorization etc and then it works again

I am on 2024.5.5, Roborock S7, Roborock custom integration + xiaomi map extractor

Thank you for your tip, but in version 2024.6.3 it doesn't work for me with the Roborock S8. Has anyone managed to do this with the current Home Assistant version?

I do it instruction step by step in version 2024.6.4. It works

@HarsiTomiii
Copy link

Same here. Since last update, setup failing. on 2024.5.5
edit: added version, since this is a different thread

so I did some cleaning and reinstall.

  1. I removed the roborock integration, then restart home assistant
  2. I reinstalled the roborock hacs integration, then restart home assistant
  3. I reinstalled the xiaomi map extractor hacs integration, then restart home assistant
  4. I reinstalled the roborock integration, it asked for login, authorization etc and then it works again

I am on 2024.5.5, Roborock S7, Roborock custom integration + xiaomi map extractor

Thank you for your tip, but in version 2024.6.3 it doesn't work for me with the Roborock S8. Has anyone managed to do this with the current Home Assistant version?

I do it instruction step by step in version 2024.6.4. It works

glad to hear!
strange that the same steps don't work for others...

since my post previously i had a few updates to core, and it still works without issue.

@r77s
Copy link

r77s commented Jun 25, 2024

Same here. Since last update, setup failing. on 2024.5.5
edit: added version, since this is a different thread

so I did some cleaning and reinstall.

  1. I removed the roborock integration, then restart home assistant
  2. I reinstalled the roborock hacs integration, then restart home assistant
  3. I reinstalled the xiaomi map extractor hacs integration, then restart home assistant
  4. I reinstalled the roborock integration, it asked for login, authorization etc and then it works again

I am on 2024.5.5, Roborock S7, Roborock custom integration + xiaomi map extractor

Thank you for your tip, but in version 2024.6.3 it doesn't work for me with the Roborock S8. Has anyone managed to do this with the current Home Assistant version?

I do it instruction step by step in version 2024.6.4. It works

glad to hear! strange that the same steps don't work for others...

since my post previously i had a few updates to core, and it still works without issue.

I tried this with the current HA version and the integration could not be loaded. I get the info that module "imp" could not be loaded.

Robo

Logger: homeassistant.setup
Quelle: setup.py:320
Erstmals aufgetreten: 14:44:49 (1 Vorkommnisse)
Zuletzt protokolliert: 14:44:49

Setup failed for custom integration 'roborock': Unable to import component: No module named 'imp'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 320, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1012, in async_get_component
self._component_future.result()
File "/usr/src/homeassistant/homeassistant/loader.py", line 992, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1052, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 131, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/roborock/init.py", line 10, in
from roborock.api import RoborockApiClient
File "/usr/local/lib/python3.12/site-packages/roborock/api.py", line 60, in
from .protocol import Utils
File "/usr/local/lib/python3.12/site-packages/roborock/protocol.py", line 12, in
from construct import ( # type: ignore
File "/usr/local/lib/python3.12/site-packages/construct/init.py", line 22, in
from construct.core import *
File "/usr/local/lib/python3.12/site-packages/construct/core.py", line 3, in
import struct, io, binascii, itertools, collections, pickle, sys, os, tempfile, hashlib, importlib, imp
ModuleNotFoundError: No module named 'imp'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests