Problems with configuration - Squeezebox-Binding

When i was at home yesterday, i tried the new rule.

The DLF-News-Strem was starting (the mp3-stream is 3-4 minutes), but after about 10 seconds, the music, which was played before, started…

Is there something i can configure?

Hi, i want to recover my old thread.

I wanted to play some different radio stations. If i save the stations inside plex and then play the favourites inside openhab-squeeze-binding, it works.

But when i send a url with playstream, then it plays the new radio station only for about 10 seconds.

Any idea?

Can you turn on debug logging and post what is logged?

Also, what happens if you send the url to an item linked to the stream channel?

Currently i´m not at home. But i did some further investigations:

When i send the comand to playstream, then i get “Notification” in my Remote-Tile-item. When the 10 seconds are over and it is switching back, i can see “Antenne Bayern …” in my item, this is the favourite 1 and it was played before, when i send a the new comand to playstream.

So why is there not the radio station name showed in the play remote title item?

Here is the log:

2019-06-27 13:22:49.276 [DEBUG] [eezebox.internal.SqueezeBoxAudioSink] - Processing audioStream http://mp3channels.webradio.antenne.de/coffee of format AudioFormat [codec=MP3, container=NONE, bigEndian=false, bitDepth=16, ]

2019-06-27 13:22:49.276 [DEBUG] [rnal.handler.SqueezeBoxPlayerHandler] - Play notification sound on player b8:27:eb:37:d5:cf at URI http://mp3channels.webradio.antenne.de/coffee

2019-06-27 13:22:49.277 [DEBUG] [ternal.handler.SqueezeBoxPlayerState] - Cur State: vol=0, mut=NOT MUTED, pwr=ON, stp=NOT STOPPED, ctl=PLAYING, shf=OFF, rpt=PLAYLIST, tix=0, tnm=1, tim=355

2019-06-27 13:22:49.277 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Setting up player for notification

2019-06-27 13:22:49.277 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Turning off repeat

2019-06-27 13:22:49.277 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:37:d5:cf playlist repeat 0

2019-06-27 13:22:49.281 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:37:d5:cf stop

2019-06-27 13:22:49.282 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Adding notification message to playlist

2019-06-27 13:22:49.283 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:37:d5:cf playlist add http://mp3channels.webradio.antenne.de/coffee Notification

2019-06-27 13:22:49.684 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Playlist updated

2019-06-27 13:22:49.684 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Playing notification

2019-06-27 13:22:49.684 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:37:d5:cf playlist index 1

2019-06-27 13:23:09.909 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Notification message timed out after 20 seconds

2019-06-27 13:23:09.909 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Restoring player state

2019-06-27 13:23:09.910 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:37:d5:cf mixer volume 0

2019-06-27 13:23:09.910 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Removing notification message from playlist

2019-06-27 13:23:09.910 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:37:d5:cf playlist delete 1

2019-06-27 13:23:12.513 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Playlist updated

2019-06-27 13:23:12.513 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:37:d5:cf playlist index 0

2019-06-27 13:23:12.513 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:37:d5:cf time 355

2019-06-27 13:23:12.513 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Resuming last item playing

2019-06-27 13:23:12.514 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:37:d5:cf mixer volume 0

2019-06-27 13:23:12.514 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Restoring repeat mode

2019-06-27 13:23:12.514 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:37:d5:cf playlist repeat 2

2019-06-27 13:23:12.514 [DEBUG] [rnal.handler.SqueezeBoxPlayerHandler] - SqueezeBoxTimeoutException during notification: Notification message timed out

What’s the default notification timeout in the player thing? It seems like playStream is using the audiosink notification stuff to play the url. I’ve never used playStream before, so I’m not very familiar with how it’s handled internally.

That’s why I asked about what happens is you try using an item linked to the stream channel. Basically do a StreamItem.sendCommand("http://stream/url").

Ok, so it looks like playstream is using the audiosink notification stuff. It looks like the timeout is 20 seconds, not 10. So I would expect it to stop playing after 20 seconds, then return to whatever was playing prior to the playStream.

Can you try sending the url to an item linked to the player’s stream channel?

Maybe it is 20 seconds, i didn´t measure the time exactly…

This is in my current rule:

playStream("squeezebox:squeezeboxplayer:B2C02C4C-9107-4CC8-B2F3-D16387AE9904:b827eb37d5cf", "http://www.antenne.de/webradio/channels/coffee.m3u")

Will try your suggestion…

This is in my new rule:

Squeezeplayer_EG_WC_stream.sendCommand("http://www.antenne.de/webradio/channels/coffee.m3u")

Thanks. Let me know how that works out. In the meantime, I’ll take a closer look at how playStream works.

Seems to work now for longer time…

See my new code in my previous post.

Now i see the radio station-name in my remote-title item.

Thanks, now i can work with this.


Is there any difference if i save the url of the radio station as favourite inside plex (and play favourite 1 for example) or play the stream directly inside openhab with the new comand?

1 Like

I’m not familiar with plex. Is it the same thing as the Logitech Media Server (LMS)? If so, I don’t think there’s any difference. I think it ends up in the same bit of squeezebox server code where it issues a playlist play command to the LMS.

Sorry, not plex. I wanted to say LMS…

I have installed plex too, but only for my kitchen radio, because the functionality is better for genuine network music players.