I am using the mini media player which has a feature that allows me to sync the volume with all speakers that are in the same group. This works however I do not like using the volume slider. I’m wanting to instead have a volume + and volume - button that controls the volume on only speakers in the group. I’m not concerned with having the volume be ‘synced’ or exactly the same on all speakers but rather just increase or decrease speakers in the group from whatever their current level is.
Creating the button to increase and decrease the volume on one speaker was no problem. I also understand I can use the Universal Media Player integration, the problem with the Universal method is that this setup would be static. My speaker groups change often so I need this functionality to be dynamic.
Any help with this is greatly appreciated. I thought template at first but haven’t been able to find any similar examples that I could use myself. I also thought maybe automation but not sure how to have the action only apply to the speakers in the group.
Not sure if this fits what you need. The way I did a sort of control of groups is by having a hidden card that only shows up when any sonos is playing. Then I can see multiple sonos and control the volume individually. They will also show if the the sonos are not group. It is like a consolidated card.
Hi reyrios! Thanks for the replay. I’m actually doing something very similar in my setup currently. My goal is to get rid of the volume slider as the means to control volume and instead use a button. My issue with the slider is that it’s difficult to make very small adjustments.
Here is a pic with the buttons I have in mind. Currently they only control one speaker. I’m trying to figure out how to get the buttons to control the speakers in the same group as well.
Stopped because an error was encountered at May 27, 2021, 2:29:41 PM (runtime: 0.02 seconds)
Error rendering data template: UndefinedError: 'dict object' has no attribute 'event'
Is there a way to test this line in the development tools?
i am quiet new to home assistant so pls be patient
I am looking for the solution you discussed in this topic.
When i copied the code for automation i get the error “message malformed expected dictionary”. I
For the script it says: Message malformed: extra keys not allowed @ data[‘sonos_set_volume’]
If you allow the automation to call the script with the entire entity_id (instead of stripping away the media_player domain to leave only the entity’s object_id) the templates can be simplified.
I have three speakers and I cant get them to group together. Can you look and tell me what I have wrong? Is the multiroom player a helper? I tried with and without that option.
Hi, I’m getting this error, does anyone know if this is still working?
Logger: homeassistant.helpers.template
Source: helpers/template.py:230
First occurred: May 8, 2023 at 11:54:34 PM (1 occurrences)
Last logged: May 8, 2023 at 11:54:34 PM
Template variable error: ‘dict object’ has no attribute ‘event’ when rendering ‘{{ trigger.event.data.service_data.entity_id }}’