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

Integration tries to connect to remote vacuum locally, setup fails #583

Open
mrestorff opened this issue Jan 13, 2024 · 3 comments
Open

Comments

@mrestorff
Copy link

mrestorff commented Jan 13, 2024

Version 1.0.12

What vacuum are you using?

  • Roborock S7 Max Ultra (local)
  • Roborock S5 Max (remote)

Describe the bug

I have two vacuums set up in my account, one is a local one and the other is in another network.
On set up, the integration tries to connect to the remote vacuum locally ([roborock.local_api] [Roborock S5 Max] Connecting to 10.20.107.xxx) but of course fails to reach it.
It then fails setup entirely as it tries to set up the sensors for that vacuum.

Debug log


2024-01-13 17:22:06.016 DEBUG (MainThread) [roborock.local_api] [Roborock S5 Max] Connecting to 10.20.107.213
2024-01-13 17:22:10.017 DEBUG (MainThread) [roborock.local_api] [Roborock S5 Max] Connecting to 10.20.107.213
2024-01-13 17:22:14.020 DEBUG (MainThread) [roborock.local_api] [Roborock S5 Max] Connecting to 10.20.107.213
2024-01-13 17:22:18.021 DEBUG (MainThread) [roborock.local_api] [Roborock S5 Max] Connecting to 10.20.107.213
2024-01-13 17:22:18.025 DEBUG (MainThread) [custom_components.roborock.coordinator] Finished fetching roborock data in 16.040 seconds (success: False)
2024-01-13 17:22:18.201 ERROR (MainThread) [homeassistant.components.button] Error while setting up roborock platform for button
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/roborock/button.py", line 87, in async_setup_entry
    coordinator = device_entry_data["coordinator"]
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
2024-01-13 17:22:18.209 ERROR (MainThread) [homeassistant.components.camera] Error while setting up roborock platform for camera
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/roborock/camera.py", line 78, in async_setup_entry
    coordinator = device_entry_data["coordinator"]
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
2024-01-13 17:22:18.219 ERROR (MainThread) [homeassistant.components.number] Error while setting up roborock platform for number
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/roborock/number.py", line 68, in async_setup_entry
    coordinator = device_entry_data["coordinator"]
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

@mrestorff mrestorff changed the title Integration tries to connect to remote vacuum locally, fails set up Integration tries to connect to remote vacuum locally, setup fails Jan 13, 2024
@noobey
Copy link

noobey commented Jan 15, 2024

Same here.
Whats odd is that it continues to try to reconnect causing other issues in HA. I've disabled the integration for now.

@kamilk91
Copy link

kamilk91 commented Jan 15, 2024

It is funny because i have strange behaviour.

Many times re-configured this library, and reinstalled with different versions after bug you mentioned @op, but it keeps failing.
One time i reconfigured it started to work, i ran kitchen cleaning (it is 10-15minutes) when he returned everything were unavailable.

@bvindmar
Copy link

Same here.. as @noobey noticed, the reconnecting integration makes the whole system laggy and unresponsive

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

4 participants