Button to join speaker to current playing Media Player

Hi All,
I’m looking to add some buttons to my dashboard which allow me to effectively turn on/off the current playing media player. I’ve tried to figure it out myself, but i’m kinda new with HA.

I thought this would be easier then creating endless groups for all combinations of speakers.

Has anyone had any luck with something like this?

Thanks

Hi, welcome to the forum!

Can you share what you have already?
Please don’t post an image but the yaml code and use the ‘</>’ button in this window when replying.

Well honestly, I don’t have any YAML. I was trying to get it done through some of the existing cards I’ve got installed, but no success there.
I’m really new to this, and haven’t really figured out how to start with the YAML code. I’m trying to learn with what I find on the internet :frowning:

Apologies if it is a very blank post.

It’s very easy though.

  • edit your dashboard
  • add a card and ie select ‘Button card’
  • choose the media player which you want to control
  • additionally you can change the settings of the card

ét voilà!

Hi Nick,
Thanks for your quick reply. However, that is not what I was looking for.
I was hoping that, say I have some music playing in the living room (media_player.living) I could press a button on the Kitchen speaker (media_player.kitchen), and it would group those speakers and play the same thing.
FYI, they are both sonos speakers.

This is what you asked though…
Have you seen this: Sonos - Home Assistant

Yes now that I’m reading it again I do see it was a bad question.
I’ll dive into the Sonos Integration and how it joins systems.
Thanks