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 S6 cannot setup #134129

Open
Tiemichael opened this issue Dec 28, 2024 · 13 comments
Open

Roborock S6 cannot setup #134129

Tiemichael opened this issue Dec 28, 2024 · 13 comments

Comments

@Tiemichael
Copy link

The problem

I am a complete newbe to HomeAssistant, which I setup on a Raspberry 4b.

Integration of my Roborock S6 fails, only showing: "Failed setup, will retry: no devices were able to successfully setup'

What version of Home Assistant Core has the issue?

core-2024.12.5

What was the last working version of Home Assistant Core?

new

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Roborock

Link to integration documentation on our website

https://www.home-assistant.io/integrations/roborock

Diagnostics information

DEBUG (MainThread) [homeassistant.components.roborock] Getting home data
DEBUG (MainThread) [homeassistant.components.roborock] Got home data HomeData(id=125403, name='My Home', products=[], devices=[], received_devices=[], lon=None, lat=None, geo_name=None, rooms=[])
DEBUG (MainThread) [homeassistant.components.roborock] Getting home data
DEBUG (MainThread) [homeassistant.components.roborock] Got home data HomeData(id=125403, name='My Home', products=[], devices=[], received_devices=[], lon=None, lat=None, geo_name=None, rooms=[])
DEBUG (MainThread) [homeassistant.components.roborock] Getting home data
DEBUG (MainThread) [homeassistant.components.roborock] Got home data HomeData(id=125403, name='My Home', products=[], devices=[], received_devices=[], lon=None, lat=None, geo_name=None, rooms=[])

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

Both the HA and Roborock are on the same network (10.xxx.yyy.60 and 10.xxx.yyy.49). The Roborock can be pinged from the HA.

I am not able to find any other logs, or stacktraces to help to pin down the issue.

The Roborock is working fine with the Roborock Android App.

@home-assistant
Copy link

Hey there @Lash-L, mind taking a look at this issue as it has been labeled with an integration (roborock) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of roborock can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign roborock Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


roborock documentation
roborock source
(message by IssueLinks)

@Lash-L
Copy link
Contributor

Lash-L commented Dec 28, 2024

Hi I need more of the logs to diagnose this further.

@Tiemichael
Copy link
Author

home-assistant_roborock_2024-12-28T14-03-58.930Z.log

I cannot find any other logs ...
Please let me know how to generate additonal logs

Thanks!

@fdreckmann
Copy link

Same here with roborock qrevo master. After Update to ha Version 2024.12.5

@fdreckmann
Copy link

Log:
TypeError: <enum 'RoborockMopModeCode'> has no members; specify names=()if you meant to create a new, empty, enum 2024-12-28 16:55:32.611 ERROR (MainThread) [homeassistant.components.roborock.coordinator] Unexpected error fetching roborock data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 110, in _async_update_data await self._update_device_prop() File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 99, in _update_device_prop device_prop = await self.api.get_prop() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 271, in get_prop status, clean_summary, consumable = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) # type: Status, CleanSummary, Consumable # type: ignore ^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 172, in get_status data = self._status_type.from_dict(await self.cache[CacheableAttribute.status].async_value()) File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 169, in from_dict return cls(**data) File "<string>", line 62, in __init__ File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 539, in __post_init__ self.mop_mode_name = self.mop_mode.name ^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'name' 2024-12-28 16:55:32.624 WARNING (MainThread) [homeassistant.components.roborock] Not setting up Roborock Qrevo Master because the coordinator failed to get data for the first time using the offline client Please create an issue with the following error included: 'int' object has no attribute 'name' 2024-12-28 16:55:53.760 ERROR (MainThread) [roborock.containers] <enum 'RoborockMopModeCode'> has no members; specifynames=()if you meant to create a new, empty, enum Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 124, in convert_to_class_obj converted_value = class_type(value) File "/usr/local/lib/python3.13/enum.py", line 726, in __call__ raise TypeError( f"{cls} has no members; specifynames=()if you meant to create a new, empty, enum" ) TypeError: <enum 'RoborockMopModeCode'> has no members; specifynames=()if you meant to create a new, empty, enum 2024-12-28 16:55:53.764 ERROR (MainThread) [homeassistant.components.roborock.coordinator] Unexpected error fetching roborock data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 110, in _async_update_data await self._update_device_prop() File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 99, in _update_device_prop device_prop = await self.api.get_prop() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 271, in get_prop status, clean_summary, consumable = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) # type: Status, CleanSummary, Consumable # type: ignore ^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 172, in get_status data = self._status_type.from_dict(await self.cache[CacheableAttribute.status].async_value()) File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 169, in from_dict return cls(**data) File "<string>", line 62, in __init__ File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 539, in __post_init__ self.mop_mode_name = self.mop_mode.name ^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'name' 2024-12-28 16:55:53.778 WARNING (MainThread) [homeassistant.components.roborock] Not setting up Roborock Qrevo Master because the coordinator failed to get data for the first time using the offline client Please create an issue with the following error included: 'int' object has no attribute 'name' 2024-12-28 16:55:54.209 ERROR (MainThread) [roborock.containers] <enum 'RoborockMopModeCode'> has no members; specifynames=()if you meant to create a new, empty, enum Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 124, in convert_to_class_obj converted_value = class_type(value) File "/usr/local/lib/python3.13/enum.py", line 726, in __call__ raise TypeError( f"{cls} has no members; specifynames=()if you meant to create a new, empty, enum" ) TypeError: <enum 'RoborockMopModeCode'> has no members; specifynames=()if you meant to create a new, empty, enum 2024-12-28 16:55:54.215 ERROR (MainThread) [homeassistant.components.roborock.coordinator] Unexpected error fetching roborock data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 110, in _async_update_data await self._update_device_prop() File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 99, in _update_device_prop device_prop = await self.api.get_prop() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 271, in get_prop status, clean_summary, consumable = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) # type: Status, CleanSummary, Consumable # type: ignore ^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 172, in get_status data = self._status_type.from_dict(await self.cache[CacheableAttribute.status].async_value()) File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 169, in from_dict return cls(**data) File "<string>", line 62, in __init__ File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 539, in __post_init__ self.mop_mode_name = self.mop_mode.name ^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'name' 2024-12-28 16:55:54.226 WARNING (MainThread) [homeassistant.components.roborock] Not setting up Roborock Qrevo Master because the coordinator failed to get data for the first time using the offline client Please create an issue with the following error included: 'int' object has no attribute 'name' 2024-12-28 16:56:00.040 ERROR (MainThread) [roborock.containers] <enum 'RoborockMopModeCode'> has no members; specifynames=()if you meant to create a new, empty, enum Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 124, in convert_to_class_obj converted_value = class_type(value) File "/usr/local/lib/python3.13/enum.py", line 726, in __call__ raise TypeError( f"{cls} has no members; specifynames=()if you meant to create a new, empty, enum" ) TypeError: <enum 'RoborockMopModeCode'> has no members; specifynames=()if you meant to create a new, empty, enum 2024-12-28 16:56:00.043 ERROR (MainThread) [homeassistant.components.roborock.coordinator] Unexpected error fetching roborock data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 110, in _async_update_data await self._update_device_prop() File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 99, in _update_device_prop device_prop = await self.api.get_prop() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 271, in get_prop status, clean_summary, consumable = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) # type: Status, CleanSummary, Consumable # type: ignore ^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 172, in get_status data = self._status_type.from_dict(await self.cache[CacheableAttribute.status].async_value()) File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 169, in from_dict return cls(**data) File "<string>", line 62, in __init__ File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 539, in __post_init__ self.mop_mode_name = self.mop_mode.name ^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'name' 2024-12-28 16:56:00.054 WARNING (MainThread) [homeassistant.components.roborock] Not setting up Roborock Qrevo Master because the coordinator failed to get data for the first time using the offline client Please create an issue with the following error included: 'int' object has no attribute 'name' 2024-12-28 16:56:10.841 ERROR (MainThread) [roborock.containers] <enum 'RoborockMopModeCode'> has no members; specifynames=()if you meant to create a new, empty, enum Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 124, in convert_to_class_obj converted_value = class_type(value) File "/usr/local/lib/python3.13/enum.py", line 726, in __call__ raise TypeError( f"{cls} has no members; specifynames=()if you meant to create a new, empty, enum" ) TypeError: <enum 'RoborockMopModeCode'> has no members; specifynames=()if you meant to create a new, empty, enum 2024-12-28 16:56:10.848 ERROR (MainThread) [homeassistant.components.roborock.coordinator] Unexpected error fetching roborock data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 110, in _async_update_data await self._update_device_prop() File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 99, in _update_device_prop device_prop = await self.api.get_prop() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 271, in get_prop status, clean_summary, consumable = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) # type: Status, CleanSummary, Consumable # type: ignore ^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 172, in get_status data = self._status_type.from_dict(await self.cache[CacheableAttribute.status].async_value()) File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 169, in from_dict return cls(**data) File "<string>", line 62, in __init__ File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 539, in __post_init__ self.mop_mode_name = self.mop_mode.name ^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'name' 2024-12-28 16:56:10.859 WARNING (MainThread) [homeassistant.components.roborock] Not setting up Roborock Qrevo Master because the coordinator failed to get data for the first time using the offline client Please create an issue with the following error included: 'int' object has no attribute 'name' 2024-12-28 16:56:24.099 ERROR (MainThread) [roborock.api] [Roborock Qrevo Master] id=1 Timeout after 4 seconds 2024-12-28 16:56:31.540 ERROR (MainThread) [roborock.containers] <enum 'RoborockMopModeCode'> has no members; specifynames=()if you meant to create a new, empty, enum Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 124, in convert_to_class_obj converted_value = class_type(value) File "/usr/local/lib/python3.13/enum.py", line 726, in __call__ raise TypeError( f"{cls} has no members; specifynames=()if you meant to create a new, empty, enum" ) TypeError: <enum 'RoborockMopModeCode'> has no members; specifynames=() if you meant to create a new, empty, enum 2024-12-28 16:56:31.545 ERROR (MainThread) [homeassistant.components.roborock.coordinator] Unexpected error fetching roborock data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 110, in _async_update_data await self._update_device_prop() File "/usr/src/homeassistant/homeassistant/components/roborock/coordinator.py", line 99, in _update_device_prop device_prop = await self.api.get_prop() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 271, in get_prop status, clean_summary, consumable = await asyncio.gather( ^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) # type: Status, CleanSummary, Consumable # type: ignore ^ File "/usr/local/lib/python3.13/site-packages/roborock/version_1_apis/roborock_client_v1.py", line 172, in get_status data = self._status_type.from_dict(await self.cache[CacheableAttribute.status].async_value()) File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 169, in from_dict return cls(**data) File "<string>", line 62, in __init__ File "/usr/local/lib/python3.13/site-packages/roborock/containers.py", line 539, in __post_init__ self.mop_mode_name = self.mop_mode.name ^^^^^^^^^^^^^^^^^^ AttributeError: 'int' object has no attribute 'name' 2024-12-28 16:56:31.552 WARNING (MainThread) [homeassistant.components.roborock] Not setting up Roborock Qrevo Master because the coordinator failed to get data for the first time using the offline client Please create an issue with the following error included: 'int' object has no attribute 'name' 2024-12-28 16:56:53.801 ERROR (MainThread) [homeassistant.components.smlight] Unexpected error fetching smlight_SLZB-06M.local data Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/aiohttp/resolver.py", line 103, in resolve resp = await self._resolver.getaddrinfo( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... )

@Tiemichael
Copy link
Author

Tiemichael commented Dec 29, 2024

@fdreckmann : How did you get this log? I am a newbe with HA and struggeling to find relevant information
Thanks!

@globebourgeois
Copy link

Getting similar issue:

Log:

Logger: roborock.containers
Source: /usr/local/lib/python3.12/site-packages/roborock/containers.py:128
First occurred: December 22, 2024 at 5:40:21 AM (4 occurrences)
Last logged: 1:03:57 PM

HomeDataDevice.init() got an unexpected keyword argument 'cid'
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/roborock/containers.py", line 112, in convert_to_class_obj
return_list.append(cls_type.from_dict(obj))
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/roborock/containers.py", line 166, in from_dict
return cls(**data)
^^^^^^^^^^^
TypeError: HomeDataDevice.init() got an unexpected keyword argument 'cid'

@globebourgeois
Copy link

And second log entry:

Logger: homeassistant.config_entries
Source: config_entries.py:635
First occurred: December 22, 2024 at 5:40:21 AM (4 occurrences)
Last logged: 1:03:57 PM

Error setting up entry [email protected] for roborock
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/roborock/init.py", line 72, in async_setup_entry
device.duid: device for device in all_devices
^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'duid'

@metaljay
Copy link

Does anyone check previous reported issues before creating a new thread? It’s literally a few posts down from this and already noted that a fix is being issued

@Tiemichael
Copy link
Author

Does anyone check previous reported issues before creating a new thread? It’s literally a few posts down from this and already noted that a fix is being issued

Yes, I saw many similar issues, but none matching what I see. Also the fix seems using 2024.12.5, which I am already using .......

@metaljay
Copy link

metaljay commented Dec 29, 2024

Does anyone check previous reported issues before creating a new thread? It’s literally a few posts down from this and already noted that a fix is being issued

Yes, I saw many similar issues, but none matching what I see. Also the fix seems using 2024.12.5, which I am already using .......

#133694 (comment)

Key word... AFTER 24.12.5

@Tiemichael
Copy link
Author

Key word... AFTER 24.12.5

Let's hope you are right!

@Liperty
Copy link

Liperty commented Dec 31, 2024

I also have an S6 and added a Q Revo Master - wanted to see if I could have devices / entities for both.. and since then have been experiecing the same 'Failed to setup, check the logs' - tried multiple times, tried HA restart, Roborocks are on network - previously worked for S6 (solo) - but hadn't touched config for quite somet ime.

I'm also not quite sure where I would find the detailed logs for this or how to set logging levels (running HA in Linux Docker)

Anyhow Merry Xmas and Happy New Year - hope we get a fix!

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

No branches or pull requests

6 participants