I’ve had this working fantastic for sometime but something has recently changed. Not sure if it was after updating HA or not. TTS works great on the Sonos and all my Amazon Echo devices announce just fine. I’m running 096.5 and have version 1.4.1 of the Alexa Media Player component installed via HACS. My Sonos system is up to date running version 10.3.1.(Updated Sonos after I noticed this problem) Am I overlooking something or is there an incapability issue here?
It’s not really clear what you’re trying to do. Maybe some examples would help. My first thought is that its not possible.
Here is my automation with the announcement:
###################################################################################
# Notify Jeff When Lygea Leaves Revved South
###################################################################################
- alias: Notify Jeff When Lygea Leaves Revved South
initial_state: true
trigger:
platform: zone
entity_id: device_tracker.life360_lygea
zone: zone.revved_south
event: leave
action:
- service: notify.mobile_app_jeff_welvaerts_iphone
data:
message: "Your Beautiful Wife Has Left Revved South"
data:
push:
sound: default
- service: notify.alexa_media
data:
target:
group.alexa
data:
type: announce
message: "Your Beautiful Wife Has Left Revved South"
My Sonos devices are included in group.alexa. Works great on all my Amazon devices and TTS works fine on the Sonos. This announcement used to work fine on the Sonos devices.
Interesting. So you’re trying to use the Alexa Media Player component to do TTS/announcements on Sonos One? Or does TTS work and announce does not?
I got a Beam about two weeks ago and I tried getting this to work and could not. I was under the impression it was impossible to use the Alexa Media Player with Sonos.
From when I tried I seem to recall there was no “official” documentation on this subject which was frustrating. I ended up writing a wrapper so I can do TTS and Announcements on any Sonos device using tts.amazon_polly_say
and the other media_player
services. I tried a few years ago and failed because SoCo was buggy. Now recently with pysonos and the hard work done on it, things work a lot better.
If only Sonos would give us access to their API
Yes. TTS works but announce doesn’t. Pretty sure TTS only works with the Mini Media Player custom component though. From my Lovelace:
entity: media_player.jeff_s_2nd_sonos_one
hide:
controls: false
power: true
progress: true
source: true
volume: false
tts:
platform: alexa
type: 'custom:mini-media-player'
I’ve had this and the announcing working ever since I installed my Sonos system a couple months ago but something has recently changed.
Did you ever get a resolution to this? I have tried setting this up with the integration and my Sonos one and couldn’t get it to work.
Announcing from the Alexa app still works.
Yes. I had to remove my Sonos from the Alexa group in HA and add it into my automation as a separate service. Then I had to change the type to tts instead of announce. My revised automation:
alias: Notify Jeff When Lygea Leaves Revved South
initial_state: true
trigger:
platform: zone
entity_id: device_tracker.life360_lygea
zone: zone.revved_south
event: leave
action:
- service: notify.mobile_app_jeff_iphone
data:
message: "Your Beautiful Wife Has Left Revved South"
data:
push:
sound: default
- service: notify.alexa_media
data:
target:
media_player.jeff_s_2nd_sonos_one
data:
type: tts
message: "Your Beautiful Wife Has Left Revved South"
- service: notify.alexa_media
data:
target:
group.alexa
data:
type: announce
message: "Your Beautiful Wife Has Left Revved South"
It is my understanding this is a work around until the Alexa component team addresses the issue. It works fine but the Alexa devices and the Sonos device are no longer in “sync” which is fine for now.
I had the same issue and created this topic:
I have tested multiple options but never got a solotion similar to Alexa announcement.
Sonos with TTS does not snapshot spotify connect.
Google Assistant webserver Announcement is saying to much useless stuff.
has everything working out for you guys?
this is my problem, my Sonos One speakers have been working up until HA verson .109 using TTS this used to work
- service: notify.alexa_media_david_s_2nd_sonos_one_second_edition
data:
target: media_player.kitchen_2
data:
type: tts
message: “Front Door Opened”
now nothing works. The weird thing is in lovelace I have a media control card setup for my Sonos One speaker for my kitchen who’s entity_id is media_player.kitchen_2
with this information in it
entity: media_player.kitchen_2
type: media-control
when I type some in the text to speak area of the card it plays on the kitchen Sonos One speaker like it should. Does anyone know how to set up the Developer Tool using service function to get you media play to work as a test, I’ve tried almost everything I can think of. Thanks
Can you verify this indeed works using the media control card? A few of us are having issues with the Sonos TTS and I can’t get it to work using that card or the mini-media card. I suspect it wouldn’t work in the Developer Tools section either.
I guess you’re the lucky one then. TTS works great on my Amazon devices but not on my Sonos. I tried all 3 of them. I think this is the case with most people trying TTS with the Sonos. All my devices including HA are up to date too.
are they Sonos One’s with Alexa enable?
what happens when in the Developer Tool State and you click on the icon, with the little i in it next to your media play you should be able to type something in there, does that work?
Yes they are Sonos enabled. Will not work through Developer Tools. Had been working great for several months, then stopped around May 1st, then worked again around the end of May then stopped again in June.
so did mine, having the same problem…
but its weird that it works thru the lovelace media control card
Has anyone figured this out yet?
Mine suddenly started working tonight. No updates were done so I have no idea how, but glad to have it working again.
Having this issue with Alexa enabled Sonos Roam- will work with TTS, but not using Announce?