rand256 / valetudo

Valetudo RE - experimental vacuum software, cloud free
Apache License 2.0
667 stars 73 forks source link

[Question] Command on vacuum/MQTT command to load "Stored Map" automatically? #305

Closed kalyway101 closed 3 years ago

kalyway101 commented 3 years ago

I was going through the issues and searching for a way to save previous maps on my Gen1 vacuum. I saw the experimental multi-map buttons under Settings->Web Interface and enabled them.

These settings work GREAT for storing and loading a previously saved map to the vacuum!! However, I would like to automatically restore a map just in case the power button (start cleaning button) is pressed. Instead of manually doing this via the Web interface every time.

Is there a command that I could execute via SSH or MQTT that loads a previously stored map?

Thank you!

kalyway101 commented 3 years ago

There is an "Auto map restore" function when it returns to the dock, and I can specify what map I would like to use, so if the button is pressed, and it starts a new cleaning, my old one will be restored when it goes back to the dock and zones will still work.

The setting is under Settings->System Settings

rand256 commented 3 years ago

There's MQTT custom command "load_map" as well as you can call "/api/load_map" via HTTP PUT request. Unfortunately both require reading the code to see parameters, since nobody has written the separate docs yet.

kalyway101 commented 3 years ago

That is incredibly useful information. I'm surprised no one has documented ALL the commands yet. Thank you!