If you submit a pull request we can help you merge it in. Just remove the extraneous comments you have that you used for notes and also increment the version by 0.0.1 and allow edits and we can help. We all start from the beginning when it comes to programming and you’ve already made the first step by getting the code working for your use.
When things fail with Alexa in the future, try the tts you used in 2 above again and put the relevant part of the home-assistant log in a secret gist. It should include any errors you may have gotten from alexa and the alexa tts component. Remove any amazon emails/passwords
Private message me with the gist url. I can take a look and guide further.
Everything worked in the past, but right now I do not have the alexa_tts entity.
All my Echos are present an I can control them via HA. If I try to use the Text to Speech feature in the media card Alexa tells me that there has to be the Alexa Text to Speech service.
I already upgraded to the latest alexa.py and deleted the py-cache, but nothing changed!
Should playing to MRM groups work the same as a specific device?
If I do a service call in the dev console using “media_player.living_room” as the entity, it works fine (that’s a single echo). “media_player.whole_house” does not. I can control the Whole House MDM via Media Player Card if I play it using voice commands. I debugged the JSON being posted, and everything looks identical as far as what is POSTed to alexa.amazon.com. Any ideas or guidance on MRM groups?
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”?