I just setup a new home audio platform running max2play with a Squeezbox server. It works great, but for some reason I can’t seem to integrate it into OH, and from the debug it looks as if it is inserting characters into the MAC Address field upon replies? Please see the MAC Addr below as defined by ( squeeze:homeaudio.id=B8:27:EB:A9:28:5A ). I’m running v 1.81 of OH, and below are by items / cfg / sitemap:
It seems as if 3A get’s inserted into the message received field? Is this normal behavior? @ben_jones12 I think you wrote the binding for Squeezbox and wondering if you might know?
3A is the ASCII code for : so is perfectly normal. Not sure about those ** around the message received log messages - is that something you have added?
Thanks @ben_jones12 appreciated, didn’t realize that was the ascii code. In regards to the **'s, I added those in the post to call it out, those where not in the debug. So based on the items / cfg and sitemap I think it looks ok, and based on the deug, it looks like a command and response is sent, but nothing ever seems to happen when I try and control it from the sitemap? I am using max2play and it runs the Logitech Media Server, ( Squeezserver ) as well as squeezlite, would that be a possible problem at all?
The binding only talks to the Squeezeserver, so not directly to any clients. So I don’t think it should matter what type of clients you have. I have a combination of Booms, Touch and RPis running Squeezelite and they are all working just fine.
Perhaps try a different control app - i.e. something like http://code.google.com/p/squeezy. If that has the same problems at least we can rule out the binding!
Not sure what it could be then sorry. It is definitely working just fine for me (and quite a few others). The only thing I can think of is to check for any strange/extra whitespace characters in your config files. openHAB can be a bit sensitive to these, but based on your log messages everything looks like it is configured and working fine.
Thanks @ben_jones12 It’s so odd, It almost looks like it is dropping a connection ( ie: The following messages are from me trying from the SqueezeServer itself ( play / pause ) and then also from the OH Sitemap:
Hello @watou Thank you kindly for your suggestion! It worked like a charm as soon as I changed from upper to lower case! I’m on 1.81 of OH, and I went through the wiki, and must have missed that, my oh.cfg didn’t mention the case sensitivity:
# Id (MAC address) of your first Squeezebox
squeeze:HomeAudio.id=b8:27:eb:a9:28:5a
# Id (MAC address) of your nth Squeezebox
#squeeze:<boxIdN>.id=
But I clearly see it on the wiki, and as soon as I made that change, everything works perfectly! Thank you all very much for your suggestions and help! I was just about to rebuild a SqueezServer to try again.
I think (from memory) the binding does a direct string compare when looking up the player id (i.e. MAC address). This should really be changed to be case insensitive and would likely be a very simple fix. Maybe add an issue to Github for this and someone (possibly me if I find time) can fix it.
Thanks @ben_jones12 appreciated! While on topic, From the wiki I don’t see an item that maps to skip next / previous track. I believe it is possible with an HTTP Get request, but I’m a bit confused about how to implement? I’ve created the items as follows:
Number home_aud_next "Next Track" (gSqueeze)
Number home_aud_prev "Prev Track" (gSqueeze)
Rule:
//SqueezBox Next / Prev Track Rule Start*/
rule "Squeezebox Next Track"
when
Item home_aud_next received command
then
sendHttpGetRequest("http://192.168.0.1:9000/status.html?p0=playlist&p1=jump&p2=%2b1&player=b8%3A27%3Aeb%3Aa9%3A28%3A5a")
end
rule "Squeezebox Prev Track"
when
Item home_aud_prev received command
then
sendHttpGetRequest("http://192.168.0.1:9000/status.html?p0=playlist&p1=jump&p2=-1&player=b8%3A27%3Aeb%3Aa9%3A28%3A5a")
end
//SqueezBox Next / Prev Track Rule End*/
But when I try it, I get the following in the Log, with no track changes:
2016-03-27 15:11:16.801 [WARN ] [o.i.r.i.resources.ItemResource] - Received HTTP POST request at 'items/home_aud_next' with an invalid status value 'ON'.
Would anyone have any thoughts were I’m going wrong?