This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Add sonos zone into playing source
#1
Hi. 

I want to make a button in visu that triggers a specific zone to be included in the playing source. 
The exact same function that you get if you hold down the PLAY button on a sonos speaker. 

Is this possible to make from a groupadress?
Reply
#2
Hi,

Should be possible, we can add a player to a coordinator, so we could check playing state and then add it.

But i wonder what the system does when you have 2 Sonos playing from a different source, where will the 3th player be added when press and hold the play button? Last activated playing source?

BR,

Erwin
Reply
#3
I think in the Sonos system it steps between the different sources when you keep holding the play button.

How and where do I set this up?
Reply
#4
Hi,

Try this as event based script on a bit object, true will add the specified player to the playing group, false will put it back as stand alone player.


BR,

Erwin
Reply
#5
Nice, thank you! Works perfect Smile
Reply
#6
Hi,

Right now the script discovers devices before using them.

You could make it a bit faster by doing the discovery separately and store the results in storage and use it in this script, downside is that if a IP adress changes then you need to run the discovery again. You could also do a discovery scheduled every hour and when something changes (however this might be rare) it will be discovered within 1 hour.

BR,

Erwin
Reply


Forum Jump: