SmartThings Community

Sonos Notify with sound missing

Sergio, I literally just now installed a couple more door sensors and your solution worked like a charm. I can’t thank you enough. I have about 7 more to go to finish the voice stuff and couldn’t be happier.

Awesome thanks so much to save my day!
Now i get my dog barking again.

Thanks for the information @SergioDJ. I was also able to finish what I needed to accomplish with that work around.

Sergio thanks for the video. I’m new to ST and really want to get Sonos hooked up.

I followed you steps but when I got to Install I got the following error. Any thoughts?

grails.validation.ValidationException: Validation Error(s) occurred during save():

  • Field error in object ‘physicalgraph.device.Device’ on field ‘name’: rejected value [null]; codes [physicalgraph.device.Device.name.nullable.error.physicalgraph.device.Device.name,physicalgraph.device.Device.name.nullable.error.name,physicalgraph.device.Device.name.nullable.error.java.lang.String,physicalgraph.device.Device.name.nullable.error,device.name.nullable.error.physicalgraph.device.Device.name,device.name.nullable.error.name,device.name.nullable.error.java.lang.String,device.name.nullable.error,physicalgraph.device.Device.name.nullable.physicalgraph.device.Device.name,physicalgraph.device.Device.name.nullable.name,physicalgraph.device.Device.name.nullable.java.lang.String,physicalgraph.device.Device.name.nullable,device.name.nullable.physicalgraph.device.Device.name,device.name.nullable.name,device.name.nullable.java.lang.String,device.name.nullable,nullable.physicalgraph.device.Device.name,nullable.name,nullable.java.lang.String,nullable]; arguments [name,class physicalgraph.device.Device]; default message [{0} cannot be null]

Btw, I already have Sonos connected to ST and it is working.

HI, this is an app like sonos notify with sound but withmore features.

So I’m a few days away from “probably” getting a SONOS and I’m wondering just an update on what you guys have been using to get custom messages playing through your SONOS. For instance, if the “Home Day” routine is triggered the speaker could state a custom message like “Now triggering Home Daytime” or if a water sensor detects water it would trigger “Water has been detected”. Or if someone has arrived then it would state they have arrived noting that I’m not interested in playing a music track I’m interested solely in playing custom messages only.

A lot of the alternatives or options from searching around seem to be…

  • Using the old code for the “Sonos Notify with Sound” app that SmartThings has since removed due to “perhaps” multiple bugs/issues but it seems some of you guys are still using it in your system just fine!
  • Using the “Speaker Control” app which after looking it doesn’t seem to support any type of custom messages and just plays music which is useless to me for my use case
  • Using @SergioDJ approach which uses the “Speaker Notify with Sound” template to create a new app which you can then use. This seems like the latest and greatest approach to take but makes me slightly curious as to why it’s not provided as an actual app from SmartThings almost like they aren’t 100% sure it’s ready yet hmmm.
  • Using the app that @ule created in his link in the post above although it seems more focused on music and I’m just interested in custom messages only

Hey, sorry for the delay. Were you able to get it working?
I’m not sure about your error but I would try everything from the beginning, also make sure that the template selected is the one on the the code field.

Thanks

You need the big talker app. The only current issue is ST related that new custom TTS phrases may not work. But if you are using generic phrases you might get lucky because they cached phrases. If you happen to name all your sensors the same as me and name your presence tag Greg I bet you will get a lot of phrases to work! lol

Ahh ok and by the Big Talker app are you referring to the following thread?

If that’s the thread then it seems from initial lookover that there is no support for routines being triggered and just modes where I’d think routines are far more important than modes because they might perform the actual turning of devices on/off throughout the house.

And by “generic phrases” as an example, are you referring to the ones on the OP where he states “voice phrases support the following variables” (aka “Greg has arrived”)? Whereas a custom phrase would of course be “Welcome King Greg to your Home” haha or whatever.

Also, I didn’t read over the whole thread since it’s huge but you currently use the app and is working with your SONOS right as some of the last posts show otherwise where SONOS isn’t working anymore?

Ditto to Big Talker. Have it hooked up to two Sonos Play 5s in the house. Re-configured it yesterday without any issues as I added the second Sonos in the house.

The only complaint is music won’t auto-resume but hopefully one day, that’ll be fixed.

By auto-resume do you mean that if music is currently playing and the SONOS is triggered to state a message based on a ST event that after that message it won’t resume the music that was currently playing? I think that’s an issue that I read.

Also, on a fun note, do any of you guys use custom sounds (like a lightsaber) that the speakers will play? Is that something where you need to host your own sound files on a local server machine to reference via url, or somewhere in the “cloud” on a remote server, etc?

Yes that is the thread - You could easily make BT announce a routine by having the routine hit a virtual switch and then BT announce off the switch. Except that new custom phrases aren’t working. see below

By generic I meant if you want BT to announce something like garage door is open - it will work. They are all custom phrases, but phrases that other users created before the caching would work.

Yes it works for me - The only thing that doesn’t work about it is if I want to make a new phrase. I would suggest you just install it and try to get it to say garage door is open, then you will see.

Resuming works really well for me. I’m using the beta version. It’s on his git hub. The only time resuming doesn’t work is if I have 3-4 events come through quickly. Occasionally that breaks it, but it fixes itself once you restart music.

No resume for me and I have the latest beta of the smart app installed. It used to show the close door mp3 in the playlist. Now it currently just does this:

Would love to know how you got resume working as it’s a pain to re-load music but I’m dealing with it!

Sorry, I just compared the version numbers and I might be on a different beta. But just to be clear - resuming for me just means that music begins to play again. 99% of the time I’m just running pandora. If a notification comes through, it does not restart the same song where it was paused. But the same station starts playing after the notification, which is good enough for me. If I remember right, when I tested it with a playlist in the queue - the playlist started from the beginning when resuming.

Still quite a delay with these custom messages. Is there any methods available to get instant sound notifications when doors/windows open?

So at this point, several days have passed and…

  1. I installed/added my new SONOS speakers through the SONOS mobile app
  2. I then added the speakers to ST via the ST mobile app
  3. I finally added the “Big Talker” SmartApp (that @rayzurbock created) in the ST graph api site
  4. In the ST mobile app, I opened the “Big Talker” SmartApp and went to “Configure Events” and setup events for the Presence, Lock, Mode, and Thermostat categories just to start.
  5. Per advice in the multiple threads I read, I also turned on “Enable debug logging” so I can check out what’s going on under the “Live Logging” section in the ST graph api site.

Now at this point I was very excited to try it all out and so I did the following…

  • Opened up the “Living Logging” section of the ST graph api site and cleared any existing logs to start fresh

  • I went into the ST app and unlocked the door ( which was linked in the Lock category of Big Talker). After a few seconds the physical door unlocked, ST app updated the device status to state “Unlocked” and nothing else happened. No message from SONOS.

  • I then proceeded to the “Live Logging” section of the ST graph api site to see what was logged. No errors were produced by ST or Big Talker, just a bunch of trace and debug log level messages. In fact one of the debug log messages started with “SOUND” and then proceeded with a url which, when I went to it, played the mp3 message that the “Front Door is now Opened” so it looks like something is there. Prior to that, there was debug log message that states “currentStatus:paused” so I’m guessing the message would never play since my SONOS speaker is somehow paused for some reason? After the “SOUND” log message, it also looks like it’s only interacting with one of the speakers and not both (which is weird) and also attempting to what seems to be resuming a track that wasn’t even playing so very confused.

  • At this point, I decided to try out the next Big Talker category and tried Modes! I have routines called “Home - Day” and “Home - Night” which simply toggle lights and etc on/off then switch the mode to day/night respectively. I clicked on the “Home - Night” routine, lights went on, ST mobile app mentioned the mode is now “Night” but yet nothing from SONOS.

  • I also tried the “Talk Now” section of the “Big Talker” but since those are custom phrases I knew that section wouldn’t work since they are not cached messages (aka already converted to mp3 files) but I tried anyways and got the exception that everyone is talking about.

I’m assuming all these issues are completely due to my lack of knowledge of how to use these devices or how they are integrated or controlled from SmartThings or the SONOS app or whatever.

How do you guys have this working?

One thing I had to do was only put one sensor per section - not multiple. Multiple sensors in one section don’t seem to fire for me for whatever reason.

I usually add one, save, exit the smart app, then go back and add the second one. Testing constantly between modifications.

Music has resumed play maybe 3x - so better than the prior release. All I have Big Talker notifying me of is my two doors with sensors.

Thanks for the video .

Thanks a lot for the video, it was very useful to me.