Solved: Need help with Sonos Scenes

Hi everyone,

Really hoping someone has seen this problem before and can help. I have a Vera3 running firmware 1.7.541 and I installed the Sonos plugin per the instructions here:

http://code.mios.com/trac/mios_sonos-wireless-music-systems

Installation was successful with no errors, UPnP discovery worked great and found all of my Sonos devices quickly. I am able to see what is in queue, play, pause, stop, change volume with no issues.

The problem I am running into is when I try to run a scene. I created a manually activated scene to alert with a URI located on my NAS box (no user restrictions). However, when I activate the scene, Sonos just changes to the next track or mutes for the alert duration I have configured. The URI I am using is: //192.168.77.1/routernas/chimes/doorbell.mp3, which loads up fine from within Sonos and plays, but not through my scene. I can even go into the Vera device, select Player, set URI to x-file-cfs, enter the same URI, hit Play, and it plays fine. It just won’t play this URI through a scene that I’ve created.

I’ve tried everything from a) setting the URI first, then creating a second action to play it, b) trying to just play an alert with all of the URI info, c) trying it on different Sonos devices, d) trying it with music already playing and without music playing, d) resetting my Vera3 and reinstalling the app, e) rebooting my Vera and Sonos Connect:Amps, and f) leaving the URI blank in the alert function, which actually plays something called say.7.mp3 and says, “The monkey is on the branch, the mouse is under the table.” I even tried using the Luup code instead of the advanced editor, but every time I do it this way, it actually deletes the Sonos device that I have specified.

Does anyone have any suggestions?

The issue has been resolved. Not exactly sure what was causing the issue, but here is what I did to correct the issue:

I reset my unit to default settings, and registered it with getvera.com as opposed to cp.mios.com. I then set my unit to a static IP, disabled wifi and DHCP since I don’t need them.

Ran through the setup using Chrome instead of Safari, and reinstalled the apps. At this point, I still couldn’t get the alert function to work in my scene, so I used the following code instead:

luup.call_action(“urn:micasaverde-com:serviceId:Sonos1”, “Alert”,
{URI=“x-file-cifs://192.168.77.1/routernas/chimes/doorbell1.mp3”, Duration=4, GroupZones=“Dining/Conserv,Family Room”, Volume=35, SameVolumeForAll=true},
5)

Not sure if I still needed to keep the device id of 5 at the end since I am wanting to play to multiple units, but this finally worked and played the sound on both devices and resumed the music afterwards.

As a note, if you are playing Pandora and you issue an alert, it resumes playing music afterwards but will skip to the next song in the process.

-Frank

I think this is the same problem I am having, and I just posted about it. I am guessing that I need to register my VERA on getvera.com…I think that may be the key. The vera app on my phone stopped working as well…and I noticed that sometimes when vera bombs, it tries to get me to add the controller to getvera.

I’ll try that tonight and see if it fixes my issue.