Tasshack / dreame-vacuum

Home Assistant integration for Dreame robot vacuums with map support
https://community.home-assistant.io/t/custom-component-dreame-vacuum
MIT License
898 stars 113 forks source link

Dreame X40 Ultra various functions and the map no longer work #590

Closed o0shojo0o closed 5 months ago

o0shojo0o commented 5 months ago

Describe the bug Suddenly various functions and the map no longer work. There was a firmware update, but I'm not sure if that's the reason.

Expected behavior That the options and map work again

Screenshots image image

Additional Information (please complete the following information)

Logger: custom_components.dreame_vacuum.dreame.map Quelle: custom_components/dreame_vacuum/dreame/map.py:6284 Integration: Dreame Vacuum (Dokumentation, Probleme) Erstmals aufgetreten: 19:25:51 (1 Vorkommnisse) Zuletzt protokolliert: 19:25:51

Map render Failed: Traceback (most recent call last): File "/config/custom_components/dreame_vacuum/dreame/map.py", line 6040, in render_map image = self.render_objects(cached_layers, map_data, robot_status, station_status, image, object_scale) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dreame_vacuum/dreame/map.py", line 6588, in render_objects cached_layers[MapRendererLayer.SEGMENT][k] = self.render_segment( ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dreame_vacuum/dreame/map.py", line 7681, in render_segment self.color_scheme.segment[segment.color_index][1] ~~~~~^^^^^^^^^^^^^^^^^^^^^ TypeError: tuple indices must be integers or slices, not NoneType

Tasshack commented 5 months ago

Is it possible for you to rolback to v2.0.0b14 to make sure this is not related to the latest update?

o0shojo0o commented 5 months ago

The problem is also present with v2.0.0b14

loebi-ch commented 5 months ago

See #591 with a quick hack for the map.

No idea about the various functions...

Tasshack commented 5 months ago

See #591 with a quick hack for the map.

No idea about the various functions...

@o0shojo0o can you confirm this fixes your issue too?

o0shojo0o commented 5 months ago

Yes, it fixed all the problems, but it's strange that it worked before... Or does the latest firmware update of the X40 have something to do with it?

Tasshack commented 5 months ago

Yes, it fixed all the problems, but it's strange that it worked before... Or does the latest firmware update of the X40 have something to do with it?

Yes probably due to a firmware change. I am closing this issue as duplicate of https://github.com/Tasshack/dreame-vacuum/issues/591 since it also contains the fix.