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
888 stars 111 forks source link

The floor tile direction is incorrect in the map for some rooms #635

Closed domialex closed 3 months ago

domialex commented 4 months ago

Describe the bug I'm not sure if it's a bug in this integration or the dreame api, but some of my rooms have their floor tile direction reversed. For example vertical instead of horizontal.

To Reproduce I simply added the integration and set the floor tile directions in the app. I tried to change the setting in the app, save and compare, but the rooms always show the same direction.

Expected behavior The map showing the correct floor tile directions.

Screenshots In home assistant (incorrect): image

In the mobile app (correct): image

Additional Information (please complete the following information)

Tasshack commented 3 months ago

Normally floor tile direction depends to the map rotation. So if you have rotated your map 90 or 270 degrees, floor direction selection also changes but integration may not be handling this right (it was before when I have added the feature). I am going to try to reproduce the issue on my setup.

Tasshack commented 3 months ago

I cannot reproduce the issue on the devices that I have access to (X30 and L20). Both integration and app updates the other one correctly according to the map rotation.

domialex commented 3 months ago

I have the L10s Pro Gen2, the only thing that fixed it was deleting the map and redoing it. All the attributes showed the correct orientation though.