I’m using the dreame-vacuum integration with my Mova P50 Pro Ultra, and it generally works very well.
However, I sometimes have issues with the map becoming corrupted, probably due to dust on the sensors or reflections in the apartment.
Since the vacuum supports map backup and restore, I wanted to automate this through Home Assistant.
In the Dreame app I can choose between three states when restoring a map: Original, Edited, Backup
In Home Assistant there is the action vacuum_restore_map, where you have to specify index and ID.
The index is 1, but I have no idea where I can get the correct ID from.
If I leave the ID empty, the vacuum restores the Original map — but that is not the most recent backup I want to use.
In the “saved map” entity I found the following attributes, but the numbers inside do not work as IDs:
Does anyone know how to correctly obtain the map ID for the vacuum_restore_map service so that I can restore the Backup or Edited map instead of always restoring the Original one?
Map recovery does not use IDs for selecting maps because those are not static and always changes because of that you need to specify the map index which is order of the map from oldest to newest.
Index 1 = Original
Index 2 = Edited
Index 3 = Edited or Backup
Index 4 = Backup
Thank you for quick response. This works.
For the recent backup map I use the Index=3.
In case of multiple maps it restores always the current selected one, right?
Restoring a non selected map causes it to be selected after restore by the device so there is no advantage of doing that, instead you can set selected map to you want to restore first using a script to not to deal with any map ids that are constantly changing.