SqueezeBox Help!!!

I’m using Vera2 UI4 firmware Running Version 1.1.1036

I have a squeezebox boom which works great but would be great if i could run it through Vera.

When i install the SqueezeBox plugin all appears well. But it does not appear able to find the squeezebox server which i have running on a mac mini. I try to add the ip address of the server but that does not work and after a short while the ip address disappears. Every couple of minutes the server busy box appears in the top right corner.

Anyone else experienced difficulties? Has anyone had any success?

Any help will be greatly received

Cheers

m0jon

does anyone know where i can find the .xml files that make up the SqueezeBox plugin? Want to see if i can get them working for me.

Cheers

m0jon

‘Toolbox’ → ‘MiOS developers’ → ‘Luup files’ → ‘View’ (assuming the Squeezebox plugin is installed …)

Many thanks Ap15e, found the files.

Do you know if Vera has to have a physical connection to the computer running the Squeeze Server or will it work over wifi?

Cheers

m0jon

I don’t know. I would suggest testing some code snippets from http://wiki.micasaverde.com/index.php/Squeezebox first.

Hi Ap15e

Thanks for the prompt reply and link. Unfortunately i can’t even get that far. Every time i load the plugin the server busy box pops up every couple of minutes and the tcp filed is populated with 9090. My squeezebox server is using 9000. Not sure yet how to change either.

m0jon

The plugin seems to work for me (physical connection between Vera and SBS, SBS clients connected via WLAN).

Installation instructions for the beta plugin:

[ul][li]@Vera: Install the plugin. You will get a new device on the GUI: the Squeezebox controller[/li]

[li]@Vera: Open the settings page for the new Squeezebox controller → ‘Advanced’ tab → ‘serverIP’: enter the IP address of your SBS → ‘serverPort’: 9090 (9090 is the default SBS port for the SBS CLI interface - do not change the port unless you know what you are doing).[/li]

[li]@SBS: Start your SBS and make sure that the SBS does detect your player(s).[/li]

[li]@Vera: Close the settings page and click the red ‘SAVE’ button. In addition to the Squeezebox controller you will now get a new player device for each player connected to your SBS[/li]

[li]Test the setup: @SBS: play a song, @Vera: open the settings page of the player (not the settings page of the Squeezebox controller), ‘Advanced’ tab, ‘SongName’ must contain the name of the currently playing song.[/li][/ul]

Use the Luup Lua extensions (http://wiki.micasaverde.com/index.php/Luup_Lua_extensions) or Vera’s scenes (‘Advanced’ tab, see attachment) to control your physical player(s). You will need the device id(s) for your physical player(s). The device ids are on the ‘Advanced’ tab to the right of ‘id’ just below ‘device_file’.

The following UPnP actions are implemented:

[ul][li]For UPnP service urn:micasaverde-com:serviceId:MediaNavigation1:
Play, Pause, Stop, Rewind (previous track), QuickSkip (next track)[/li]

[li]For UPnP service urn:schemas-upnp-org:serviceId:RenderingControl1:
SetVolume[/li][/ul]

The following UPnP variables are implemented:

[ul][li]For UPnP service urn:micasaverde-com:serviceId:SqueezeBox1:
playerId, SongName, PlayerStatus[/li]

[li]For UPnP service urn:micasaverde-com:serviceId:MediaNavigation1:
TargetVolumeLevel[/li][/ul]

Some examples for device id 16837:

[ul][li]luup.call_action( ‘urn:micasaverde-com:serviceId:MediaNavigation1’, ‘Pause’, {}, 16837 )[/li]
[li]luup.call_action( ‘urn:micasaverde-com:serviceId:MediaNavigation1’, ‘Play’, {}, 16837 )[/li]
[li]luup.call_action( ‘urn:micasaverde-com:serviceId:MediaNavigation1’, ‘Stop’, {}, 16837 )[/li]
[li]luup.call_action( ‘urn:micasaverde-com:serviceId:MediaNavigation1’, ‘Rewind’, {}, 16837 )[/li]
[li]luup.call_action( ‘urn:micasaverde-com:serviceId:MediaNavigation1’, ‘QuickSkip’, {}, 16837 )[/li]
[li]luup.call_action( ‘urn:schemas-upnp-org:serviceId:RenderingControl1’, ‘SetVolume’, { DesiredVolume = “10” }, 16837 )[/li][/ul]

[ul][li]local value = luup.variable_get( ‘urn:micasaverde-com:serviceId:SqueezeBox1’, ‘playerId’, 16837 )[/li]
[li]local value = luup.variable_get( ‘urn:micasaverde-com:serviceId:SqueezeBox1’, ‘SongName’, 16837 )[/li]
[li]local value = luup.variable_get( ‘urn:micasaverde-com:serviceId:SqueezeBox1’, ‘PlayerStatus’, 16837 )[/li]
[li]local value = luup.variable_get( ‘urn:micasaverde-com:serviceId:MediaNavigation1’, ‘TargetVolumeLevel’, 16837 )[/li][/ul]

Further information:
http://wiki.micasaverde.com/index.php/Squeezebox.

DUMB question … why does one hook up a Squeezebox to Vera when it can be run from any smart phone??? I am interested in seeing if I am missing something.

The Squeezebox Controller plugin adds an UPnP layer to your SBS players. After installation of the plugin, your SBS players can be controlled with any UPnP control point (Universal Plug and Play - Wikipedia). Of course, the UPnP control is limited to the actions which are implemented in the Squeezebox Controller plugin.

A more practical scenario:
You are listening to your SBS player(s). You have to leave your home for some time, but you would like to continue listening when returning home.

Solution:
Use woodsby’s ActiveRFID (ActiveRFID) or the ping sensor configured with your smartphone’s IP address to let Vera know when you are at home. Create two scenes with a trigger which flags whether you are at home or not and add Luup play/pause commands to the ‘Luup’ tabs of the scenes.

Some more scenarios:
Transfer the playlist from your player in your living room to your player in your bedroom at 11 pm (needs a trivial addition to the Squeezebox Controller plugin) or play an announcement if some conditions are met (currently not implemented in the beta plugin) or pause/mute the player when there is no motion in the room or …

@ap15e … thanks for the feedback with some interesting scenarios … currently I have all my music up in the cloud so I think I will stick to my SB phone app. Will be implementing the home and away thing next year and will give that a try then.

Ap15e last question, promise!!!

Just wondered how you physically connect your Vera to the computer that is running the SqueezeBox Server?

Thanks again

m0jon

Vera <---- LAN —> Switch <— LAN —> Computer running SBS

OK, I have finally connected the Squeezebox Plugin and I now see my 3 squeezebox players and they are working since I can see the song playing in Vera.

Im trying to tie in the Squeezebox’s into a scene , but Im not sure how to make a simple Luup scene to simply play the song.

If I test this code in the Luup TEST area, it works and the SB plays

luup.call_action( ‘urn:micasaverde-com:serviceId:MediaNavigation1’, ‘Play’, {}, 5 )

But, I try to add this into the Luup tab of a Scene and it says “invalid scene”

DO I need to wrap this command in some other Luup code to get it to work?

My ultimate goal is to create a few SB scenes, one that “welcomes” me when I unlock the door, and turn on the lights, etc. Any ideas on how to tie multiple scenes together, so one scene runs the SB “welcome home”, then it tells another scene to run, etc.

ANy help would be great, I’m getting closer!

Figured it out, Vera was causing issues and when I edited and saved a Scene, the scene number was never being updated. I rebooted Vera and that seemed to do the trick, The

code luup.call_action( ‘urn:micasaverde-com:serviceId:MediaNavigation1’, ‘Play’, {}, 5 )
now works fine in the Luup tab in a scene. Thanks for the great docs and plugins for Squeezebox!

Hi –

What verion of the firmware are you using?

   Don

Where do i find the plugin. can’t seem to find it anywhere! does this work with the Squeezebox touch?

MiOS Marketplace → + → Category: Beta plugins → page 15

I’ve installed the SqueezeBox Control App and my Squeeze Box devices appeared in “no room”. However, the Squeezebox Control app panel shows “missing port”. Under settings, advanced the Server IP is set correctly and the ServerPort is set to 9090. If these two weren’t set correctly, then the 4 squeezebox devices would not have been generated automatically.

Any idea what to do next to get this to work?

I have a VERA 3 with UI5 FirmWare 1.5.408

Each of the SqueezeBox “devices” show the current song that is playing. If I click on any of the controls such as PLAY or STOP, I get a “Device communication failure” message. The Squeezebox Control constantly show “Missing port” and a RED button in the left side of the “title bar”.

@pderby, are you using the Squeezebox App from the app store? If so can you please try the version from svn? (see here: http://forum.micasaverde.com/index.php/topic,10108.0.html)

If you keep having problems please post in that thread and I’ll do what I can to get you going.

[u]I found the solution using GOOGLE to search for [ “device communication error” vera] which led me to this posting: http://forum.micasaverde.com/index.php/topic,9451.msg67985.html#msg67985[/u]

I downloaded the revised I_SqueezeboxControl1.xml file from the posting, uploaded it to the VERA3 at:

APPS/Develop Apps/Luup files/

Clicked on RELOAD

and now the APP plugin works just fine on my recently installed Vera3

Nice to see this finally work!!!