-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Squeezebox .things file errors #1455
Comments
Having had a closer look at the Squeezebox code, I am not that sure anymore that the bug is within in. |
Hi all, as I said in the community post referenced above, I am having what appears to be the same issue since update to the latest snapshot from #580 when this this was working as expected when configure through the .thing file. Despite this issue, I have just noticed that the title is still being update within openhab when controlled directly by the lms. More than happy to help with any testing or can provide further details. |
I had a look on your log entries.
Means; I need additional logs. Can you enable debug logging for org.eclipse.smarthome.* ? I need the logs of your scenarios above:
|
@sbussweiler, thanks for looking into that. I will try and get you those logs. Some additional info that may or may not help: I was able to get openhab2 up and running within eclipse according to the IDE Setup guide and the bridge and player seemed to initialize properly. I'll work on those logs and get them to you ASAP. Thanks! |
Hmm, the few items I have hooked up to the squeezebox player seem to be working right now. Maybe it was other configuration elsewhere in openhab that was in a strange state. I will go ahead and close this right now, and if I run across the error again I will repost the bug or reopen this one as appropriate. Thanks for the help. |
Example with item Switch Kitchen_Light in the example is not correct for current binding version.
I originally reported this issue here: https://community.openhab.org/t/squeezebox-trouble-in-openhab2/17052. @kaikreuzer suggested opening an issue since the log shows a bug in the code of the binding.
I have just recently set up a squeezebox server and playing in my house and I am trying to get them connected in my openHAB2 instance. I am able to control the player well using the logitech media server web interface, as well as the Squeezer android app, so the squeezebox side of things seems to be working properly as far as I can tell. One small thing to note is that I'm running it in docker and the server it's on already had something on port 9090 so I changed port 9090 in docker to bind to host port 9091. I can successfully telnet to port 9091 on the server ip and execute squeezebox cli commands..
The trouble I'm having is that when I try to set up the squeezebox binding using a .things file, it doesn't properly connect to those items. It autodetects the server and player and puts them in the inbox in HABmin/PaperUI, but it doesn't like my configurations for some reason. Here is my things file:
I commented out the player line as a test because the binding seemed to get further like this. After putting this in place, I Installed the binding in HABmin after putting this file in place. Here is the log output:
From what I see there, it looks like it successfully finds the squeezebox server and then even autodetects the player.
However, if I then modify the things file to uncomment the player line, here's what happens in the logs:
.things file
Log:
In this log I first see a message that the .things file can't be parsed correctly. If there's an error in the syntax, I don't know how to fix it because I can't find any good examples that are different than this one.
After that error, there is an exception from the binding. Not sure if that's caused by the syntax error or if it's unrelated.
Some additional information. If I restart openhab with the above .things file containing both the bridge/server entry AND the player entry, there is a different result where it at least partially is able to recognize them. Here is the log of that:
It seems to be "correctly" parsing the .things file and making the items, but the player item isn't working. The log shows that it is disposing of the myPlayer thing for some reason.
The above log is with the following items attached to the things in a squeezebox.items file.
The text was updated successfully, but these errors were encountered: