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

Custom Clean Targeting Wrong Room #641

Closed saucedge closed 4 months ago

saucedge commented 4 months ago

Describe the bug When triggering a Custom Clean via the custom:xiaomi-vacuum-map-card, the robot is sent to the wrong room. When I select a room with entity_id: select.dusty_room_7_name and push start. The robot starts cleaning in room with entity_id: select.dusty_room_9_name. The log shows: 2024-07-19 09:03:31.056 INFO (SyncWorker_47) [custom_components.dreame_vacuum.dreame.device] Send action START_CUSTOM [{'piid': 1, 'value': 18}, {'piid': 10, 'value': '{"selects":[[9,1,1,2,1]]}'}] I assume the '9' in the service above corresponds to room 9 which is the wrong room being triggered. After the cleaning starts, the map card properly shows the "wrong" room in which the robot is cleaning as active. The same mismatch occurs when triggered from 2 different phones and my desktop. When triggered through the Dreame app, everything works perfectly. Not all rooms are misbehaving. Reloading Resources does not stop the issue.

To Reproduce Open the vacuum map card and toggle to Rooms cleaning mode. Select a room with entity_id: select.dusty_room_7_name and push start. The robot starts cleaning in room with entity_id: select.dusty_room_9_name.

Expected behavior The room selections should trigger the proper room

Screenshots Selecting: image

Cleaning: image

Additional Information (please complete the following information)

Thanks for the awesome integration!

Tasshack commented 4 months ago
  1. Remove the card from your dashboard completely
  2. Press ADD CARD and select xiaomi map card
  3. Select your vacuum entity
  4. Select your current map entity
  5. Select Tasshack/dreame_vacuum as platform
  6. Press GENERATE ROOMS CONFIG from bottom of the card configuration window
  7. Save the card
  8. Try again

More info https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/discussions/317

saucedge commented 4 months ago

That worked--thanks!