Starting squeezebox synced

Tags: #<Tag:0x00007efebfae7a80>

Hello

I use openhab and the squeezebox binding for a long time. But I still do not manage to start a stream and sync all my Squeezeboxes at the same time.The do not start in sync. This are the scripts I use at the moment:

rule "squeezebox srf3"
when
	Item Button_SRF3 changed to ON
then
	callScript("powerAllSqueezebox")
	sendCommand(Squeezebox_Kuche_Stream, "http://stream.srg-ssr.ch/drs3/mp3_128.m3u")
	sendCommand(Squeezebox_Kuche_Player,PLAY)
	callScript("syncSqueezebox")
end

powerAllSqueezebox.script

sendCommand(Squeezebox_Kuche_Power,ON)
sendCommand(Squeezebox_Dusche_Power,ON)
sendCommand(Squeezebox_Bad_Power,ON)
sendCommand(Squeezebox_Schlafzimmer_Power,ON)
sendCommand(Squeezebox_Boom_Power,ON)

syncSqueezebox.script

sendCommand ( Squeezebox_Kuche_Sync , "00:04:20:2b:b7:56") 
sendCommand ( Squeezebox_Kuche_Sync , "00:04:20:26:2b:8c") 
sendCommand ( Squeezebox_Kuche_Sync , "00:04:20:22:0c:99")
sendCommand ( Squeezebox_Kuche_Sync , "00:04:20:1e:dc:12")

What should I do to make them all start the stream in sync?

Regards Kenny

Afaik you have to send the sync command to the Squeezebox which shall be in sync with the other, so the script should be

      Squeezebox_Dusche_Sync.sendCommand("00:04:20:2b:b7:56")
         Squeezebox_Bad_Sync.sendCommand("00:04:20:2b:b7:56")
Squeezebox_Schlafzimmer_Sync.sendCommand("00:04:20:2b:b7:56")
        Squeezebox_Boom_Sync.sendCommand("00:04:20:2b:b7:56")

(The MAC has to be the one of Squeezebox_Kuche…)

I also suspect that you should be able to sync the players before starting playback, at least you can do that outside of OpenHAB.