you MUST be on 2025.12.1 or later
This allows you to use the core Roborock integration with the Xiaomi Map Card
If you would like to support me, you can do so here:
- Install the Roborock Core Integration and set it up
- It is recommended that you first disable the Image entities within the core integration. Open each image entity, hit the gear icon, then trigger the toggle by enabled.
- Install this integration(See the installing via HACS section below)
- Add this integration through the official integrations panel (
Settings→Devices & Services→Add Integration→Roborock Custom Map) - Re-enable Roborock image entities (this integration will automatically create an additional image per Roborock map with the suffix
_custom) - This integration works by piggybacking off of the Core integration, so the Core integration will do all the data updating to help prevent rate-limits. But that means that the core integration must be setup and loaded first. If you run into any issues, make sure the Roborock integration is loaded first, and then reload this one.
- Setup the map card like normal (using the custom camera image from this integration)! An example configuration would look like
type: custom:xiaomi-vacuum-map-card
vacuum_platform: Roborock
entity: vacuum.s7
map_source:
camera: image.s7_downstairs_custom
calibration_source:
camera: true- You can hit Edit on the card and then Generate Room Configs to allow for cleaning of rooms. It might generate extra keys, so check the yaml and make sure there are no extra 'predefined_sections'
You can now override a Stock Floor Plan with your own Custom Floor Plan (for example a tidied-up or stylized version).
Settings→Devices & Services→Roborock Custom Map→ pressConfigure.- Pick a Floor (only if > 1 available).
- Choose your Floor Plan (PNG, JPEG or WebP); a Live Preview appears as you do so.
- Press
Submit— the Floor Plan applies immediately as-is, with no adjustments. - On the next view, optionally adjust the horizontal/vertical offset/scale of the Custom Floor Plan, or the relative rotation of the Physical Walls. The Physical Walls are imposed over the Custom Floor Plan for your convenience. The Live Preview refreshes in near-real-time.
- Press
Submitonce more — to keep the adjustments, or simply pressX— to keep the Floor Plan as-is.
Reopen Configure at any time to Adjust, Replace, or Remove the Custom Floor Plan.
or
- Go to HACS->Integrations
- Add this repo(https://github.com/Lash-L/RoborockCustomMap) into your HACS custom repositories
- Search for Roborock Custom Map and Download it
- Restart your HomeAssistant
- Go to Settings->Devices & Services
- Add the Roborock Custom Map integration
Once you set up this integration, you can generate a static config in the lovelace card, and theoretically, you should be able to use that code with your Roborock CORE integration. However, it wont stay up to date if the map calibrations change significantly, or rooms change. So I'd only do this when I was sure everything was good!