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
867 stars 106 forks source link

service - wrong room on card active #68

Closed ChristophCaina closed 1 year ago

ChristophCaina commented 1 year ago

Describe the bug I've just created some automations yesterday evening to start scheduled cleaning tasks. Today, the automation was triggered - and the vacuum cleaner should clean Room 4 (Segment 4)

When the robot was activated, on the Xiaomi-Card segment 3 was active.

service: dreame_vacuum.vacuum_clean_segment
data:
  segments: 4
target:
  entity_id: vacuum.c_q21

grafik

I am not sure why this happened. I've tried to check the settings for the rooms - the floor (which should be cleaned) is set to 4 - but all settings were disabled when the automation was triggered.

To Reproduce Steps to reproduce the behavior.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional Information (please complete the following information)

Tasshack commented 1 year ago

The number you are seeing on the map room icon is not the segment_id but the cleaning_sequence of the room itself. You need to get the segment_id from the room name entity name. Some settings cannot be changed during active cleaning task (limitation from the robot), you need to stop the vacuum before changing those settings.