@JDogg016 - I could really use your help. I am struggling with Sonos and Hubitat. When I group speakers in the Sonos app, they seem to ungroup when I play an announcement through RM.
The other thing that happens is that sometimes after playing the announcements, they will continue playing the music (or radio station they were playing previously. While other times this doesn't happen.
Hubitat also doesn't provide any way to play my favorites on Sonos, so I took your advice and installed node-sonos-http-api. I can get all the basic commands to work on each of my two Sonos speakers individually, but I am completely lost on how to group them.
Could you please tell me how to modify my settings.json so I can control both speakers with a single http command, so music plays synchronously on both.
When you use an app (rm?) to ‘speak’ to the speakers.. only configure it for the ‘master’ of the group.
If you select more than 1 speaker, it will split the group.
I have had my group stay together for a number of months now by only sending tts to one of the group.
Sorry. Auto correct. I meant are you using the Sonos API. I don’t recall doing Anything withRespect to the config.json file.
So I have a rule that triggers after certain events that use my kitchen Sonos. The point of the rule is to regroup two speakers in Sonos by sending the following command:
http://[IP Address of Sonos API Server:5005]/Kitchen%20Overhead/join/Kitchen%20TV%20Speaker
Thanks a lot - I got this figured out with your help. First off, I've stopped sending commands to both of my Sonos. Second, after I start playing something on one, I can "join" the other if necessary.
It would still be a better solution to create the ability to create a group in HE instead of yet another connected device. I had a thought about how to actually create a rule to use Sonos groups I have created in Alexa but so far none of my IFTTT tricks has worked!
Are you trying to speak on ALL Sonos players? The node-sonos-api also offers the "sayall" endpoint and uses it's internal TTS. It will join all the players to a group and restore the original state after the TTS was spoken.
Just an alternative.
I haven't used the presets.json, but I'll take a look at the documentation
This joined the two players that I have specified there. I am sure you can also put that JSON into a preset file and call it by name. This made my Office speaker the master. Basically the first one will become the master
My thought is that I could probably remove the Sonos app from HE if I can get a few of these things down. I'm trying to use the preset to group the speakers and then play a news feed from radio.com. I think I'm about ½ way there. I created a preset called news.json:
I have not observed that but I only open the Sonos app to make favorites.
I use my MagicCube to control my Sonos and play/stop my favorite stations and control volume
I finally removed the Sonos App from HE. Now I have a virtual button which sends an HTTP GET http://IP_address:5005/pauseall and that stops things. I'm really loving the Node API solution. Well done.