Marc.pol
(Marco Troisi )
October 8, 2019, 9:21am
1
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
First of all, please keep your posting in english, so everyone can understand what its about.
It would help if you would post your rule where this is happening.
Docs
Marc.pol
(Marco Troisi )
October 8, 2019, 10:25am
5
Sorry this is a test rule
rule "brand fitness Notification"
when
Item DIMMAKTOR1_HobbyUGG2 changed to ON
then
// DIMMAKTOR1_HobbyUG.sendCommand(ON)
playSound("squeezebox:squeezeboxplayer:184e3919:b827eb13cbf6", "brand_erkannt_text.mp3", new PercentType(50))
sendBroadcastNotification("brand")
end
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
Marc.pol
(Marco Troisi )
October 8, 2019, 11:05am
7
Out of desperation, I put everything on chmod 777
Also the directory sounds
mhilbush
(Mark)
October 8, 2019, 11:58am
8
Can you put the squeezebox binding in debug mode, then post the debug log from when you execute the rule?
Marc.pol
(Marco Troisi )
October 8, 2019, 1:40pm
9
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 192.168.2.150:9090/audio/bc0e0beb-754d-4adb-942f-5dd255e2b2cc.mp3 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 (192.168.2.150) 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.
Marc.pol
(Marco Troisi )
October 8, 2019, 1:56pm
11
9090 is CLI from logitech server
192.168.2.150
Openhab and logitechmediaserver are installed on the same machine, furthermore I have set the directory / etc / openhab2 / sounds / to chmod 777
mhilbush
(Mark)
October 8, 2019, 1:57pm
13
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?
mhilbush
(Mark)
October 8, 2019, 2:23pm
16
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.
Marc.pol
(Marco Troisi )
October 8, 2019, 2:28pm
17
I try it
Needs openhab write rights to the directory home / house / playlist
mhilbush
(Mark)
October 8, 2019, 3:01pm
19
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).
Marc.pol
(Marco Troisi )
October 9, 2019, 3:50pm
20
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: 109.42.1.7:7923
[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: 109.42.1.7:26218
[19-10-08 17:38:41.8283] Slim::Formats::readTags (171) File missing: 192.168.2.150:9090/audio/330d7823-06db-4511-891c-3356f8efbba5.mp3
[19-10-08 17:38:41.8608] Slim::Formats::Playlists::M3U::write (271) Error: Couldn't retrieve objectForUrl: [///./192.168.2.150:9090/audio/330d7823-06db-4511-891c-3356f8efbba5.mp3] - skipping!
[19-10-08 17:38:42.2354] Slim::Formats::readTags (171) File missing: ///./192.168.2.150:9090/audio/330d7823-06db-4511-891c-3356f8efbba5.mp3
[19-10-08 17:38:42.2466] Slim::Player::Song::new (120) Error: Could not find handler for ///./192.168.2.150:9090/audio/330d7823-06db-4511-891c-3356f8efbba5.mp3
Update 01:22 I have changed all ip Adreess in the squeezer binding to 127.0.0.1 and callback function too
Update
17:00
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