Author Topic: Getting Sonos working again  (Read 1306 times)

Offline melsman

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +2/-0
Getting Sonos working again
« on: January 25, 2018, 01:47:07 pm »
Unfortunately, this app no longer works without tweaking - and even then it doesn't work like it used to.  And apparently the app developer is no longer supporting it. So I'd like to use this thread to gather the steps necessary to get the app working properly again. Please add any suggestions you might have to help others get their Sonos devices working in UI7

I'll start...

When I downloaded the app into UI7 for the first time (firmware 1.7.3500), the app did nothing.  No discovery - nada.  So, after doing research here and figuring a few things out on my own, here are the steps I came up with to at least get the buttons to respond. Starting from the beginning:

1. Install the UPnP app
2. Install the Sonos app
3. Down the attached zip files and unzip the two files within. Then, upload these two files to your Vera via the Upload box in the Apps>Develop Apps>Luup files tab.  The discussion about why this is necessary is found here ->http://forum.micasaverde.com/index.php/topic,51432.0.html. Big thanks to amg0 for sharing his edited files!
4. Using your phone or PC Sonos app (or going into your router) find the Sonos' IP address.
5. Open the UI7 Sonos device and go to the Advanced menu. Enter the Sonos IP under the Advanced> Params> IP field.
6. I also entered the router IP in the Advanced>Variables>RouterIP field, but I'm not certain that was necessary.
7. Reboot Vera using the Settings>Net&WiFi - Reboot button
8. When Vera restarts, the Sonos device should be present and should work; at least for music playback. There are still many aspects of the device that don't work correctly, such as album art, currently playing, etc. But the buttons work...

One note - The mute button works, but there is no means to "un-mute".  At least none that I could find.

As for TTL and the voice functions, I've not found a way to get that to work.  If anyone has, please post the steps here.

Melsman

Offline dwighthenry61

  • Sr. Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
Re: Getting Sonos working again
« Reply #1 on: February 02, 2018, 07:35:30 pm »
Had the same issue with TTS and contacted Vera, reply below

Hi
Thank you for contacting Vera Customer Care
We would like to let you know that we are aware of this issue and it is because a security concern that was added to latest version of the firmware, we already report this to our development team and they are working on it but we do not have an ETA for it.
We are awaiting that the plug-ins writers change some files on the API that work with the plug in on the port which it was blocked.
We suggest you to post this on our forum in order to see if there is a work around for it, but we are recommending to downgrade to 7.21 version of the firmware until we get the full fix for it.
Thank you for understanding
Regards
Regards,

Offline kellerman

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Getting Sonos working again
« Reply #2 on: April 18, 2018, 04:20:51 pm »
Regarding the TTS I have a (partly) working solution. I found someone that have implemented a TTS service using ResponsiveVoice (https://responsivevoice.com)

I had it working pushing the voice to all my Sonos speakers at some point...but now I only get it to work with my main Sonos device (that was added by default when adding the Sonos app). I'm still investigating what went wrong but haven't found the solution yet.
I'm also having issues with the group settings and the player status...but I can start/stop the music with the buttons.

So upload the files via the "Develop Apps/Luup files" and then go to your Sonos device and select TTS. I've set the default engine in the js-file to ResponsiveVoice and the language to Swedish. But you could of course switch to another language that better suits your needs. Enter some text in the box and hit "Say"...and you will hopefully hear the phrase in your Sonos speaker.

Hope it works for you!

Offline azvarga

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Getting Sonos working again
« Reply #3 on: August 05, 2018, 12:56:56 am »
melsman : your posting on the two files that needed to be uploaded and the instructions were the ticket.  Not everything works (but basic functions do) and if Vera is working on native integration, this will do it for now.  Awesome.  Thanks.

Offline Spanners

  • Sr. Member
  • ****
  • Posts: 258
  • Karma: +16/-5
Re: Getting Sonos working again
« Reply #4 on: September 04, 2018, 06:53:36 am »
My version attached. Incorporates some updates from amg0 and reneboer.

Buttons work, discovery works, album art/status info updates and responsive voice TTS works. (At least for me, your mileage may vary)

After updating the files and restarting luup, make sure to refresh your browser (may need to clear cache) so the Javascript gets reloaded.

« Last Edit: September 04, 2018, 06:56:58 am by Spanners »

Offline lakewoodjazz

  • Sr. Newbie
  • *
  • Posts: 39
  • Karma: +1/-0
Re: Getting Sonos working again
« Reply #5 on: September 04, 2018, 08:46:38 pm »
Great news Spanners.
I am not home to install your version yet but when I get back to Delaware I am looking forward to having Sonos work again completely. Does your version bring back the regrouping buttons?
Will report back.

Thanks!

Offline Spanners

  • Sr. Member
  • ****
  • Posts: 258
  • Karma: +16/-5
Re: Getting Sonos working again
« Reply #6 on: September 04, 2018, 09:31:44 pm »
Grouping buttons work ok for me.

Good luck. :)

Offline Cheddah

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Getting Sonos working again
« Reply #7 on: September 08, 2018, 06:44:59 pm »
I gave it a shot - the Sonos is back to working, but TTS isn't.  If I have music playing on the Sonos, it will stop playing and go quiet for an amount of time that would equal what the TTS should say, and then resume playing music. 

I can't see anything obvious in the logs, so I'm not sure why the generated mp3 file isn't playing on the Sonos.  Any ideas?