Hello ![]()
I’m developing a widget for the Roborock external integration that displays the vacuum cleaner map (via onWidgetGetImage). The rendering works very well, but I’m hitting a limit of the widget vocabulary: there is no way to make the map interactive.
Today, in a widget, we only have static components (image, value, gauge, status, chart, card-list) + button (limited to 4). The concrete limits:
• the map is a static image: impossible to detect a click on a room;
• no selection component (neither multi-select, nor clickable areas on image);
• no shared selection state between components.
My request: a component allowing to define clickable areas on an image / map (or a dedicated « map » component) with a selection state, relayed to the integration (type onWidgetAction).
Concrete use case (vacuum cleaners): the user selects rooms directly on the map, then « Start » launches the targeted cleaning of these rooms (app_segment_clean). This is exactly the experience of the native Roborock / Dreame apps. It would also be useful for any integration needing a selection on a plan (areas, floors…).
Mockup (generic house) — we keep the existing widget, we only add the selection on the map:
