I have an “issue” in my household, and I would like to solve this major issue with an automation.
We have, everyday Thursday, an cleaning help coming over to do some cleaning.
But she wants to listen to some radio whilst cleaning.
I do ocasionel forget to start the radio, while I’m not at home when she starts.
So I’ve created the automation bellow:
It start’s an radio stream via my Sonos favorites, and starts it on al the speakers I have.
(also sets the volume)
This works just fine, but the streams are not in sync.
It’s as designed in this case.
I’m trying to found out how to create a Sonos speaker group and then stream an radio stream to that specific group.
And that’s where I’m completely stuck.
I did found: Grouping Sonos Speakers
But not sure where to start, and I don’t think this is the right solution for my problem.
You’re on the right track. Use media_player.join to group them together and then call select_source/play_media on one of any of the speakers in the new group. This will use the native grouping features of Sonos and play back in sync across all speakers in the group.
I have a use case and I hope someone maybe have an idea.
Is it possible to add a drop down in the dashboard? I’d like to choose which speakers were used for playing music. It’s possible to create groups but I don’t want to create a group for every use case.
Hi i have try similar automatization playing song over the sonos speaker in goup at time but it doesnt work for me. It works for one speaker, but if i add lines with media_player.join then it doesn’t work.
What im doing wrong?
alias: Playing sonos in group at 18:00
description: ""
trigger:
- platform: time
at: "18:00:00"
condition: []
action:
- service: media_player.volume_set
data:
volume_level: 0.22
target:
device_id:
- 7b8b78f044249c42b0be53c3ea3a3dce
- 0fef6654897077098f93f9b479038027
- service: media_player.join
data:
master: media_player.bathroom
entity_id: media_player.tv_room
- service: media_player.play_media
data:
media_content_id: FV:2/0
media_content_type: favorite_item_id
target:
device_id:
- 7b8b78f044249c42b0be53c3ea3a3dce
mode: single