My squeeze player Things are defined consistent with squeezebox:squeezeboxserver:myServer:myplayer , so where does 5919BEA2-764B-4590-BC70-D74DCC15491B:20cfbf221510 come from?
For the life of me, I can’t find a reply to this!
Could a guru explain just where this string is found? All I can find in Paper gui is the mac address.
Got to PaperUI, if you have not done so go to your inbox and accept the newly found thing SqueezeBox Server; when you have the binding installed it discovers the server automatically.
You can then access the ID under “Configuration > Things”
If memory serves me well, the ID is already displayed in the inbox too, so you may not have to accept it as a thing in PaperUI at all, in case you want to stick with config-by-file
Hope that helps
if that doesn’t work, you may want to open a new thread and post more details: How to ask a good question / Help Us Help You as in this case, your issue is not related to the topic here and you will get more attention if you provide the info under a more descriptive topic heading.
I hear you and so do likely all people on this forum who have their own share of “war stories” to tell…home automation can be hard…it is simply awesome when it just works…but to get there, it can be frustrating…
Keep at it, OH2 can have a steep learning curve, and be incredibly frustrating while one is working through this, but keep in mind, it is one of the most stable and flexible open source systems out there… and I am not just saying this without admitting that I am looking on and off at some of the alternatives…but as they have their own issues, I am coming back to OH2 over and over again.
If you keep run into trouble, consider posting a new topic with a detailed description (see above), there are so many awesomely informed and committed people on this forum, I am sure if you put in the work, they will too and you will resolve your issues
I’m Using OPENHAB 3 with the squeezbox binding.
Is it posible to play a song or album through the squeezbox binding or can it be added to the default functionality?
I can play favorites perfectly, but it is not posible to create a favorite for every song or album.
There’s a channel called stream where you can send an http:// or file:// link to the binding. I’ve never used it, so I don’t know if it would work for your situation.
By sending a URL to the stream channel, the binding sends a “playlist play” command to the LMS, which is defined in the LMS documentation like this. So in theory, it should work.
<playerid> playlist play <item> <title> <fadeInSecs>
The "playlist play" command puts the specified song URL, playlist or directory contents into the current playlist and plays starting at the first item. Any songs previously in the playlist are discarded. An optional title value may be passed to set a title. This can be useful for remote URLs. The "fadeInSecs" parameter may be passed to specify fade-in period.
Examples:
Request: "04:20:00:12:23:45 playlist play /music/abba/01_Voulez_Vous.mp3<LF>"
Response: "04:20:00:12:23:45 playlist play /music/abba/01_Voulez_Vous.mp3<LF>"
Request: "04:20:00:12:23:45 playlist play http://someserver/02_Sledgehammer.flac Peter%20Gabriel%20-%20Sledgehammer<LF>"
Response: "04:20:00:12:23:45 playlist play http://someserver/02_Sledgehammer.flac Peter%20Gabriel%20-%20Sledgehammer<LF>"
When you send a command to the stream channel of the player thing, all the binding does is pass it on to the LMS (as shown here). It’s very simple.
So, what could be wrong? I’m not sure. Perhaps the binding needs to URL encode the URL before sending it to the LMS. You could try this by URL-encoding your URL, then sending the URL-encoded string to the stream channel. Also, try putting the binding in DEBUG mode, so you can see what’s going on.
I’d try it myself, but I’m away from my system for a few days.
Is there an example of how to play a specific favorite from a rule?
I am able to select a favorite and have it play from a sitemap, however if I just send the string of the favorite I want it to play from a rule it just seems to play the first favorite. To make sure that I don’t have a typo I even have the rule iterating over the state options and just sending the label from the one that matches. I also tried just sending an integer that matches the favorite number.
I searched and couldn’t find an example of triggering a specific favorite from a rule - is this supported?
Edit: Answering my own question. You need to send it the ‘value’ of the option which is the number of the playlist item.
Configured an Item called stream_URL and connected it with the “Stream URL” channel of the squeezbox binding
Created a rule send_URL whitch send a command to the created Item stream_URL
sendCommand(StreamURL, “file:/mnt/playlist/Playlist_Queen.m3u”)
where “file:/mnt/playlist/Playlist_Queen.m3u” is the location where the playlist file exists.
This works, now all i need is to define an input item to fill the static playlist!
Need to create an array of some kind with all the items from the playlist directory!
and make a selection of that list to fill in the “file:/” part of the sendCommand.
Do not know how, right now!