Playsound rule squeezer not really work


Hello everybody

I do not know any longer have openhab2.5.0 snapshot on ubuntu on the same system squeezer server. I wanted to test playsound via a test rule. Volume is raised to the value as indicated, but no tone. The file comes directly from the directory etc / openhab2 / sounds. Regarding process and function see gif. I hope you can help me.

Welcome to the openHAB community :heart:

First of all, please keep your posting in english, so everyone can understand what its about.

Sorry :slight_smile:

It would help if you would post your rule where this is happening.


Sorry this is a test rule

rule "brand fitness Notification" 
    Item DIMMAKTOR1_HobbyUGG2 changed to ON
   // DIMMAKTOR1_HobbyUG.sendCommand(ON)
    playSound("squeezebox:squeezeboxplayer:184e3919:b827eb13cbf6", "brand_erkannt_text.mp3", new PercentType(50))

Does the brand_erkannt_text.mp3 have the right permissions?
The default sounds have these permissions.

-rw-rwxr--+  1 openhab openhab 8.6K Dec 17  2018 barking.mp3
-rw-rwxr--+  1 openhab openhab 100K Dec 17  2018 doorbell.mp3

Out of desperation, I put everything on chmod 777
Also the directory sounds

Can you put the squeezebox binding in debug mode, then post the debug log from when you execute the rule?

Hey thanks for all,

Here is the debug log

openhab> tail -f -n 20 /var/log/openhab2/openhab.log                      2019-10-08 15:37:13.478 [DEBUG] [ternal.handler.SqueezeBoxPlayerState] - Cur State: vol=0, mut=NOT MUTED, pwr=ON, stp=STOPPED, ctl=PAUSED, shf=OFF, rpt=OFF, tix=0, tnm=1, tim=0
2019-10-08 15:37:13.481 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Setting up player for notification
2019-10-08 15:37:13.483 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:13:cb:f6 mixer volume 50
2019-10-08 15:37:13.497 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Adding notification message to playlist
2019-10-08 15:37:13.505 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:13:cb:f6 playlist add Notification
2019-10-08 15:37:13.916 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Playlist updated
2019-10-08 15:37:13.917 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Playing notification
2019-10-08 15:37:13.918 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:13:cb:f6 playlist index 1
2019-10-08 15:37:34.178 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Notification message timed out after 20 seconds
2019-10-08 15:37:34.180 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Restoring player state
2019-10-08 15:37:34.182 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:13:cb:f6 mixer volume 0
2019-10-08 15:37:34.193 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Removing notification message from playlist
2019-10-08 15:37:34.195 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:13:cb:f6 playlist delete 1
2019-10-08 15:37:34.599 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Playlist updated
2019-10-08 15:37:34.601 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:13:cb:f6 playlist index 0
2019-10-08 15:37:34.603 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:13:cb:f6 time 0
2019-10-08 15:37:34.604 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Stopping the player
2019-10-08 15:37:34.606 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:13:cb:f6 stop
2019-10-08 15:37:34.607 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: b8:27:eb:13:cb:f6 mixer volume 0
2019-10-08 15:37:34.608 [DEBUG] [rnal.handler.SqueezeBoxPlayerHandler] - SqueezeBoxTimeoutException during notification: Notification message timed out
2019-10-08 15:37:59.619 [DEBUG] [rnal.handler.SqueezeBoxServerHandler] - Sending command: players 0

Port 9090, is this the right port? Is it even the right path to the audio file? I assume this IP ( is your openHAB Instance.

2019-10-08 15:37:34.178 [DEBUG] [handler.SqueezeBoxNotificationPlayer] - Notification message timed out after 20 seconds

Looks like your SqueezeBox can’t access given url and times out.

9090 is CLI from logitech server
Openhab and logitechmediaserver are installed on the same machine, furthermore I have set the directory / etc / openhab2 / sounds / to chmod 777

Sorry chomd - R 777

This also can happen if the duration of the content is longer than the timeout set in the player thing configuration. @Marc.pol What’s the duration of the mp3 file you’re playing?

Maybe 15 sec

What does this time say?

Ok, if the content is 15 seconds it’s not timing out because the content is longer than the timeout parameter.

Are you sure the mp3 file will play if you play it using just the LMS (Squeeze Server). Eliminating openHAB from the equation will demonstrate that the content can be played successfully.

I try it

Needs openhab write rights to the directory home / house / playlist

Player plays mp3

Ok, that’s good.

Have you tried changing your rule to play other files from the sounds directory? Do those play successfully? (I’m just trying to narrow down what might be causing the problem).

Don’t work

But in log from logitechmediaserver is this

[19-10-08 17:22:19.9984] Slim::Plugin::CLI::Plugin::cli_process (616) Error: Disconnecting:
[19-10-08 17:22:25.1992] Slim::Plugin::CLI::Plugin::cli_process (615) Error: Connections require authentication, check login command.
[19-10-08 17:22:25.1994] Slim::Plugin::CLI::Plugin::cli_process (616) Error: Disconnecting:
[19-10-08 17:38:41.8283] Slim::Formats::readTags (171) File missing:
[19-10-08 17:38:41.8608] Slim::Formats::Playlists::M3U::write (271) Error: Couldn't retrieve objectForUrl: [///./] - skipping!
[19-10-08 17:38:42.2354] Slim::Formats::readTags (171) File missing: ///./
[19-10-08 17:38:42.2466] Slim::Player::Song::new (120) Error: Could not find handler for ///./

Update 01:22 I have changed all ip Adreess in the squeezer binding to and callback function too

And runs without sound. The playing time is displayed. And after 20 seconds, the playlist is reset. No sound at 100% volume. The mp3 changed to doorbell no change