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 setup fails due to dependency conflict with Govee HACS causing 'wrong value for rriot' #100846

Closed
shuffgy opened this issue Sep 25, 2023 · 61 comments

Comments

@shuffgy
Copy link

shuffgy commented Sep 25, 2023

The problem

After the Core Update today, Roborock Integration stopped working with the following Error Log. I tried deleting and re-login, but i get an "Unexpected Error".

Logger: homeassistant.config_entries
Source: components/roborock/__init__.py:29
First occurred: 12:28:48 (2 occurrences)
Last logged: 13:03:04

Error setting up entry <mymail> for roborock
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/roborock/__init__.py", line 29, in async_setup_entry
    user_data = UserData.from_dict(entry.data[CONF_USER_DATA])
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 89, in from_dict
    return from_dict(cls, decamelize_obj(data, ignore_keys), config=Config(cast=[Enum]))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 68, in from_dict
    raise WrongTypeError(field_path=field.name, field_type=field.type, value=value)
dacite.exceptions.WrongTypeError: wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value "{'u': 'xxx', 's': 'xxx', 'h': 'xxx', 'k': 'xxx', 'r': {'r': 'EU', 'a': 'https://api-eu.roborock.com', 'm': 'ssl://mqtt-eu-5.roborock.com:8883', 'l': 'https://wood-eu.roborock.com'}}" of type "dict"

What version of Home Assistant Core has the issue?

core-2023.9.3

What was the last working version of Home Assistant Core?

(the one before)

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

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @humbertogontijo, @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.

(message by CodeOwnersMention)


roborock documentation
roborock source
(message by IssueLinks)

@tuley24
Copy link

tuley24 commented Sep 25, 2023

Same issue with my instance with the update to core-2023.9.3. However, I was on core-2023.9.1 before.

@Lash-L
Copy link
Contributor

Lash-L commented Sep 25, 2023

Very strange - that part of our code was not change in our version updates. Just grabbed what you gave me, and that seemingly works. My guess right now is that it is caused by another integration you use specifying a version of dacite that breaks our code

@Lash-L
Copy link
Contributor

Lash-L commented Sep 25, 2023

Do you get an error anywhere in your logs that says something along the lines of:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

or
ERROR: Unable to resolve dependencies for

@tuley24
Copy link

tuley24 commented Sep 25, 2023

@Lash-L FWIW I checked my logs and didn't see any pip error as you mention. I reverted my instance back to 2023.9.1 and can confirm my roborock integration is working again. I do have a few integrations with HACS that could maybe be culprit if you are not seeing any issues.

@Lash-L
Copy link
Contributor

Lash-L commented Sep 25, 2023

I have no issues on my side - but I can confirm that older versions of dacite do break the code.

Update back to 2023.9.3, check the logs for anything that says dependency or anything that says dacite

As well, are any of your other integrations listed as having changes for 2023.9.3?

@tuley24
Copy link

tuley24 commented Sep 25, 2023

I looked through the changelogs for both 2023.9.2 and 2023.9.3 for my case and it looks like the ones that would affect me are:

  • Bump python-roborock to 33.2
  • Handle disconnects in zwave_js repair flow
  • Bump zwave-js-server-python to 0.51.2
  • Bump python-roborock to 0.34.0
  • Bump pynetgear to 0.10.10
  • Fix incorrect off peak translation key for Roborock
  • Fix Roborock send command service calling not being enum
  • Bump python-roborock to 0.34.1
  • Bump zwave-js-server-python to 0.51.3

I'll update to 2023.9.2 to rule those changes out and report back.

@Lash-L
Copy link
Contributor

Lash-L commented Sep 25, 2023

Are you able to ssh into your machine and the underlying container and run pip show dacite? How to get there depends on your HA install. Just google "how to run pip commands home assistant (install method here)"

@kernelpanic85
Copy link
Contributor

Just FYI that I am experiencing this as well since updating from 2023.8.4 to 2023.9.3. The integration is not connecting at all with the same error message.

@tuley24
Copy link

tuley24 commented Sep 25, 2023

2023.9.2 doesn't have any issue so it is specific to 2023.9.3 changes. Here's the output of the pip show dacite from my instance:

homeassistant:/config# pip show dacite
Name: dacite
Version: 1.6.0
Summary: Simple creation of data classes from dictionaries.
Home-page: https://github.com/konradhalas/dacite
Author: Konrad Hałas
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.11/site-packages
Requires:
Required-by: brother, gios, govee-api-laggat, home-assistant-chip-clusters, nettigo-air-monitor, python-matter-server, python-roborock

@derdustin1987
Copy link

metoo - roborock not working one 2023.9.3

@Lash-L
Copy link
Contributor

Lash-L commented Sep 26, 2023

2023.9.2 doesn't have any issue so it is specific to 2023.9.3 changes. Here's the output of the pip show dacite from my instance:

homeassistant:/config# pip show dacite

Name: dacite

Version: 1.6.0

Summary: Simple creation of data classes from dictionaries.

Home-page: https://github.com/konradhalas/dacite

Author: Konrad Hałas

Author-email: [email protected]

License: MIT

Location: /usr/local/lib/python3.11/site-packages

Requires:

Required-by: brother, gios, govee-api-laggat, home-assistant-chip-clusters, nettigo-air-monitor, python-matter-server, python-roborock

Do you know if you use any of these requirements? And can you try doing pip install dacite==1.8.0 and let me know what it says?

@garciafabio
Copy link

Same here, updated this morning to 2023.9.3 and it stopped working.

Error setting up entry [email protected] for roborock
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/roborock/init.py", line 45, in async_setup_entry
network_results = await asyncio.gather(
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 503, in get_networking
return await self.send_command(RoborockCommand.GET_NETWORK_INFO, return_type=NetworkInfo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 403, in send_command
response = await self._send_command(method, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/cloud_api.py", line 207, in _send_command
return await self.send_message(roborock_message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/cloud_api.py", line 185, in send_message
(response, err) = await async_response
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 334, in _wait_response
raise RoborockTimeout(f"id={request_id} Timeout after {self.queue_timeout} seconds") from None
roborock.exceptions.RoborockTimeout: id=29621 Timeout after 10 seconds

@tuley24
Copy link

tuley24 commented Sep 26, 2023

@Lash-L I am using the brother, govee, and roborock integrations from that list. I reverted back to 2023.9.2 yesterday but I can test the dacite update later today and report back what I see.

@Lash-L
Copy link
Contributor

Lash-L commented Sep 26, 2023

@Lash-L I am using the brother, govee, and roborock integrations from that list. I reverted back to 2023.9.2 yesterday but I can test the dacite update later today and report back what I see.

What Govee do you use? HACS or something else?

@GeorgKlaussner
Copy link

GeorgKlaussner commented Sep 26, 2023

metoo - roborock not working on 2023.9.3

@tuley24
Copy link

tuley24 commented Sep 26, 2023

It's HACS. It's also been a while since it was last updated. Here's the output I see when I update dacite:

homeassistant:/config# pip install dacite==1.8.0
Collecting dacite==1.8.0
Downloading dacite-1.8.0-py3-none-any.whl (14 kB)
Installing collected packages: dacite
Attempting uninstall: dacite
Found existing installation: dacite 1.6.0
Uninstalling dacite-1.6.0:
Successfully uninstalled dacite-1.6.0
Successfully installed dacite-1.8.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

Looks like the dacite update fixed it for me. I now have the Roborock integration working with 2023.9.3 and verified I'm seeing entity updates.

@Lash-L
Copy link
Contributor

Lash-L commented Sep 26, 2023

It's HACS. It's also been a while since it was last updated. Here's the output I see when I update dacite:

homeassistant:/config# pip install dacite==1.8.0 Collecting dacite==1.8.0 Downloading dacite-1.8.0-py3-none-any.whl (14 kB) Installing collected packages: dacite Attempting uninstall: dacite Found existing installation: dacite 1.6.0 Uninstalling dacite-1.6.0: Successfully uninstalled dacite-1.6.0 Successfully installed dacite-1.8.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

Looks like the dacite update fixed it for me. I now have the Roborock integration working with 2023.9.3 and verified I'm seeing entity updates.

If it is not too much trouble - could you try disabling the govee hacs integration, then performing the update from 2023.9.2 to 2023.9.3 again for me? I would like to confirm that is the root of the issue

@tuley24
Copy link

tuley24 commented Sep 26, 2023

Ok I just did the update with my Govee integration disabled and I can confirm it was the issue for me. I have a working Roborock integration without any dacite update.

@Lash-L
Copy link
Contributor

Lash-L commented Sep 26, 2023

@kernelpanic85 @shuffgy

Do you also have the govee integration?

@kalpik
Copy link

kalpik commented Sep 26, 2023

I have the govee integration as well, and I have the same issue.

@kernelpanic85
Copy link
Contributor

@kernelpanic85 @shuffgy

Do you also have the govee integration?

Yes, I have the Govee HACS integration too

@Coremac
Copy link

Coremac commented Sep 27, 2023

Same Issue and I also have the HASCs Govee integration

@Mr-HaleYa
Copy link

I also have the HASCs Govee integration, same error

@shuffgy
Copy link
Author

shuffgy commented Sep 27, 2023

@kernelpanic85 @shuffgy

Do you also have the govee integration?

Yes i have that too

@garciafabio
Copy link

@Lash-L I don't have the govee integration.

@Lash-L
Copy link
Contributor

Lash-L commented Sep 27, 2023

@Lash-L I don't have the govee integration.

You aren't having the same problem. If you look - your error is completely different. Check out the other issues - there are a few that talk about timeouts, you can post there

@derdustin1987
Copy link

I also have the HASCs Govee integration, same error

@Lash-L
Copy link
Contributor

Lash-L commented Sep 27, 2023

IF you have the HACS Govee integration and you are experiencing this issue:

Go into your file editor, and go to custom components then govee, then edit the manifest requirements to be dacite==1.8.0 instead of dacite==1.6.0

I have created a PR on their library to try to fix this, but I don't have access to their repository so I cannot make changes myself directly

LaggAt/hacs-govee#124

@Lash-L
Copy link
Contributor

Lash-L commented Sep 28, 2023

@derdustin1987 did you follow the steps I stated before? You need to update dacite to 1.8.0. You can do that manually by doing pip install or editing the manifest of govee hacs to be 1.8.0 instead of 1.6.0

@Lash-L
Copy link
Contributor

Lash-L commented Sep 28, 2023

@kalpik please run pip show dacite and give me the results. Then pip uninstall dacite and finally pip install dacite==1.80

Then restart and show me pip show dacite again

@kalpik
Copy link

kalpik commented Sep 28, 2023

Before uninstall:

adf05938f794:/config# pip show dacite
Name: dacite
Version: 1.8.0
Summary: Simple creation of data classes from dictionaries.
Home-page: https://github.com/konradhalas/dacite
Author: Konrad Hałas
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.11/site-packages
Requires:
Required-by: brother, gios, govee-api-laggat, home-assistant-chip-clusters, nettigo-air-monitor, python-matter-server, python-roborock

After uninstall and reinstall:

adf05938f794:/config# pip show dacite
Name: dacite
Version: 1.8.0
Summary: Simple creation of data classes from dictionaries.
Home-page: https://github.com/konradhalas/dacite
Author: Konrad Hałas
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.11/site-packages
Requires:
Required-by: brother, gios, govee-api-laggat, home-assistant-chip-clusters, nettigo-air-monitor, python-matter-server, python-roborock

@Mr-HaleYa
Copy link

Hmm... I modified my govee manifest to 1.8.0 restarted then tried to setup and got the same error as before. Running HassOs on a Intel NUC

@kalpik
Copy link

kalpik commented Sep 28, 2023

Okay, after uninstalling and installing dacite, I was able to set up the integration again at least, but it still says "Failed to set up" under devices.

Logs:

Logger: homeassistant.config_entries
Source: components/roborock/init.py:32
First occurred: 2:57:10 PM (2 occurrences)
Last logged: 2:57:16 PM

Error setting up entry k*****@gmail.com for roborock
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/dacite/types.py", line 22, in extract_origin_collection
return collection.extra
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'types.UnionType' object has no attribute 'extra'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/roborock/init.py", line 32, in async_setup_entry
home_data = await api_client.get_home_data(user_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 701, in get_home_data
return HomeData.from_dict(home_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 89, in from_dict
return from_dict(cls, decamelize_obj(data, ignore_keys), config=Config(cast=[Enum]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 64, in from_dict
value = build_value(type=field_type, data=field_data, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 95, in _build_value
data = build_value_for_union(union=type, data=data, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 113, in _build_value_for_union
return build_value(type=types[0], data=data, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 97, in _build_value
data = build_value_for_collection(collection=type, data=data, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 154, in build_value_for_collection
return data_type(build_value(type=item_type, data=item, config=config) for item in data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 154, in
return data_type(build_value(type=item_type, data=item, config=config) for item in data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 99, in build_value
data = from_dict(data_class=type
, data=data, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 64, in from_dict
value = build_value(type=field_type, data=field_data, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 101, in build_value
if is_subclass(type
, cast_type):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/types.py", line 168, in is_subclass
if is_generic_collection(sub_type):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/types.py", line 147, in is_generic_collection
origin = extract_origin_collection(type
)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/types.py", line 24, in extract_origin_collection
return collection.origin
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'types.UnionType' object has no attribute 'origin'

@Lash-L
Copy link
Contributor

Lash-L commented Sep 28, 2023

@Mr-HaleYa please include your error trace when you are reporting an issue for the first time, just because an error may appear to be the same error, does not mean it is. I need to be able to confirm and have all of the information

@Mr-HaleYa
Copy link

Logger: homeassistant.components.roborock.config_flow
Source: components/roborock/config_flow.py:84
Integration: roborock (documentation, issues)
First occurred: 6:50:58 AM (1 occurrences)
Last logged: 6:50:58 AM

wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value "{'u': 'GjWfNtDIUYOSIIHgoMc7D', 's': '4c3Fcu', 'h': 'rJdsrRCzpR', 'k': '2ukI7pjT', 'r': {'r': 'US', 'a': 'https://api-us.roborock.com', 'm': 'ssl://mqtt-us.roborock.com:8883', 'l': 'https://wood-us.roborock.com'}}" of type "dict"
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/roborock/config_flow.py", line 84, in async_step_code
login_data = await self._client.code_login(code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 650, in code_login
return UserData.from_dict(user_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 89, in from_dict
return from_dict(cls, decamelize_obj(data, ignore_keys), config=Config(cast=[Enum]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 68, in from_dict
if config.check_types and not is_instance(value, field_type):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dacite.exceptions.WrongTypeError: wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value "{'u': 'GjWfNtDIUYOSIIHgoMc7D', 's': '4c3Fcu', 'h': 'rJdsrRCzpR', 'k': '2ukI7pjT', 'r': {'r': 'US', 'a': 'https://api-us.roborock.com', 'm': 'ssl://mqtt-us.roborock.com:8883', 'l': 'https://wood-us.roborock.com'}}" of type "dict"

@Lash-L
Copy link
Contributor

Lash-L commented Sep 28, 2023

@Mr-HaleYa Are you able to do a pip show dacite for me?

@kalpik
Copy link

kalpik commented Sep 28, 2023

@Mr-HaleYa are you also 100% sure you're running the commands inside the docker container, and not just the host OS?

@Mr-HaleYa
Copy link

I never said I was using docker. It's Home Assistant OS on a NUC

@kalpik
Copy link

kalpik commented Sep 28, 2023

I never said I was using docker. It's Home Assistant OS on a NUC

From: https://github.com/home-assistant/operating-system

Home Assistant Operating System uses Docker as Container engine. It by default deploys the Home Assistant Supervisor as a container. Home Assistant Supervisor in turn uses the Docker container engine to control Home Assistant Core and Add-Ons in separate containers.

@Lash-L
Copy link
Contributor

Lash-L commented Sep 28, 2023

@kalpik Okay i'm not 100% sure what is going on with your error. But try the following for me:

Disable govee HACS

pip uninstall python-roborock

Restart

See if it works? Your error is really strange to me

@Lash-L
Copy link
Contributor

Lash-L commented Sep 28, 2023

@home-assistant rename Roborock setup fails due to dependency conflict with Govee HACS causing 'wrong value for rriot'

@home-assistant home-assistant bot changed the title Roborock not working after Core Update Roborock setup fails due to dependency conflict with Govee HACS causing 'wrong value for rriot' Sep 28, 2023
@kalpik
Copy link

kalpik commented Sep 28, 2023

@kalpik Okay i'm not 100% sure what is going on with your error. But try the following for me:

Disable govee HACS

pip uninstall python-roborock

Restart

See if it works? Your error is really strange to me

Yep, this works now. Roborock shows entities. So probably something else is also conflicting with Govee HACS?

@Lash-L
Copy link
Contributor

Lash-L commented Sep 28, 2023

@kalpik Not 100% sure - I think something was just going wrong with the installation of the package, by uninstalling roborock and letting HA install roborock and the version of dacite it wants, it hopefully fixed it. You can try re=enabling govee with the manifest having dacite==1.8.0 and see if it works for you

@kalpik
Copy link

kalpik commented Sep 28, 2023

@kalpik Not 100% sure - I think something was just going wrong with the installation of the package, by uninstalling roborock and letting HA install roborock and the version of dacite it wants, it hopefully fixed it. You can try re=enabling govee with the manifest having dacite==1.8.0 and see if it works for you

Yep, already enabled Govee HACS, and it all works together properly now :) Thanks a lot for your help!

@greendog99
Copy link

@kalpik Not 100% sure - I think something was just going wrong with the installation of the package, by uninstalling roborock and letting HA install roborock and the version of dacite it wants, it hopefully fixed it. You can try re=enabling govee with the manifest having dacite==1.8.0 and see if it works for you

Yep, already enabled Govee HACS, and it all works together properly now :) Thanks a lot for your help!

I had to go through the same thing to get mine working again: Disable Govee, restart HA, re-install Roborock, re-enable Govee.

I had previously tried pip uninstall dacite ; pip install dacite==1.8.0 inside the homeassistant Docker container and restarting but that didn't help.

Thanks for figuring this out!

@Lash-L
Copy link
Contributor

Lash-L commented Sep 28, 2023

I'm going to go ahead and close this ticket because it all seems resolved

@Lash-L
Copy link
Contributor

Lash-L commented Sep 28, 2023

@home-assistant close

@shuffgy
Copy link
Author

shuffgy commented Sep 29, 2023

I know its closed, so please remove this if this is not okay

But as a starter of the issue, my problem is not fixed. I tried disabling the govee hacs and restart, but after inserting the Roborock Verfication Code i still get my error.

wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value "{

docker / pip command is not avaible in the HA-Command Line.

Is there anything i could do? I dont see an option to reinstall the native roborock integration or something like that.

@kalpik
Copy link

kalpik commented Sep 29, 2023

I know its closed, so please remove this if this is not okay

But as a starter of the issue, my problem is not fixed. I tried disabling the govee hacs and restart, but after inserting the Roborock Verfication Code i still get my error.

wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value "{

docker / pip command is not avaible in the HA-Command Line.

Is there anything i could do? I dont see an option to reinstall the native roborock integration or something like that.

pip uninstall python-roborock from inside the HA container, and restart HA.

@Lash-L
Copy link
Contributor

Lash-L commented Sep 29, 2023

If you can't figure out how to pip uninstall - a solution that should probably work is the following:

Completely remove Roborock

Disable Govee

Restart

Readd Roborock

You should now have the right version of dacite.

@shuffgy
Copy link
Author

shuffgy commented Oct 1, 2023

As is wrote, i didnt know how to pip uninstall, and just removing roborck was'nt working for me. (i'm new to homeassistant in general).

But i now learned how to pip uninstall with this community ssh addon and docker exec -it homeassistant bash

Thank you @ all :)

@kalpik
Copy link

kalpik commented Oct 3, 2023

This morning, I again had issues with the roborock integration because of Govee HACS, and I was really annoyed. Found this other govee LAN control HACS integration, and it seems to work really well. Thought of posting here in case it would help others: https://github.com/wez/govee-lan-hass

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

No branches or pull requests