Posts: 94
	Threads: 17
	Joined: Jan 2020
	
Reputation: 
2
	 
 
	
	
		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?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1807
	Threads: 7
	Joined: Jul 2015
	
Reputation: 
121
	 
 
	
		
		
		02.08.2020, 20:28 
(This post was last modified: 02.08.2020, 20:31 by Erwin van der Zwart.)
		
	 
	
		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
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 94
	Threads: 17
	Joined: Jan 2020
	
Reputation: 
2
	 
 
	
	
		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?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1807
	Threads: 7
	Joined: Jul 2015
	
Reputation: 
121
	 
 
	
	
		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