There have been scripts posted in the thread to help set the volume by playing a silent track prior to any TTS announcement. Please search. Alternatively, you can wait till someone resolves it here.
As for custom updater, no one’s filed an issue for it although people have requested it a couple of times.
I believe it’s an Amazon limitation that it only supports Amazon’s built in music services; HA can’t interact with the groups directly. Workarounds have been to create a HA group with all media_player entities and then adjust for the different response times since they do not all sync anymore.
HA can interact with music groups, but only for music.
you can only do with HA what you can do with an alexa (so with something you say, or something you do in the app)
you cant talk to all alexas at the same time, so it cant respond on all at the same time.
remember there is no such thing as TTS on amazon. in HA we create a hack to mimic TTS.
I think we can make this script a little smarter, I had problems with the delay as the song was not playing when it sets the volume after the 3 second delay. I think the wait_template is the right choice.
I’m not sure you can. If those delays are needed and your goal is to “play something, turn the volume up, and then say test”, then it’s pretty much optimized.
@petro in another thread you showed me how to use scripts with data_template to use them in different automations. This we could avoid a lot copied and pasted code.
I copied the code above to every tts service call. So maybe this could be make it more compact.
I remember a conversation about calling such a script (with variables) multiple times at the same time.
Will this fail when to automations trigger this script at the same time? I think the one that is triggers some milliseconds before will “win”, right? The other one will “ignored”?
Silly question, but is there any way to clear the media player card in the front end? I’m not using Love Lace and when I call media_player.turn_off or any of the other services the status of the media player changes to “paused” and the artist name, title and cover art are still displayed.
At this point no. Amazon continues to populate last song information so the media player continues to show it when we update the media_state. If you play flash briefing (and potentially other Amazon skills), the media_player stops showing info and will clear the media_player.
It might be possible to force a clear by doing something with the power button (which just does a pause now) where we turn off device updates and force clears the media_details.
Alternatively, we could avoid showing the media info if the device hits “idle” state which appears to happen when it finishes the play list naturally. Others may have to chime in if they ever see it in idle state otherwise.
I added a timeout to the wait_template, because if the command to set the silent song fails, it waits forever and nothing happens.
So if it fails it should play the tts message in the volume that is set.