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

Current Map sensor error in Dreame 30 Ultra #503

Closed RykovDC closed 5 months ago

RykovDC commented 7 months ago

Describe the bug After buying the L30 Ultra, I started to observe this problem. There is no furniture on the map in the Dreame Home app.

Expected behavior The map must be centered.

Additional Information (please complete the following information)

RykovDC commented 7 months ago

image image

Tasshack commented 7 months ago

For some reason integration thinks that there is a furniture at the minimum coordinates. I will fix this on the next Beta release but you can disable furniture rendering for now by removing the Furnitures from Map Objects configuration option.

RykovDC commented 7 months ago

That's the point, that I don't have furniture set up in the app settings. More precisely, I placed it earlier, but the next day I put everything away.

Tasshack commented 7 months ago

Dreame made too many changes related to the furniure storing and rendering that so far every generation has different rules. The furniture icon that you see in the map supposed to be rendered on very old models that can only detect a furniture but not allow you to edit it. Normally your device should not be returning the coordinates of such object but now I know that it can (or it may be a coding error in the integration). So I need to add a rule for preventing the rendering of 2D furnitures on newer models.

RykovDC commented 7 months ago

I'm glad you understood, we are waiting for a new beta version.

Tasshack commented 7 months ago

Can you enable the info logs, reboot Home Assistant and send me the log output so that I can download your map data and check it myself what has been wrong.

logger:
  default: warn
  logs:
    custom_components.dreame_vacuum: info
RykovDC commented 7 months ago

Did I do everything correctly? home-assistant_dreame_vacuum_2024-04-22T14-17-56.131Z.log

Tasshack commented 7 months ago

Yes, this is very useful for me to solving the issue quickly.

Tasshack commented 7 months ago

And this is the data responsible from the bug.

'funiture_info': [[0, 5, 0, 0, 0, 0, -20475.0, -20475.0, 0.0, 180.0, 0.0, 0.0, 1.0, 0, 0]]

Your map is actually returning a furniture at those coordinates so this is a bug from the device firmware but app does not allow you see those coordinates so no one noticed this.

RykovDC commented 7 months ago

That is, wait for the software update of the robot vacuum cleaner, or is it better to inform the support about this problem yourself?

RykovDC commented 7 months ago

Maybe resetting the device to factory settings can solve the problem?

Tasshack commented 7 months ago

I don't think Dreame will bother to fix a bug that cannot be seen on the App. I wil handle this case in the integration myself.

Tasshack commented 7 months ago

Maybe resetting the device to factory settings can solve the problem?

You don't need to hard reset the whole device just delete the current map and create a new one. You can do this by enabling Multi-Floor map, add new map and remove the old one after.

Tasshack commented 5 months ago

Fixed. https://github.com/Tasshack/dreame-vacuum/releases/tag/v2.0.0b15