playSound mit Squeezebox

Tags: #<Tag:0x00007fe0570c5500> #<Tag:0x00007fe0570c52d0>

(Mark) #3

@lipp_markus and @frost80 The problem cited above was fixed about a week ago. Also, today a fix went in for the cover art not updating correctly. When build 1198 comes out, it will contain both these fixes. It would be great if you could install that version, then report whether you still are seeing problems.

As for the IP address issue, I haven’t seen that before. Are you saying that the IP address is being changed to in the Squeezebox Server thing configuration?

(lipp_markus) #4

great news, thanks so much; will test and report back

(Mark) #5

@frost80 Concerning the IP address issue…

In Paper UI, under Configuration->System, there’s a panel titled “Network Settings”. If the Primary Address is blank, can you try setting it to this. See if that resolves the problem you’re seeing.

(Michael ) #6

Thanks very much for the quick answers.
Glad to hear that i’m not the only one with these problems and that there will be a fix.

Do i have to install the 2.3 Snapshot of Openhab? Or is it possible to update only the addon?
When it is possible what do i have to do?

The Bug with “Could not get album art data” is in my log too.

@mhilbush Yes, the IP address is being changed to in the Squeezebox Server thing configuration after every restart. My Primary Address is still set to But i tried to change to blank and it is no difference.
I have OpenVPN installed and it makes a lot of troubles in Openhab2, so i stopped that service for a while. I’m not sure, but i think it is the IP-Adress for OpenVPN. No idea why Openhab knows the adress. I can’t choose this IP under “Primary Adress” in Paper UI, only when OpenVPN is started.

(Michael ) #7

I took a look at the OpenVPN IP Address. It is when started.
Then i have no idea where comes from…

(Mark) #8

Can you try setting it to just

(Michael ) #9

no, it is’t possible. i can choose only between blank and
i can’t type anything

(Mark) #10

There’s a way to install a snapshot binding into a release build, but I’ve never done it (I’ve only ever run snapshot builds).

(Michael ) #11

OK, then i will try the snapshot and hope that there are no other bugs…
Thank you very much

(Mark) #12

The current snapshot builds have been pretty stable. :slight_smile:

Wait for build 1198 since it has the artwork fix.

(Michael ) #13

OK. I will install the build 1198 and report…

(Mark) #14

Well, this had me scratching my head…

So, after some digging, I figured out why this is happening. I guess I would describe it as a “feature” of the way the system works.

  • your Squeezebox Server thing has an LMS IP address
  • at startup, when the Squeezebox discovery service finds the LMS, it finds it with address, which is the loopback address (because the LMS is on the same box, it’s reachable on both and
  • the Squeezebox discovery service tries to add the LMS to the inbox
  • the inbox determines that the LMS already exists as a thing
  • the inbox updates the thing with the config from the discovery, which results in the thing now having IP address

I recreated this on my system (I also have the LMS running on the same server as OH). In my case, I set the Squeezebox Server thing to the loopback address. Then I restarted OH and the thing was updated to have the address. Voila!

In short, it’s nothing to worry about. You probably can leave the IP as as long as you’re running LMS and OH on the same box.

(Michael ) #15

Oh, i see. Alright.
Then i know the reason why the squeezebox server and sinks appear in the inbox when i set up things manual in the things folder. I thought i had a mistake in the syntax, so i deleted the SQUEEZE.things file and created things with paper ui.
Same with samsung tv.
Thanks very much for the good statement.

(Michael ) #16

i updated Openhab to build 1198, but it is still the same.
playSound doesn’t work. And with the new build there appears nothing on the display of the squeezebox.

2018-01-28 10:14:57.022 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Restoring player state
2018-01-28 10:14:57.022 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Resuming last item playing
2018-01-28 10:14:57.022 [DEBUG] [ebox.handler.SqueezeBoxServerHandler] - Sending command: 00:04:20:2d:43:e5 playlist index 0
2018-01-28 10:14:57.028 [DEBUG] [ebox.handler.SqueezeBoxServerHandler] - Sending command: 00:04:20:2d:43:e5 time 81
2018-01-28 10:14:57.029 [DEBUG] [ebox.handler.SqueezeBoxServerHandler] - Sending command: 00:04:20:2d:43:e5 mixer volume 25
2018-01-28 10:14:57.029 [WARN ] [ebox.handler.SqueezeBoxPlayerHandler] - Problem during notification playback.
org.openhab.binding.squeezebox.internal.utils.SqueezeBoxTimeoutException: Unable to update volume.
at org.openhab.binding.squeezebox.handler.SqueezeBoxNotificationPlayer.setVolume( ~[?:?]
at org.openhab.binding.squeezebox.handler.SqueezeBoxNotificationPlayer.setupPlayerForNotification( ~[?:?]
at ~[?:?]
at org.openhab.binding.squeezebox.handler.SqueezeBoxPlayerHandler.playNotificationSoundURI( ~[?:?]
at org.openhab.binding.squeezebox.internal.SqueezeBoxAudioSink.process( ~[?:?]
at ~[?:?]
at ~[?:?]
at org.eclipse.smarthome.model.script.actions.Audio.playSound( ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke( ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke( ~[?:?]
at java.lang.reflect.Method.invoke( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._invokeFeature( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeFeature( ~[?:?]
at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.invokeFeature( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.doEvaluate( ~[?:?]
at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.doEvaluate( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._doEvaluate( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.doEvaluate( ~[?:?]
at org.eclipse.smarthome.model.script.interpreter.ScriptInterpreter.doEvaluate( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.internalEvaluate( ~[?:?]
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.evaluate( ~[?:?]
at org.eclipse.smarthome.model.script.runtime.internal.engine.ScriptImpl.execute( ~[?:?]
at org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl.lambda$2( ~[?:?]
at java.util.concurrent.Executors$ [?:?]
at [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201( [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:?]
at java.util.concurrent.ThreadPoolExecutor$ [?:?]
at [?:?]
2018-01-28 10:14:57.728 [DEBUG] [ebox.handler.SqueezeBoxServerHandler] - Sending command: players 0

And instead of “Could not get album art data" there appears every few seconds:

2018-01-28 10:22:07.034 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Failed to download the content of URL
2018-01-28 10:22:07.035 [DEBUG] [ebox.handler.SqueezeBoxPlayerHandler] - Trying to download the content of URL

Items, things and rules are still the same.

The control of every Squeezebox (play, pause power,…) is OK, the things of the squeezebox/server are Online (paper ui).

(Mark) #17

Hmm. Not sure why this is happening.

What’s in the log file prior to the messages shown above? Could you include the entire debug log from the time when the squeezebox starts to process the notification? Please wrap with code fences, as it’s much easier to read.

You have three players, right? I assume you’re getting the same result on all three of your players?

I also assume you’re getting the same result no matter what music source you’re playing?

Have you tried playing a notification when the player is paused.

I see you are on LMS version 7.7.5. I’m not saying that’s a problem, but it is a difference. I think a lot of people (myself included) are running 7.9. There have been over 1700 changes to LMS since 7.7.5.

(Michael ) #18

Update LMS to 7.9 was the trick. Everything works fine now.
I didn’t know that there was a new Version from the LMS out.
Thank you very much. Without your help i never found the error.

Have a nice weekend

(Mark) #19

That’s great. I’m very relieved that that was the issue.

If you haven’t done so already, could you close the issue on github? Thanks!

(Michael ) #20

Yes, maybe there should be a hint in the docs for the Squeezebox binding?
The issue on github is closed.

(Mark) #21

Good idea! I’ll do that in the next update.

(Michael ) #22