Squeezebox Sync/unSync Issue

520 views
Skip to first unread message

jon...@gmail.com

unread,
Oct 20, 2014, 4:32:39 PM10/20/14
to ope...@googlegroups.com
Hey Gang,
I've been playing around with openHAB for a couple of weeks now, and I have it doing some really cool stuff. Thanks for the hard work!

I have Squeezebox binding working really well, but I seem to have a little problem with the Squeezebox Sync/unSync feature. I am trying to create a simple On/Off Switch to Sync/unSync two players. The sync works, but the unSync does not.

My default.items file includes the following line:
Switch Squeeze_Sync_BOX1_BOX2 "Sync Box1 and Box2" { squeeze="BOX1:sync:BOX2" }

When music is playing on Box1 and the Switch is turned On, music starts playing on BOTH Box1 and Box2 as expected. When the Switch is turned Off, music stops playing on Box1 and continues playing on Box2. My desired (and expected?) behavior is that the music would continue playing on Box1 and would stop on Box2.  

Am I missing something? :)

Browsing the source at 

I see that the SYNC command should support this behavior, but I can't seem to dig any deeper into the source to verify or troubleshoot.

Any insight or assistance would be greatly appreciated!

Thanks - Jonesie

jon...@gmail.com

unread,
Oct 27, 2014, 12:43:51 PM10/27/14
to ope...@googlegroups.com
Any help anyone could provide on this would be helpful.

Thanks!

Daniel Whittred

unread,
Nov 6, 2014, 10:45:45 PM11/6/14
to ope...@googlegroups.com
Hi David,

This is something i am interested in as well!

I have set up something a bit different. In my setup i use a softsqueeze client on my server that doesnt actually connect to any real speakers. I use this client as my Sync-Stream, so to speak -- with the idea being able to sync various other players (bedroom/lounge/kitchen clients) to this Sync-Stream. 

I have had troubles getting the SYNC command to support multiple players, but I haven't delved deeply into it yet. From memory, if you look into the Logitech Media Server CLI help page, it lists a couple of methods. I will play with it over the weekend and see if I can discover more. 

<extract from LMS CLI help page>

<playerid> sync <playerindex|playerid|-|?>

The "sync" command specifies the player to synchronise with the given playerid. The command accepts only one playerindex or playerid. To unsync the player, use the "-" parameter. 
Note that in both cases the first <playerid> is the player which is already a member of a sync group. When adding a player to a sync group, the second specified player will be added to the group which includes the first player, if necessary first removing the second player from its existing sync-group. 
You may query which players are already synced with this player by passing in a "?" parameter. Multiple playerids are separated by a comma. If the player is not synced, "-" is returned.

Examples:

Request: "04:20:00:12:23:45 sync 1<LF>" 
Response: "04:20:00:12:23:45 sync 1<LF>"

Request: "04:20:00:12:23:45 sync ?<LF>" 
Response: "04:20:00:12:23:45 sync 04:20:00:12:23:21<LF>"

Request: "04:20:00:12:23:45 sync -<LF>" 
Response: "04:20:00:12:23:45 sync -<LF>"


syncgroups ?

The "syncgroups" query returns a comma separated list of sync groups members (IDs and names).

Examples:

Request: "syncgroups ?<LF>" 
Response: "syncgroups sync_members:04:20:00:12:23:45,04:20:00:12:34:56 sync_member_names:Living%20Room,Kitchen<LF>"


I think perhaps, we might need to implement the syncgroups function into the squeeze binding.


Regards,
Daniel 

David Jones

unread,
Nov 11, 2014, 7:55:46 AM11/11/14
to ope...@googlegroups.com
Hey Daniel,
Thanks for the help. I'm actually using SqueezeLite running on a few Raspberry Pi boxes, and a couple of Windows 7 computers. I've been testing in my home office where my wife and I both have a Windows 7 computer running SqueezeLite. I've been using this setup for about a year now without any problem. 

Syncing players in the LMS interface works as expected. It's the OpenHAB implementation that I'm fighting with. If I have musinc playing on my computer, then sync my wife's computer via OpenHAB, it starts playing, as expected. When I choose to break the sync, or remove my wife's computer from the sync, the music stops on my computer and continues on hers. Seems odd.

Thanks - David

Daniel Whittred

unread,
Nov 16, 2014, 10:06:21 PM11/16/14
to ope...@googlegroups.com
I agree David -- the LMS syncing seems to be rock solid. but when performing the sync/unsync function on through OpenHAB, it doesnt perform as expected.

-dan

Daniel Whittred

unread,
Nov 23, 2014, 10:00:18 PM11/23/14
to ope...@googlegroups.com
Hi All,

I saw this in the release notes for 1.6:

Squeezebox Binding: Sync "remove" players incorrect#1462


-dan
Reply all
Reply to author
Forward
0 new messages