I have a Roborock vacuum integrated using the built in HA integration. I also have rooms setup and they are working correctly.
I would like to make it so that, in my dashboard, I can select multiple rooms using input booleans, and then have one main vacuum button to trigger the vacuuming.
The documentation for the integration gives this example:
Could you just copy the service call from you lovelace GUI and roll that into a custom button card for ease of setup? Then you can execute specific vac modes also and assosciated buttons.
Im not great at this but thats what I have done for what sounds like you have described.
This is a script doing both rooms in one’action’ and is actioned by a button which is place in dashboard. I usually just trigger this script with a voice command or when I drop out of wifi.
Is this what you mean?
alias: vac kitchen and bath
sequence:
- service: xiaomi_miio.vacuum_clean_segment
target:
entity_id: vacuum.cleanopatra
data:
segments: 16 17
mode: single
Sort of, but that is hardcoded to do those rooms? I want to make it dynamic so sometimes I want to vacuum room 16 and 18, another time 16 and 21. I was hoping a if template could help me do that, but it might not be possible.
That script is hardcoded to do those rooms, yes?
You can create several of your normal combinations in scripts to do this?
are you using the miio integration?
If you have several zones/rooms. Might be better just using the map and clicking where you want to vacuum from your dashboard and vacuum away? Providing you are using miio and map extractor?
This is another much more exhaustive but clever option: