Now i got 2 new things in paper ui, it is green and shows “online”.
But i still get the old 2 things in the inbox with a long UUID number. This number is not configured in my handmade things-file.
Could there be the error? I don´t want to have this long UUID as name for my squezebox-server.
Yesterday i was on oh 2.3 snapshot #1197. I made an update this morning and now i´m on latest snapshot. But still the same. My items are not working, i don´t get any title information on my sitemap and i can´t control the player with openhab.
And another question:
I have 2 player things in my inbox. One for the raspi3 with max2play and one with the ip-adress of my server (i think the built-in player of the lms squeezebox-Server). Is this right? Do i have to configure both? Only my max2play server is connected to an amp and speakers.
This is ok. It’s because the one in your inbox has been discovered by the binding (versus the one you created in your .things file). You can ignore it.
Can you post your items?
The squeezelite one is your max2play, correct?
As for the other one, were you at one time running the SqueezePlay app? It will be discovered by the binding and added to the inbox.
Now all is working, except the seconds are shown as only seconds, not as min:sec
Yes i tested with the software-player one time.
It´s not nice, that this still apears in the inbiox. So to remove this, i have to rename my selfmade player thing to the nave it is given in the inbox?
I made this with the server and now it is gone in the inbox.
Now i only have one max2play raspi, but i will add some more rooms with this, so i need good readable names for all of my players.
Please can you tell me, how i can implement this into my number item?
I don´t use sitemap-configuration for every item, isimply show the whole group, so i can´t change the sitemap entrys, i will have to do this in items-file i think?
But my item for duration is a number-item.
So how can i combine the returned value from the script and my number item?
Is this not working and i have to change my sitemap to separate configuration of each item instead of showing only the whole group?
Number PlayingTime "Playing Time [JS(mmss.js):%s]" { channel="squeezebox:squeezeboxplayer:36b70fd1:b827eb160000:currentPlayingTime" }
Number Duration "Duration [JS(mmss.js):%s]" { channel="squeezebox:squeezeboxplayer:36b70fd1:b827eb160000:duration" }
Install the Javascript transformation addon
Place a file named mmss.js in conf/transform that contains this
(function(i){
var s = ~~(i%60);
return (~~(i/60) + ':' + ((s < 10) ? '0' : '') + s);
})(input)
Hi, my squeezebox runs very smooth the last few months.
Only one problem: Sometimes, in openhab i can see in the logfile, that the commands to the squeezebox are sent. But i get no sound. I can connect to the squeezebox-client raspberry pi (max2play image) and make a reboot. Then the sound is back again.
I don´t know, how i can check, if the squeezebox-client (player software, not the raspberry at all) is still available?
Is there a way to check inside openhab with a rule, if the squeezebox player is still responding to openhab?
The binding only talks to the LMS, not the players. Only the LMS talks to the players. You could try to find the port that the LMS uses to talk to the player, then use the network binding to send the player a transaction.
Note on my post above that the playStream action accepts Strings as arguments so we need to feed it Strings
Put your Thing betweem "" and convert the state to String by using the toString method
Please check out our new plugin for http commands (copy and paste from our announcement thread)
Hi guys,
I wanted to update you on another feature we have been working on in conjunction with the openHAB server installer.
Our API-Examples plugin has just been added to all Max2Play systems with the new version 2.47 of Max2Play!
You can find it in all Max2Play systems with the update. It’s a free plugin and can be added in the Settings/Reboot menu from the available plugins section.
It dynamically creates a list of HTTP-Get and CLI commands to be copied and pasted into your openHAB solutions.
Commands like Play, Pause, Next Song but also commands like shutdown of the device or starting specific plugins like the Jivelite GUI or Kodi.
It also creates a more detailed API doc for the equalizer and other features we can add by request.
This is the ideal plugin to quickly find and add the functionalities you need for the multiroom audio to be added to your openHAB.
We would really appreciate feedback on this new plugin.