Squeezebox Sync problems

So for syncing multiple players, I think you should be able to call the sync channel on a player with another player’s mac address, does this not work if you call it multiple times with different macs? Unsyncing is done by sending a blank string to the sync channel on the player you want to unsync. I don’t know why I did that, it should be a separate channel for clarity.

I’m not sure about the volume, I would file that as a bug.

Are you running with debug logging? How is it too chatty?

Ok yes thats working, but it wasn’t really intuitive to me and the handling is different to the openhab 1 binding.
Ok and unsyncing must be done on the other side.
Can you maybe update the wiki for this.
Is there a play channel as well? (or will there be one?)
Are you using the binding for OH 2 in productive environment?
The items are not updated while starting stopping synchronisation (in OH 1 binding as well), is it planned to implement this as well? (otherwise i synchonize it on my own)

Shorty after I wrote the binding I switched to using sonos, so I’m not currently using this on a daily basis. That being said, I don’t mind working on it. I think I copied the OH1 version as much as possible, including the sync command which looked like sync:player-id2 (Add player-id2 to your device for synced playback). How would you like to see the sync functionality working?

The control channel which uses the Player item type is responsible for playing. A player item supports the PlayPauseType.PLAY . I’m not sure there is a Player object yet in the classic UI. I could break out the control group functionality into individual channels (play, pause, ff,rw) as a workaround for now if that would make it more useful?

I would like to use something like:

  • player1 plays
  • sync player2 -> player2 changes play state to play
  • sync player3 -> player3 changes play state to play
  • stop sync player3 -> player3 changes play state to stop/pause
    This is currently not possible, isn’t it?

Is it possible to have a seperate channel for each syncing a player?
Otherwise i have so much rules.

No theres no Player item in OH1, but i can’t use the binding in OH1. I am using OH2 but theres is currently no Player Sitemap. Is it possible to have the control channel and a play channel as well?

Are you using OH2?

The playbackTime is running for players which are not playing

I added a couple new channels: prev , next, playPause, unsync. prev and next are switches that respond to a ON command (like oh1). unsync also responds to a ON command and unsyncs that player. Play/Pause takes a ON for playing, off for pause. There was already a Stop channel. Can you try it out and let me know if this works?

Opps, hit reply to soon! You can find a jar here:

Thanks, i will test it tomorrow.
Can you check this as well please: Playtime is updated for every player, but just one is playing.

So is the play time is increasing even though the player is in a stopped or paused state? I have not seen that before. Can you describe how to reproduce this?

Yes it is.
I have got 3 players.
I just start player one and the other 2 players are (sometimes increasing their playtime).
Here is a part of a log file (just player Bathroom has been started)

2015-12-30 23:52:10.800 [INFO ] [arthome.event.ItemCommandEvent] - Item 'Squeeze_Bedroom_PlayTimeString' received command 00:00:00
2015-12-30 23:52:10.801 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Bedroom_PlayTimeString updated to 00:00:00
2015-12-30 23:52:10.802 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Bedroom_PlayTimeString changed from 00:00:31 to 00:00:00
2015-12-30 23:52:10.856 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Livingroom_PlayTime updated to 0
2015-12-30 23:52:10.857 [INFO ] [smarthome.event.ItemStateEvent] - squeezebox_squeezeboxplayer_4C3C55E9_2F1F_49AF_BA7A_E758848FBC1E_bc5ff418ee1e_currentPlayingT
ime updated to 0
2015-12-30 23:52:10.857 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Livingroom_PlayTime changed from 31 to 0
2015-12-30 23:52:10.858 [INFO ] [s.event.ItemStateChangedEvent ] - squeezebox_squeezeboxplayer_4C3C55E9_2F1F_49AF_BA7A_E758848FBC1E_bc5ff418ee1e_currentPlayingT
ime changed from 31 to 0
2015-12-30 23:52:10.858 [INFO ] [arthome.event.ItemCommandEvent] - Item 'Squeeze_Livingroom_PlayTimeString' received command 00:00:00
2015-12-30 23:52:10.859 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Livingroom_PlayTimeString updated to 00:00:00
2015-12-30 23:52:10.859 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Livingroom_PlayTimeString changed from 00:00:31 to 00:00:00
2015-12-30 23:52:19.452 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Bathroom_PlayTime updated to 41
2015-12-31 09:14:51.098 [INFO ] [arthome.event.ItemCommandEvent] - Item 'Squeeze_Bathroom_PlayTimeString' received command 00:06:31
2015-12-31 09:14:51.099 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Bathroom_PlayTimeString updated to 00:06:31
2015-12-31 09:14:51.100 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Livingroom_PlayTime updated to 391
2015-12-31 09:14:51.102 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Bathroom_PlayTimeString changed from 00:06:30 to 00:06:31
2015-12-31 09:14:51.103 [INFO ] [smarthome.event.ItemStateEvent] - squeezebox_squeezeboxplayer_4C3C55E9_2F1F_49AF_BA7A_E758848FBC1E_bc5ff418ee1e_currentPlayingT
ime updated to 391
2015-12-31 09:14:51.106 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Livingroom_PlayTime changed from 390 to 391
2015-12-31 09:14:51.108 [INFO ] [arthome.event.ItemCommandEvent] - Item 'Squeeze_Livingroom_PlayTimeString' received command 00:06:31
2015-12-31 09:14:51.109 [INFO ] [s.event.ItemStateChangedEvent ] - squeezebox_squeezeboxplayer_4C3C55E9_2F1F_49AF_BA7A_E758848FBC1E_bc5ff418ee1e_currentPlayingT
ime changed from 390 to 391
2015-12-31 09:14:51.111 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Livingroom_PlayTimeString updated to 00:06:31
2015-12-31 09:14:51.112 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Livingroom_PlayTimeString changed from 00:06:30 to 00:06:31
2015-12-31 09:14:52.082 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Bedroom_PlayTime updated to 392
2015-12-31 09:14:52.084 [INFO ] [smarthome.event.ItemStateEvent] - squeezebox_squeezeboxplayer_4C3C55E9_2F1F_49AF_BA7A_E758848FBC1E_24050f30123d_currentPlayingT
ime updated to 392
2015-12-31 09:14:52.086 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Bedroom_PlayTime changed from 391 to 392
2015-12-31 09:14:52.087 [INFO ] [s.event.ItemStateChangedEvent ] - squeezebox_squeezeboxplayer_4C3C55E9_2F1F_49AF_BA7A_E758848FBC1E_24050f30123d_currentPlayingT
ime changed from 391 to 392
2015-12-31 09:14:52.088 [INFO ] [arthome.event.ItemCommandEvent] - Item 'Squeeze_Bedroom_PlayTimeString' received command 00:06:32
2015-12-31 09:14:52.090 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Bedroom_PlayTimeString updated to 00:06:32
2015-12-31 09:14:52.091 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Bedroom_PlayTimeString changed from 00:06:31 to 00:06:32
2015-12-31 09:14:52.093 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Bathroom_PlayTime updated to 392
2015-12-31 09:14:52.095 [INFO ] [smarthome.event.ItemStateEvent] - squeezebox_squeezeboxplayer_4C3C55E9_2F1F_49AF_BA7A_E758848FBC1E_ad13ef800547_currentPlayingT
ime updated to 392
2015-12-31 09:14:52.097 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Bathroom_PlayTime changed from 391 to 392
2015-12-31 09:14:52.098 [INFO ] [s.event.ItemStateChangedEvent ] - squeezebox_squeezeboxplayer_4C3C55E9_2F1F_49AF_BA7A_E758848FBC1E_ad13ef800547_currentPlayingT
ime changed from 391 to 392
2015-12-31 09:14:52.099 [INFO ] [arthome.event.ItemCommandEvent] - Item 'Squeeze_Bathroom_PlayTimeString' received command 00:06:32
2015-12-31 09:14:52.101 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Bathroom_PlayTimeString updated to 00:06:32
2015-12-31 09:14:52.102 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Livingroom_PlayTime updated to 392
2015-12-31 09:14:52.103 [INFO ] [smarthome.event.ItemStateEvent] - squeezebox_squeezeboxplayer_4C3C55E9_2F1F_49AF_BA7A_E758848FBC1E_bc5ff418ee1e_currentPlayingT
ime updated to 392
2015-12-31 09:14:52.106 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Bathroom_PlayTimeString changed from 00:06:31 to 00:06:32
2015-12-31 09:14:52.107 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Livingroom_PlayTime changed from 391 to 392
2015-12-31 09:14:52.108 [INFO ] [s.event.ItemStateChangedEvent ] - squeezebox_squeezeboxplayer_4C3C55E9_2F1F_49AF_BA7A_E758848FBC1E_bc5ff418ee1e_currentPlayingT
ime changed from 391 to 392
2015-12-31 09:14:52.109 [INFO ] [arthome.event.ItemCommandEvent] - Item 'Squeeze_Livingroom_PlayTimeString' received command 00:06:32
2015-12-31 09:14:52.111 [INFO ] [smarthome.event.ItemStateEvent] - Squeeze_Livingroom_PlayTimeString updated to 00:06:32
2015-12-31 09:14:52.111 [INFO ] [s.event.ItemStateChangedEvent ] - Squeeze_Livingroom_PlayTimeString changed from 00:06:31 to 00:06:32

I installed the snapshot, but i got an error and no channels are listed.
When i click on a thing (player) the listing of the channels should be shown, but an error popup is shown “ERROR: 500 - Request failed.”

Hey @digitaldan,
This is just a reminder for this issue.
Would be great if you can find some time for this.

Thanks for the reminder. I’m just finishing another binding, so I’ll have some time to look at it this week. I’ll reach out to you to help test.

Just a quick update, I’m having trouble with the binding in general. I
have not run it in a while and there seems to be some other issues that
need fixing. I’ll hopefully get something out soon!

On Sat, Jan 23, 2016 at 6:00 PM Dan bot@community.openhab.org wrote:

digitaldan https://community.openhab.org/users/digitaldan Dan
https://community.openhab.org/users/digitaldan
January 24

Thanks for the reminder. I’m just finishing another binding, so I’ll have
some time to look at it this week. I’ll reach out to you to help test.

Visit Topic
https://community.openhab.org/t/squeezebox-sync-problems/5421/14 or
reply to this email to respond.

To stop receiving notifications for this particular topic, click here
https://community.openhab.org/t/squeezebox-sync-problems/5421/unsubscribe.
To unsubscribe from these emails, change your user preferences
https://community.openhab.org/my/preferences.


Sent from my mobile.

Can you try out https://github.com/digitaldan/openhab2-addons/releases/download/Squeeze-changes/org.openhab.binding.squeezebox-2.0.0-SNAPSHOT.jar and let me know? Also I had some changes in a forgotten branch that I made back in december to enable play/prev/next without the player widget, I hastily backported these in but have not tried them out, so I need to do some more testing.

It’s currently not possible to test it with openHAB 2.0. I am not getting it to work and with the old version from 31.12. the “500” error still occurs.
With openHAB 2.0 there are a lot of errors with the default bundle. I think i will wait for a stable and well documented 2.0 version.

I’m have some more testing, but I’m planning on getting a PR soon. Things
seem to be working ok with openhab2 master and these changes.

On Mon, Feb 1, 2016 at 1:35 PM Querdenker2k bot@community.openhab.org wrote:

querdenker2k https://community.openhab.org/users/querdenker2k
February 1

It’s currently not possible to test it with openHAB 2.0. I am not getting
it to work and with the old version from 31.12. the “500” error still
occurs.
With openHAB 2.0 there are a lot of errors with the default bundle. I
think i will wait for a stable and well documented 2.0 version.

Visit Topic
https://community.openhab.org/t/squeezebox-sync-problems/5421/17 or
reply to this email to respond.

To stop receiving notifications for this particular topic, click here
https://community.openhab.org/t/squeezebox-sync-problems/5421/unsubscribe.
To unsubscribe from these emails, change your user preferences
https://community.openhab.org/my/preferences


Sent from my mobile.

Ok, with the current snapshot openhab starts without errors. I installed your snapshot (put it into the addons folder). All players are registered, but no things are shown for the players or the server.

Exception in thread "Squeeze Server Listener" java.lang.IllegalStateException: Could not update status, because callback is missing
        at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateStatus(BaseThingHandler.java:308)
        at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateStatus(BaseThingHandler.java:335)
        at org.openhab.binding.squeezebox.handler.SqueezeBoxServerHandler.access$2(SqueezeBoxServerHandler.java:1)
        at org.openhab.binding.squeezebox.handler.SqueezeBoxServerHandler$SqueezeServerListener.run(SqueezeBoxServerHandler.java:355)

This exception occurs.

Hi @digitaldan,
Thanks for the playPause channel, but it’s not updated when the device changes it state. I can send Play/Pause to the squeezebox.
Further on the unsync channel isn’t still working.
If i send a Mac address to the sync channel, the synchronisation starts. But when i send the same Mac address to the unsync channel the synchronisation is still on and the mac address is still inside the sync item.

Greetings,
robert

Hi querdenker2k,

Sync is setup as a String item where you send a MAC address you would like to sync with
Unsyc is setup as an ON/OFF switch, where you need to send ON to unsync the player to whatever it has been synced with.

I just tried this in my OH2 setup and seems to work fine.

cheers

But the playPause channel isn’t still working yet. I can send commands, this works well. But it does not receive events and updates it state.