dreame-vacuum: Dreame Vacuum integration crash the home assistant core 2024.04

Core 2024.4.1 Supervisor 2024.03.1 Operating System 12.1

Dreame Vacuum v2.0.0b13

After the update, the HA integration crashed at the start of the cleaning process. I tried removing and adding the integration again, but the device still didn’t work. I disabled all relevant automations and templates, but that didn’t solve the problem either.

`2024-04-08 11:29:10.613 WARNING (SyncWorker_15) [custom_components.dreame_vacuum] Waiting render complete 2024-04-08 11:29:10.619 WARNING (SyncWorker_49) [custom_components.dreame_vacuum] Waiting render complete 2024-04-08 11:29:10.624 WARNING (SyncWorker_15) [custom_components.dreame_vacuum] Waiting render complete 2024-04-08 11:29:24.677 WARNING (Thread-1694) [custom_components.dreame_vacuum.dreame.map] Map update Failed: Traceback (most recent call last): File “/config/custom_components/dreame_vacuum/dreame/map.py”, line 1236, in update if not self._request_map_from_cloud(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/dreame_vacuum/dreame/map.py”, line 272, in _request_map_from_cloud self._add_cloud_map_data(partial_map_data, object_name, object_name_timestamp) File “/config/custom_components/dreame_vacuum/dreame/map.py”, line 655, in _add_cloud_map_data return self._add_map_data(partial_map) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/dreame_vacuum/dreame/map.py”, line 965, in _add_map_data self._add_next_map_data() File “/config/custom_components/dreame_vacuum/dreame/map.py”, line 972, in _add_next_map_data self._add_map_data(next_partial_map) File “/config/custom_components/dreame_vacuum/dreame/map.py”, line 781, in _add_map_data map_data = DreameVacuumMapDecoder.decode_p_map_data_from_partial( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/config/custom_components/dreame_vacuum/dreame/map.py”, line 3660, in decode_p_map_data_from_partial data[(combined_dimensions.width * (top_offset + y)) + left_offset + x] = current_map_data.data[ ^^^^^^^^^^^^^^^^^^^^^^ IndexError: index out of range

2024-04-08 11:29:24.677 ERROR (Thread-1694) [custom_components.dreame_vacuum] Error requesting dreame_vacuum data: index out of range`

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (9 by maintainers)

Most upvoted comments

Ok I have fixed the issue according to the HA issue. I will release a new version soon. You can close the other issue since it is not related to the HA Core.

I ended up needing to disable the integration completely in order to update to 2024.5.0. If I try to enable it on 2024.5.0, Home Assistant Core crashes.