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

Can not setup roborock #134121

Closed
famahmou opened this issue Dec 28, 2024 · 4 comments
Closed

Can not setup roborock #134121

famahmou opened this issue Dec 28, 2024 · 4 comments

Comments

@famahmou
Copy link

The problem

Logger: homeassistant.components.roborock
Source: components/roborock/init.py:219
integration: Roborock (documentation, issues)
First occurred: 6:22:32 PM (4 occurrences)
Last logged: 6:23:10 PM

Not setting up Sophie 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'

=====
More errors and log:

Logger: homeassistant.components.roborock.coordinator
Source: helpers/update_coordinator.py:379
integration: Roborock (documentation, issues)
First occurred: 6:22:32 PM (4 occurrences)
Last logged: 6:23:10 PM

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 "", 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'

=====
Logger: roborock.containers
Source: /usr/local/lib/python3.13/site-packages/roborock/containers.py:131
First occurred: 6:22:32 PM (4 occurrences)
Last logged: 6:23:10 PM

<enum 'RoborockMopModeCode'> has no members; specify names=() 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; specify names=() if you meant to create a new, empty, enum"
)
TypeError: <enum 'RoborockMopModeCode'> has no members; specify names=() if you meant to create a new, empty, enum

What version of Home Assistant Core has the issue?

2024.12.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

roborock

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@diedrichg
Copy link

diedrichg commented Dec 28, 2024

Home Assistant OS
Core 2024.12.5
Roborock Qrevo Master, roborock.vacuum.a117

I am unable to setup the official integration due to the following errors. I am successful in installing the HACS roborock integration though - this method utilizes user/password rather than user/2FA. Not sure if that's what's going on here or if it runs deeper.

=====

Logger: homeassistant.components.roborock
Source: components/roborock/init.py:219
integration: Roborock (documentation, issues)
First occurred: 02:22:51 (3 occurrences)
Last logged: 02:23:12

Not setting up Crash 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'

=====

Logger: homeassistant.components.roborock.coordinator
Source: helpers/update_coordinator.py:379
integration: Roborock (documentation, issues)
First occurred: 02:22:51 (3 occurrences)
Last logged: 02:23:12

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 "", 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'

=====

Logger: roborock.containers
Source: /usr/local/lib/python3.13/site-packages/roborock/containers.py:131
First occurred: 02:22:51 (3 occurrences)
Last logged: 02:23:12

<enum 'RoborockMopModeCode'> has no members; specify names=() 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; specify names=() if you meant to create a new, empty, enum"
)
TypeError: <enum 'RoborockMopModeCode'> has no members; specify names=() if you meant to create a new, empty, enum

@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)

@gjohansson-ST gjohansson-ST changed the title homeassistant.components.roborock Can not setup roborock Dec 28, 2024
@Lash-L
Copy link
Contributor

Lash-L commented Dec 28, 2024

Hi - there's a few other issues where I describe this further. But the tldr is that this is fixed and you just need to wait for 2025.1

@Lash-L
Copy link
Contributor

Lash-L commented Dec 28, 2024

@home-assistant close

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

4 participants