I’ve been trying to find a solution for this now for a while, and can’t seem to get things to work as I’d like and I’m hoping someone can help me out.
I’d like to use HA to play voice announcements over my Sonos speakers, some of which are Alexa enabled. I can get the basics of this to work, the problem comes into a few things: currently playing music, volumes as well as grouping. Most of the time in my house, there is music playing. The kids always have a couple speakers grouped together playing something. If they’re blasting Disney, using
service.cloud_say to the kitchen, will end up blasting the announcement at an insane volume possibly on multiple speakers through the house.
To try and combat this issue I’ve tried taking a snapshot, pausing the speakers I want to play it on, joining those speakers, setting the volume, playing the cloud_say, then restoring the snapshot. This has a couple issues. First, the snapshots don’t seem to consistently work very well, sometimes they don’t restore properly. It’s also very jumpy and abrupt. The tracks will “rewind” to where they were a few seconds before the announcement started.
I’ve attempted to use the HACS alexa media player integration as well with no added help.In an ideal scenario what I’d like is to be able to just use an “announce” feature over the speakers I want to play it on without grouping or ungrouping. The music would lower and the person in the box would announce, then raise the volume back as it does with other features.
Has anyone solved this in a great way? I’d love to hear your ideas and solutions!