FR multi-room select
See original GitHub issueviomi.vacuum.v7 and maybe viomi.vacuum.v6 support multi-room cleaning by define rooms count and rooms ids like:
miiocli -d vacuum --ip <ip> --token <toke> raw_command set_mode_withroom [0,1,3,9,10,11]
3rd pram of set_mode_withroom is room_array_len and next are room ids.
It would be great to have feature to select(by longpress) rooms(action icons) and than fire event by start button.
For now alternative is using original Mi Home or have multi input_boolean and some logic to generate set_mode_withroom params
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Alexa Multi-Room Audio - Music and Entertainment
Select Combine Speakers and customize your speaker groups or home theater. Find additional setup instructions here for Multi-room music and Alexa Home Theater....
Read more >How to group multiple Amazon Echo devices for music
Select Devices from the bottom bar; Tap the + in the top right corner; Tap on "Combine speakers" from the menu; For multi-room...
Read more >When trying to set up multi room music, I select one device ...
When trying to set up multi room music, I select one device and the other one says Network Error. Both are on the...
Read more >My Media for Alexa Multiroom Audio Support
Tap the room in which the Alexa you will instruct resides: · Find 'Speakers' and tap 'Change': · Select multiple Speakers you want...
Read more >How to Set Up Multi-Room Music on Your Alexa Speakers
This built-in feature allows you to stereo pair your speakers for ... tap the plus sign icon and select Combine Speakers > Multi-room...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@noorbertt The map color is set in the
configuration.yaml
which I have added to my post above. I’m using the built-in dark theme of Home Assistant.You can easily create your own multi-room setup with a bit of configuration and use the
vacuum-card
only for monitoring or finer control. This is how it looks for me:You can select or deselect each configured room individually. The button state changes to indicate selection. Once ready, you can hit the start button in the top left. The vacuum then starts to clean only those rooms. The map helps you to follow progress. The start button changes state to a stop button. If you click that, cleaning stops and the vacuum returns to the dock. The state of the room buttons is returned to unselected automatically, once the vacuum has docked.
To do this, I have defined toggle helpers for each room and put those into a group:
groups.yaml:
The
input_boolean
themselves are defined in the HA interface under helpers:To render the buttons in Lovelace, I use
custom:button-card
with a bit of templating:The templates go into the Lovelace configuration and look like this:
No worries, this is not needed for the functionality here but I just show it for completeness. The room buttons toggle themselves, but the start button needs some logic with a script and more templating:
Please note that if you hit the start button without any room selected, the whole house gets cleaned. Also note, that the
vacuum.return_to_base
service for me didn’t work during cleaning. It only stopped the vacuum but didn’t return it to base. I first had to stop it, wait a bit and then call the return service. Finally, please note that grouping theinput_boolean
s is important here for the template to work when compiling the list of segments to clean. Themapper
is needed to translate theinput_boolean
into the segment numbers.Finally, I use an automation to reset the
input_boolean
s once the vacuum has returned to its dock. Here, once more the group comes in handy:I hope this helps you guys while we hope for native support by
vacuum-card
.Edit:
For completeness, here is the relevant part from my configuration.yaml: