Sonos plugin

Thanks Brientim!

Code committed to manage S3 and ZP100 icons.

[size=18pt]Please note that the png files have to be transferred manually (using WinSCP for example) in the directory /www/cmh/skins/default/icons[/size]

New commit in trunk: Fixed Say action for text longer than 100 characters

I asked me questions about plugin installation from the app store: where are uploaded all the plugin files ? If we have some PNG files (icons) and MP3 file (silence data file), they will be all uploaded in /etc/cmh-ludl ? This is not the right place for icons.
Shall I consider that the silence.mp3 file will be in /etc/cmh-ludl ?
And we have to avoid having compressed files (lzo).
How to handle that properly ?

See my response here:
http://forum.micasaverde.com/index.php/topic,13031.msg100005.html#msg100005

Short: apps.mios.com is extremely broken for any custom files. We should put everything into [tt]cmh-ludl[/tt] and write something to move them into place on startup.

New changes committed:

  • proper playback ending for Say action => /www/Sonos_silence.mp3 is required
  • Say action: volume is now an optional parameter; if not set, the current volume is used
  • Parameter Devices renamed into GroupDevices for Say action
  • New parameter Volume added for PlayURI action => you can now define an optional volume
  • New parameter GroupDevices added for PlayURI action => you can now group additional Sonos devices to play the same thing
  • New parameter GroupDevices added for SavePlaybackContext action => SavePlaybackContext can now save the palyback context of additional devices

[size=18pt]The new file named Sonos_silence.mp3 has to be copied to /www/Sonos_silence.mp3 using WinSCP.[/size]

I have a VeraLite and Sonos Play:5. i followed wiki instructions to download trunk files and restart Luup and create new device. I can see everything … Volume, what is playing, but when I click on any of the controls all I get is pop up box that says Device Not Ready. I tried to search forum but did not see a thread where anyone else was having this problem. All help would be appreciated.

Since app autoupdate doesn’t seem to work, I use Brentiem’s instructions to update apps.

[i]You have two options:
Option 1
Goto apps.mios.com login and then select your unit if presented with muliple units.
From the My Account select View Plugin Details
Identify the plugin you wish to update and open it by either clicking in the Plugin Name or View located on the right side.
Click on Versions located on the top right of the screen to display the version history sceen.
Under Actions click on Install for the version you wish to install.

Option 2
In your browser use the following command. You need to replace Vera_IP and Plugin_ID to details obtained from your unit.
http://Vera_IP:3480/data_request?id=update_plugin&Plugin=Plugin_ID[/i]

on the apps.mios page, there are no versions listed for the sonos plugin, so i can’t install new versions this way.

This is not currently deployed through app.mios.com.
The install instruction and link to the latest version is contained in the first post which is also detailed below:
Sonos Wireless HiFi Music Systems

In scene:
http://i.imm.io/Vnty.png

Trigger was run, but I not hear message from Sonos which are in LUUP code. If run scene manually - it’s work. It’s freeze? Or what problem can be?

Try reload (reload button in the UI).
If still not working, try to upload again all the required plugin files.

Try reload (reload button in the UI).
If still not working, try to upload again all the required plugin files.[/quote]

Reloads did not help. ReUploading files and Restart Luup did not help.
Deleted device and created new device … Works great! Thank you.

Just trying to understand what you guys are using this plugin for? With a sonos Iphone/android app and PC app and alarm functions, I don’t see the purpose of another app.

Fill me in, maybe I need it too :slight_smile:

Announcements… like when washing machine is finished.
Informing family when the GPS location of my cellphone passes a certain location on my way back from work.
Pause music when someone is calling and say who it is by looking up name using a swedish webservice.
Doorbell.
Turning on/off radio/music using minimote.

[quote=“hek, post:814, topic:169644”]Announcements… like when washing machine is finished.
Informing family when the GPS location of my cellphone passes a certain location on my way back from work.
Pause music when someone is calling and say who it is by looking up name using a swedish webservice.
Doorbell.
Turning on/off radio/music using minimote.
…[/quote]

Turning on radio automatically in the morning when I enter in the room.
Turning off radio automatically when I leave and arm the alarm.
Turning off the Sonos in the living room when TV is turned on (in combination with the Pingsensor plugin).

I have not yet used the Announcements capabilities, except a “Bonjour” when I come back to home :slight_smile:

Just a little info

The wiki still uses the SetfileToPlay action when explaining how to get Sonos to play a audio file. As i understand it is replaced by SetURIToPlay? It got me a little confused when i tried to set it up.

I Love this Plugin ;D

Is i possible to resume playing, if the sonos was playing radio before i gave it a PlayURI command?

Yes, you can use actions SavePlaybackContext and RestorePlaybackContext

Can’t get the plugin to work, but don’t understand why. I added everything according to the wiki, created a device, entered the correct ip addres, but… nothing. None of my sonos devices are working. I’m 100% sure I got the ip address correct, I reloaded the files, recreated the devices, help…
Is there a way to see in the logs what’s happening?

[quote=“averell, post:819, topic:169644”]Can’t get the plugin to work, but don’t understand why. I added everything according to the wiki, created a device, entered the correct ip addres, but… nothing. None of my sonos devices are working. I’m 100% sure I got the ip address correct, I reloaded the files, recreated the devices, help…
Is there a way to see in the logs what’s happening?[/quote]

First, do you have a lua startup error displayed at the top center zone of the dashboard when you reload ?
What version did you install ?
What message is displayed on your Vera Sonos device ?