Offer option to loop/repeat an audio file on the media_player.play_media service

Would love a native way to do this. For those that don’t want to mess with scripts if you install music assistant this generates new media players (duplicates of your current ones including nest speakers) and allows you to send the command media repeat all command which will loop the audio. Benifit is thistle doesn’t get caught up in loops or interrupted. You can even pause and play and it will playing on loop.

Your seven-step process worked for me too based on testing; thank you very much for the cheat sheet. Haven’t set up completely to use at night because it took me a while to get working. It wasn’t working at first, but then realized in logs wasnt triggering, so added a trigger to go with the ‘while’ time range in step 5.

It’s been some time, but would you mind sharing the code? I am pretty new to home assistant and your explanation was not enough for me to get this up and running.