Ask for a hint: want to do easy clickable selection to use as target

Hi there,

I just re-worked my Roborock so it works again (it stopped for a while for whatever reason but was not so important to me), but now I made my thoughts also on how to improve my integration so that wifey really sees more value in this over than using the Xiaomi app. I quickly came across the “clean this room” functionality, which is a bit cumbersome doing many clicks in the app but luckily in HA integration, there is the action clean segment which you can feed with room numbers. So I thought simply I create some quick action buttons for it in HA.

Now my idea is as follows:

  • a button for “clean all”
  • individual buttons for each room to mark this room to be included in cleansing
  • a button for “clean selected rooms”
  • probably later on individual room dashboards include a button for “clean this room now”

The first is simple one, the same as the latter. But I think about how to realize the middle two?

For sure I need helpers for like a switch button (if “on” then value X, the room number, is to be included), but then I have to create an array of the room numbers to be fed to the action, e.g. “segments: [1, 2]”.

I actually am a bit worn out of ideas, it´s late, so I though “simply ask”, maybe there are good idead out there :slight_smile:

Basically it is about having as least clicks/taps as possible to do a selection of rooms to be vacuumed and send the vacuum. Simple as that, any other ideas or suggestions to achieve the same are very welcome!

Thanks in advance!

Can’t help with your question, but you DO know there’s a built in integration specifically for Roborock, right?

… which does not work with the Roborock S5 which I have and thus have to use the Xiaomi Home bla integration. It works, that´s not the issue, also the actions work.

My question was more about how to create the buttons to collect the array of rooms and in the end send the vacuum. It´s more related to frontend & helpers than to the integration, that´s why I also chose this category for my post.

Ah, nevermind then. I’ve never used it, but there’s this card via HACS. It might be overkill for you, but it allows both presets as well as individual rooms & it works with the xiaomi_miio integration.

yes, overkill. Basically it is a clone of the mobile app functionality with many dependencies (map extraction, calibration, etc. etc.), whereby I even could live without a map at all - only I want to map the vacuum room numbers (got them all already simply by try) to my real world rooms and create some simple and easy shortcuts to send the device cleaning.

The Roborock integration works with S5 Max at least.

have no max