Valetudo MQTT Payload

Hi,

I´m trying to get my Roborock S5 to use serveral maps, as I live in a 3 storey house and this feature is not supported by Xiaomi.

After checking the vacuum´s swager, I manage to delete and reload maps using these endpoints.

/api/v2/robot/capabilities/MapSnapshotCapability

and api/v2/robot/capabilities/MapResetCapability

The problem is that I don´t know how to build the mqtt message to exploit these endpoints from HA. I’ve been trying different combinations but I’m stuck.

This is the latest version of the command (that doesn’t work)

alias: Valetudo command
sequence:

  • service: mqtt.publish
    data:
    topic: valetudo/rolo/MapSnapshotCapability/set
    payload: “{“action”: “restore”, “id”: “1”}”
    mode: single

Any idea of how to make this work?

Thanks

I think you need to use the REST API for this. I don’t think the MapSnapshotCapability is mapped to an MQTT topic.