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

Problems after updating to HA 2023.10 #500

Open
jorblad opened this issue Oct 5, 2023 · 54 comments
Open

Problems after updating to HA 2023.10 #500

jorblad opened this issue Oct 5, 2023 · 54 comments

Comments

@jorblad
Copy link

jorblad commented Oct 5, 2023

Version of the custom_component

1.0.12

What vacuum are you using?

Roborock s6 maxv

Describe the bug

After updating to HA 2023.10 I lost contact to my Roborock in homeassistant. I updated to from 1.0.11 to 1.0.12 to fix that but it didn't change anything other than possibly what logs there are. I also tried to install the main version without success and deleting and re adding the Roborock account in integrations. I also tried reinstalling the integration completely. But after that it instead complains that no devices could be found on my account.

Debug log

Before complete reinstallation


2023-10-05 10:51:01.656 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:01.749 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:01.759 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:01.759 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:01.858 DEBUG (MainThread) [roborock.local_api] [Leif] id=10563 Requesting method get_status with []
2023-10-05 10:51:01.860 DEBUG (MainThread) [roborock.local_api] [Leif] id=24061 Requesting method get_consumable with []
2023-10-05 10:51:01.868 DEBUG (MainThread) [roborock.local_api] [Leif] id=10563 Response from method get_status: {'msg_ver': 2, 'msg_seq': 802, 'state': 8, 'battery': 100, 'clean_time': 458, 'clean_area': 3935000, 'error_code': 0, 'map_present': 1, 'in_cleaning': 0, 'in_returning': 0, 'in_fresh_state': 1, 'lab_status': 3, 'water_box_status': 0, 'fan_power': 106, 'dnd_enabled': 0, 'map_status': 3, 'is_locating': 0, 'lock_status': 0, 'water_box_mode': 204, 'distance_off': 0, 'water_box_carriage_status': 0, 'mop_forbidden_enable': 0, 'camera_status': 3457, 'is_exploring': 0, 'home_sec_status': 0, 'home_sec_enable_password': 0, 'adbumper_status': [0, 0, 0]}
2023-10-05 10:51:01.868 DEBUG (MainThread) [roborock.local_api] [Leif] id=24061 Response from method get_consumable: {'main_brush_work_time': 773464, 'side_brush_work_time': 38961, 'filter_work_time': 514996, 'filter_element_work_time': 590541, 'sensor_dirty_time': 87267}
2023-10-05 10:51:03.014 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:03.015 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.015 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:03.025 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:03.028 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.028 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:03.808 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:03.808 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.808 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:03.809 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:03.810 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.810 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:03.900 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:03.902 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:03.903 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.903 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:03.904 WARNING (MainThread) [roborock.local_api] [Leif] [Errno 104] Connection reset by peer
2023-10-05 10:51:03.904 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.904 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:04.830 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:04.830 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:04.831 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:04.924 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:04.927 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:04.927 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:05.750 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:05.750 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:05.750 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:05.755 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:05.758 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:05.758 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:07.027 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:07.027 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.027 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:07.031 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:07.034 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.034 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:07.901 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:07.902 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.902 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:07.904 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:07.904 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.904 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:07.996 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:07.997 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:07.999 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.999 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:07.999 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.999 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected

After complete reinstallation


2023-10-05 12:41:32.037 ERROR (MainThread) [custom_components.roborock.config_flow] 'types.UnionType' object has no attribute '__origin__'
  File "/config/custom_components/roborock/config_flow.py", line 239, in _pass_login
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 628, in pass_login
  File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 90, in from_dict
2023-10-05 12:41:58.521 ERROR (MainThread) [custom_components.roborock.config_flow] 'types.UnionType' object has no attribute '__origin__'
  File "/config/custom_components/roborock/config_flow.py", line 228, in _code_login
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 660, in code_login
  File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 90, in from_dict
2023-10-05 12:42:02.550 ERROR (MainThread) [custom_components.roborock.config_flow] Invalid code - check your code and try again.
  File "/config/custom_components/roborock/config_flow.py", line 228, in _code_login
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 649, in code_login
    raise RoborockInvalidCode("Invalid code - check your code and try again.")
roborock.exceptions.RoborockInvalidCode: Invalid code - check your code and try again.
2023-10-05 12:43:47.154 ERROR (MainThread) [custom_components.roborock.config_flow] Invalid code - check your code and try again.
  File "/config/custom_components/roborock/config_flow.py", line 228, in _code_login
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 649, in code_login
    raise RoborockInvalidCode("Invalid code - check your code and try again.")
roborock.exceptions.RoborockInvalidCode: Invalid code - check your code and try again.

@kankadev
Copy link

kankadev commented Oct 5, 2023

There's an Roborock update which works now.

@Kesslermeinname
Copy link

There's an Roborock update which works now.

What update? A update of the Custom integration or the device or what? Please be more specific. Thanks!

@Kesslermeinname
Copy link

Version of the custom_component

1.0.12

What vacuum are you using?

Roborock s6 maxv

Describe the bug

After updating to HA 2023.10 I lost contact to my Roborock in homeassistant. I updated to from 1.0.11 to 1.0.12 to fix that but it didn't change anything other than possibly what logs there are. I also tried to install the main version without success and deleting and re adding the Roborock account in integrations. I also tried reinstalling the integration completely. But after that it instead complains that no devices could be found on my account.

Debug log

Before complete reinstallation


2023-10-05 10:51:01.656 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:01.749 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:01.759 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:01.759 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:01.858 DEBUG (MainThread) [roborock.local_api] [Leif] id=10563 Requesting method get_status with []
2023-10-05 10:51:01.860 DEBUG (MainThread) [roborock.local_api] [Leif] id=24061 Requesting method get_consumable with []
2023-10-05 10:51:01.868 DEBUG (MainThread) [roborock.local_api] [Leif] id=10563 Response from method get_status: {'msg_ver': 2, 'msg_seq': 802, 'state': 8, 'battery': 100, 'clean_time': 458, 'clean_area': 3935000, 'error_code': 0, 'map_present': 1, 'in_cleaning': 0, 'in_returning': 0, 'in_fresh_state': 1, 'lab_status': 3, 'water_box_status': 0, 'fan_power': 106, 'dnd_enabled': 0, 'map_status': 3, 'is_locating': 0, 'lock_status': 0, 'water_box_mode': 204, 'distance_off': 0, 'water_box_carriage_status': 0, 'mop_forbidden_enable': 0, 'camera_status': 3457, 'is_exploring': 0, 'home_sec_status': 0, 'home_sec_enable_password': 0, 'adbumper_status': [0, 0, 0]}
2023-10-05 10:51:01.868 DEBUG (MainThread) [roborock.local_api] [Leif] id=24061 Response from method get_consumable: {'main_brush_work_time': 773464, 'side_brush_work_time': 38961, 'filter_work_time': 514996, 'filter_element_work_time': 590541, 'sensor_dirty_time': 87267}
2023-10-05 10:51:03.014 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:03.015 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.015 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:03.025 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:03.028 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.028 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:03.808 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:03.808 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.808 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:03.809 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:03.810 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.810 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:03.900 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:03.902 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:03.903 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.903 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:03.904 WARNING (MainThread) [roborock.local_api] [Leif] [Errno 104] Connection reset by peer
2023-10-05 10:51:03.904 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:03.904 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:04.830 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:04.830 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:04.831 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:04.924 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:04.927 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:04.927 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:05.750 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:05.750 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:05.750 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:05.755 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:05.758 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:05.758 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:07.027 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:07.027 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.027 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:07.031 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:07.034 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.034 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:07.901 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:07.902 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.902 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:07.904 ERROR (MainThread) [roborock.local_api] [Leif] id=1 Timeout after 4 seconds
2023-10-05 10:51:07.904 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.904 DEBUG (MainThread) [roborock.local_api] [Leif] Connecting to 192.168.15.182
2023-10-05 10:51:07.996 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:07.997 INFO (MainThread) [roborock.local_api] [Leif] Connected to 192.168.15.182
2023-10-05 10:51:07.999 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.999 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected
2023-10-05 10:51:07.999 DEBUG (MainThread) [roborock.local_api] [Leif] Disconnecting from 192.168.15.182
2023-10-05 10:51:07.999 INFO (MainThread) [roborock.local_api] [Leif] Roborock client disconnected

After complete reinstallation


2023-10-05 12:41:32.037 ERROR (MainThread) [custom_components.roborock.config_flow] 'types.UnionType' object has no attribute '__origin__'
  File "/config/custom_components/roborock/config_flow.py", line 239, in _pass_login
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 628, in pass_login
  File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 90, in from_dict
2023-10-05 12:41:58.521 ERROR (MainThread) [custom_components.roborock.config_flow] 'types.UnionType' object has no attribute '__origin__'
  File "/config/custom_components/roborock/config_flow.py", line 228, in _code_login
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 660, in code_login
  File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 90, in from_dict
2023-10-05 12:42:02.550 ERROR (MainThread) [custom_components.roborock.config_flow] Invalid code - check your code and try again.
  File "/config/custom_components/roborock/config_flow.py", line 228, in _code_login
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 649, in code_login
    raise RoborockInvalidCode("Invalid code - check your code and try again.")
roborock.exceptions.RoborockInvalidCode: Invalid code - check your code and try again.
2023-10-05 12:43:47.154 ERROR (MainThread) [custom_components.roborock.config_flow] Invalid code - check your code and try again.
  File "/config/custom_components/roborock/config_flow.py", line 228, in _code_login
  File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 649, in code_login
    raise RoborockInvalidCode("Invalid code - check your code and try again.")
roborock.exceptions.RoborockInvalidCode: Invalid code - check your code and try again.

i have the same issue. i have deleted the whole integration and reinstalled anything but still can't setup my S7. After i typed in my authentication code, the prompted says "no device found in your Account".

@antbald
Copy link

antbald commented Oct 5, 2023

yep same problem: no device found.
Updated the integration but still nothing

@M-See
Copy link

M-See commented Oct 5, 2023

I can confirm similar issue with S7 using HAOS.

The .10 update broke many things.. even the energy dashboard/file editor of the core integrations are not workin properly anymore and some other integrations as well. I hope they will hotfix that, as i just downgraded to .9.2 to make it work again. Many issues opened about this update :D. I have never experienced a similarly difficult update in the half year I have been using HA now.

@Kesslermeinname
Copy link

I can confirm similar issue with S7 using HAOS.

The .10 update broke many things.. even the energy dashboard/file editor of the core integrations are not workin properly anymore and some other integrations as well. I hope they will hotfix that, as i just downgraded to .9.2 to make it work again. Many issues opened about this update :D. I have never experienced a similarly difficult update in the half year I have been using HA now.

Same here! I’ve used HA for over 8 months and…this is the worst! (Insert The office meme)

@Laho812
Copy link

Laho812 commented Oct 5, 2023

I had an issue after HA 2023.10 update, but with Roborock Integration version 1.0.11. The update 1.0.12 solved the problem on my system.
I restarted the whole server after 2023.10 update and then pulled the 1.0.12 update. Finally restarted Home Assistant and everything works well.

@JP13090
Copy link

JP13090 commented Oct 5, 2023

I had an issue after HA 2023.10 update, but with Roborock Integration version 1.0.11. The update 1.0.12 solved the problem on my system. I restarted the whole server after 2023.10 update and then pulled the 1.0.12 update. Finally restarted Home Assistant and everything works well.

Agreed. Update to 2023.10, then restart HA (again). That'll pickup the Roborock update in HACS. Install that. Restart HA (again). Back up and running. Thanks!

@oleg-78
Copy link

oleg-78 commented Oct 6, 2023

Same for me. Broken.

@Kesslermeinname
Copy link

I have found a temporary workaround: Downgrade HA back to 2023.9.3 via Terminal, reinstall the Roborock Integration version 1.0.11 and everything is fine again. And then we should wait for a hotfix of HA 2023.10 and the Roborock Integration.

@oleg-78
Copy link

oleg-78 commented Oct 6, 2023

I fixed the problem. I rebooted Home Assistant, entered HACS, after the custom component update appeared. Updated, rebooted and it worked

@Kesslermeinname
Copy link

I fixed the problem. I rebooted Home Assistant, entered HACS, after the custom component update appeared. Updated, rebooted and it worked

That didn’t fixed my problem. That’s why I downgraded anything to a prior version.

@antbald
Copy link

antbald commented Oct 6, 2023

Guys just make your life easier a for now: downgrade to 2023.9.3 and live your life 😂 I was going mad!
When they will fix they will fix.

@Kesslermeinname
Copy link

Guys just make your life easier a for now: downgrade to 2023.9.3 and live your life 😂 I was going mad! When they will fix they will fix.

That’s exactly what I said two posts ago 😂

@antbald
Copy link

antbald commented Oct 6, 2023

You rock man! Thanks 🙏

@xtrmenl
Copy link

xtrmenl commented Oct 6, 2023

update HACS
remove (HACS) integration from devices
restart HA
add integration and login
restart
roborock works again

@ThaRappa
Copy link

ThaRappa commented Oct 6, 2023

update HACS remove (HACS) integration from devices restart HA add integration and login restart roborock works again

I've tried this, but am still hitting an error when trying to validate my account.

`Logger: homeassistant.components.roborock.config_flow
Source: components/roborock/config_flow.py:84
Integration: Roborock (documentation, issues)
First occurred: 8:49:25 AM (1 occurrences)
Last logged: 8:49:25 AM

wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value "{'u': '3jWk3y90Pcv8uDiWnRsUWF', 's': 'kvsOGI', 'h': 'nwYLLMwMgI', 'k': 'c7M3HSjQ', '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 660, in code_login
return UserData.from_dict(user_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 90, 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': '3jWk3y90Pcv8uDiWnRsUWF', 's': 'kvsOGI', 'h': 'nwYLLMwMgI', 'k': 'c7M3HSjQ', '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"
`

@MeisterTR
Copy link

same problem with 2023.10.1

@superpower10
Copy link

superpower10 commented Oct 7, 2023

2023.10
Updated HACS-Integration and rebooted the hole pi. Everything worked again.

2023.10.1
After Updating to this version -> Nothing helps -> Not working:

Logger: homeassistant.config_entries
Source: config_entries.py:399
First occurred: 11:35:56 (1 occurrences)
Last logged: 11:35:56

Error setting up entry Roborock for roborock
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/roborock/init.py", line 44, in async_setup_entry
user_data = UserData.from_dict(data.get("user_data"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 90, 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': 'XXXXXXXXXXXXXXXXXXXXXX', 's': 'Xxxxxx', 'h': 'xxxxxxxxxx', 'k': 'XXXXXXXX', 'r': {'r': 'EU', 'a': 'https://api-eu.roborock.com', 'm': 'ssl://mqtt-eu-2.roborock.com:8883', 'l': 'https://wood-eu.roborock.com'}}" of type "dict"

@MiguelCosta
Copy link

MiguelCosta commented Oct 7, 2023

I have exactly the same problem as @superpower10

2023.10.0 => works with the last HACS integration version

2023.10.1 => it's not working

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/roborock/__init__.py", line 44, in async_setup_entry
    user_data = UserData.from_dict(data.get("user_data"))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 90, 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': 'XXXXXXXXXXXXX', 's': 'j2Mr1T', 'h': 'XXXXXXXX', 'k': 'XXXXXXX', 'r': {'r': 'EU', 'a': 'https://api-eu.roborock.com', 'm': 'ssl://mqtt-eu-4.roborock.com:8883', 'l': 'https://wood-eu.roborock.com'}}" of type "dict"

@jorblad
Copy link
Author

jorblad commented Oct 9, 2023

For me it started working again, I think it was after updating HA to 2023.10.1

@superpower10
Copy link

@jorblad
What did you do to make it working under 2023.10.1?

As I wrote before updating this Integration in HACS after updating 2023.10 it worked again.

But after updating to 2023.10.1 it doesn’t work anymore and I‘m not alone with that.

@jorblad
Copy link
Author

jorblad commented Oct 9, 2023

That is the weird thing, I did a lot of things to try before but now I just updated the integration when I still was running 2023.10.0 and sometime after updating to 2023.10.1 I saw that my automation was working and then I looked at the status and saw that it was working fully again.

@Laho812
Copy link

Laho812 commented Oct 9, 2023

That is the weird thing, I did a lot of things to try before but now I just updated the integration when I still was running 2023.10.0 and sometime after updating to 2023.10.1 I saw that my automation was working and then I looked at the status and saw that it was working fully again.

Have you tried to reboot the whole hardware of your HA host? For me this was the key. Restarting HA or roborock integration wasn't successful (even if it doesn't makes much sense).

@supremelucifer
Copy link

Im still having problems. Restarted, deleted the integration in hacs, restarted, restarted the hardware but still getting the same error in the newest HA

afbeelding

@xtrmenl
Copy link

xtrmenl commented Oct 9, 2023

Im still having problems. Restarted, deleted the integration in hacs, restarted, restarted the hardware but still getting the same error in the newest HA

afbeelding

just checking; roborock and mi home are different accounts
and you cannot add a mihome account to the roborock integration or vice versa
(vacuum can only be added to 1 of the 2 options)

@superpower10
Copy link

That is the weird thing, I did a lot of things to try before but now I just updated the integration when I still was running 2023.10.0 and sometime after updating to 2023.10.1 I saw that my automation was working and then I looked at the status and saw that it was working fully again.

Have you tried to reboot the whole hardware of your HA host? For me this was the key. Restarting HA or roborock integration wasn't successful (even if it doesn't makes much sense).

I did that (see post above). Didn’t help. It helped with 2023.10 but not with 2023.10.1

@supremelucifer
Copy link

supremelucifer commented Oct 9, 2023

Im still having problems. Restarted, deleted the integration in hacs, restarted, restarted the hardware but still getting the same error in the newest HA
afbeelding

just checking; roborock and mi home are different accounts and you cannot add a mihome account to the roborock integration or vice versa (vacuum can only be added to 1 of the 2 options)

Its my Roborock account. I dont have a MiHome account anymore. It worked in the older versions of HA.
afbeelding

@ItsMly
Copy link

ItsMly commented Oct 9, 2023

I have exactly the same problem as @superpower10

2023.10.0 => works with the last HACS integration version

2023.10.1 => it's not working

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/roborock/__init__.py", line 44, in async_setup_entry
    user_data = UserData.from_dict(data.get("user_data"))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 90, 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': 'XXXXXXXXXXXXX', 's': 'j2Mr1T', 'h': 'XXXXXXXX', 'k': 'XXXXXXX', 'r': {'r': 'EU', 'a': 'https://api-eu.roborock.com', 'm': 'ssl://mqtt-eu-4.roborock.com:8883', 'l': 'https://wood-eu.roborock.com'}}" of type "dict"

Same Problem

@Lash-L
Copy link
Collaborator

Lash-L commented Oct 9, 2023

Try downloading the 'main' version of the component and restart and see if that fixes your problem

@ItsMly
Copy link

ItsMly commented Oct 9, 2023

Try downloading the 'main' version of the component and restart and see if that fixes your problem

Didn't fix it, unfortunately

@ernbale
Copy link

ernbale commented Oct 9, 2023

HI. Same problem.
Screenshot 2023-10-09 alle 22 28 11

@supremelucifer
Copy link

Try downloading the 'main' version of the component and restart and see if that fixes your problem

Didnt work for me either :(

@superpower10
Copy link

Any news?

@Kesslermeinname
Copy link

Any news?

Nope. Even the dev is very still…

@M-See
Copy link

M-See commented Oct 11, 2023

I had an issue after HA 2023.10 update, but with Roborock Integration version 1.0.11. The update 1.0.12 solved the problem on my system. I restarted the whole server after 2023.10 update and then pulled the 1.0.12 update. Finally restarted Home Assistant and everything works well.

I tried this solution and it works finally again :)

@bobzer
Copy link

bobzer commented Oct 11, 2023

i don't see the 1.0.12 update from hacs, i'm stuck a 1.0.11

@M-See
Copy link

M-See commented Oct 11, 2023

i don't see the 1.0.12 update from hacs, i'm stuck a 1.0.11

For me, after updating the Core to 2023.10.1, there was the regular update notification in the settings. Before, i also was not able to pull the 1.0.12 update. Good luck

@dnikles
Copy link

dnikles commented Oct 11, 2023

You won't see the latest version, 1.0.12, until you are at least on 2023.10. So you have to upgrade home assistant which will break the integration. Then upgrade the integration. Confirmed working in 2023.10.1 here.

@superpower10
Copy link

I have 2023.10.1 installed and the clicking on the integration it says that I have 1.0.12.

Even after restarting it doesn’t work

@superpower10
Copy link

Updated to 2023.10.2 still the same

@superpower10
Copy link

superpower10 commented Oct 12, 2023

Reading the error message this has nothing to do with rebooting. To my opinion it‘s a type error which is a programming problem. So the developer has to do something:

dacite.exceptions.WrongTypeError: wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value

@Lash-L
Copy link
Collaborator

Lash-L commented Oct 13, 2023

Reading the error message this has nothing to do with rebooting. To my opinion it‘s a type error which is a programming problem. So the developer has to do something:

dacite.exceptions.WrongTypeError: wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value

home-assistant/core#101289

It is not an error on our side. Basically - the version of a library we need is being hard pinned by something else on your system - so you have to manually fix it.

@M-See
Copy link

M-See commented Oct 13, 2023

Reading the error message this has nothing to do with rebooting. To my opinion it‘s a type error which is a programming problem. So the developer has to do something:

dacite.exceptions.WrongTypeError: wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value

I'd propose to backup your system, delete the integration, upgrade to the newest HA core version and to reconfigure the newest version of the integration again (try several things out first) instead of spamming this issue thread, especially if there are many confirmations already for its working functionality..

And dont forget that the devs are doing this volunteerly.. they dont "have to" do things.

@superpower10
Copy link

I am not spamming and by „have to“ I meant that the user is not able to fix this.

And if it‘s only my problem why do others still have the same problem?

@ernbale
Copy link

ernbale commented Oct 13, 2023

I still have the same problem, made a backup, removed the updated Home Assistant 2023.10.2 integration, re-integrated it, it doesn't work.

@ernbale
Copy link

ernbale commented Oct 13, 2023

I did another test, removed integration from HACS restarted, tried Home Assistant integration doesn't work.
Screenshot 2023-10-13 130903

@ernbale
Copy link

ernbale commented Oct 13, 2023

With Home Assistant 2023.10.3 solved for me

@nolesw
Copy link

nolesw commented Oct 13, 2023

For now, reload your HA 9.3 backup, download or redownload Roborock from HACS making SURE to downgrade to Roborock version to 1.0.11. Restart HA. Add Roborock integration. Enter credentials. All good.

@bgou
Copy link

bgou commented Oct 17, 2023

Here's how to fix Roborock dependencies if you're using hassos:

home-assistant/core#101289 (comment)

@Lash-L
Copy link
Collaborator

Lash-L commented Oct 29, 2023

Try the latest main if you are having issues and let me know how that works for you

@Ugzuzg
Copy link

Ugzuzg commented Nov 1, 2023

Upgrading to the latest main made the map work for me.

@bddckr
Copy link

bddckr commented Nov 10, 2023

Same here, switching to main just now made everything work once again. Thank you!

@inertia666
Copy link

inertia666 commented Nov 17, 2023

I am finding it hard to follow what the problem is here and how to fix it.

I am on the November branch of HA and the Dacite version is 1.8.1. I am running the main branch (have tested the default branch as well)

2023-11-17 09:35:37.675 ERROR (MainThread) [custom_components.roborock.config_flow] wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value "{'u': '', 's': '', 'h': '', 'k': '', 'r': {'r': 'EU', 'a': 'https://api-eu.roborock.com', 'm': 'ssl://mqtt-eu.roborock.com:8883', 'l': 'https://wood-eu.roborock.com'}}" of type "dict"
hanew_1  | Traceback (most recent call last):
hanew_1  |   File "/config/custom_components/roborock/config_flow.py", line 228, in _code_login
hanew_1  |     login_data = await self._client.code_login(code)
hanew_1  |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hanew_1  |   File "/usr/local/lib/python3.11/site-packages/roborock/api.py", line 660, in code_login
hanew_1  |     return UserData.from_dict(user_data)
hanew_1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hanew_1  |   File "/usr/local/lib/python3.11/site-packages/roborock/containers.py", line 90, in from_dict
hanew_1  |     return from_dict(cls, decamelize_obj(data, ignore_keys), config=Config(cast=[Enum]))
hanew_1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hanew_1  |   File "/usr/local/lib/python3.11/site-packages/dacite/core.py", line 68, in from_dict
hanew_1  |     if config.check_types and not is_instance(value, field_type):
hanew_1  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hanew_1  | dacite.exceptions.WrongTypeError: wrong value type for field "rriot" - should be "roborock.containers.RRiot | None" instead of value "{'u': '', 's': '', 'h': '', 'k': '', 'r': {'r': 'EU', 'a': 'https://api-eu.roborock.com', 'm': 'ssl://mqtt-eu.roborock.com:8883', 'l': 'https://wood-eu.roborock.com'}}" of type "dict"

Ive removed the strings in the log that might open me up for a security breach.

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