Hi Jan Ø,
I haven’t actually tried working with groups. But it seams like the script should work with groups too.
take a look at this this post: How continue play the previous music after a tts voice announcement? - #22 by wburgers
But I am not sure what happens if not all group members were playing the same source at same volume level, pre TTS, you won’t be able to resume different sources at different volume levels. Maybe you can use one of these as your master reference and resume to its state pre TTS.
Otherwise I’ll suggest that you change
mode: single
to
mode: parallel
then call the script once for each member of the group. I expect that the script will then be executed on all entities in parallel so they don’t get delayed one after another. Should be simple to try it first.
And if this works, please consider making a new script with the same parameters. The entity input parameter is the group, and the only thing this script does, is calling the original script once for each group member, using a for loop.
Make a try and let me know the outcome.
I can probably assist composing some new code if you like
Kind regards,
Ghassan