The problem is that I need to use a static delay for the duration of the announcement. But I would like to use something dynamic, so that I can create dynamic text strings and after the announcement is finished, the shapshot will be restored.
I found the script that you can trigger via an automation, but this also uses a static delay.
The idea is to use the “wait” action to trigger the snapshot restore after the TTS service is finished. The problem is, I can not find any entity or attribute where the status reflects the activity of the TTS.
Any idea if there is any status that I can use for this? Or is there maybe a totally different approach that you use to send announcements to the speaker and switch back to the initial source?