I’ve spent many hours researching the forums but can’t play an mp3 file using the squeezebox binding in OpenHAB2.
I have a working squeeze server and multiple players. The configuration iterations have me royally confused, so I’m trying to stick with the newest documentation as much as possible.
Thing Configuration makes sense and all players are recognized. I configured multiple players with correct mac address. My webport is 9002. My server is not a client (as I understand?), but I left the 9090 in place.
Bridge squeezebox:squeezeboxserver:myServer [ ipAddress=“192.168.1.10”, webport=9000, cliport=9090 ]
Thing squeezeboxplayer myplayer[ mac=“00:f1:bb:00:00:f1” ]
In paper UI, the various channels show up for the players, however my server does not report any channels. All players and server are reported to be “online”. I’m not sure what
notificationSoundVolume is supposed to be a channel for, but it does not show up as a channel for the players.
I couldn’t find any documentation of the syntax for playing a local file other than here:
squeezeboxPlayUrl(“kitchen”, “file://localhost/usr/local/share/openhab/doorbell-2.mp3”, 50)
I spent a lot of time trying to adapt this to my players, but kept getting errors. I’m not clear on the proper syntax at this point. The example rule uses the following syntax:
say(“The garage door is open!”, “voicerss:enUS”, “squeezebox:squeezeboxplayer:5919BEA2-764B-4590-BC70-D74DCC15491B:20cfbf221510”)
My squeeze player Things are defined consistent with
squeezebox:squeezeboxserver:myServer:myplayer, so where does
5919BEA2-764B-4590-BC70-D74DCC15491B:20cfbf221510 come from?
I tried replacing “kitchen” with every combination of I could think of using the full Thing name and my player’s mac address. In all cases I seem to be getting syntax errors.
As I came to a dead end here, I moved on to trying to make a squeeze player a default audio sink. The option does not show up in the Paper UI configuration. I then edited
conf/services/runtime.cfg to define the default audio sink as
squeezebox:squeezeboxserver:myServer:myplayer as well as several other attempted combinations such as
squeezebox:<mac> In all attempts, I receive a player not found error.
Normally I would post my actual configurations, but I don’t have access to my server at the moment.