Cannot stop audio playback on HomePod #AppleTV

I have created an automation that plays a local audio file on my HomePod at a certain time to wake me up using media_player.play_media. The problem is once the audio file is playing, I cannot stop it and must wait for the end. I would like to stop playback by telling Siri to stop, however when I do Siri respond with “nothing is playing”. Pressing the top of the HomePod does not work either.

Any Idea how i can solve this?
Thanks

I have the same issue with my “alarm clock”.
I’am gonne try to use a delay with the service media_player.stop parallel to with media_player.play_media , lets see if it works

Hi
How did you go with this issue, I am having the same problem.
I have a script I run in the morning that plays some background music sourced from my local library to my Hompod mini in my office - it starts when I enter the room
I have another script that just calls the Play/Pause service, I have a button on my stream deck that should just toggle play/ pause. This doesn’t work when the music is playing from the local library.
It does. however, works fine if I am playing music on the home pod from my Iphone.
Icendently the play pause button on the Media card in HA does work. So I am not sure why this won’t work when streaming from local library

Hi,
Don’t know if it’s still useful for you guys but what I ended up doing is creating an helper button, send it to homekit, create a scene that when I say “Stop the alarm” toggles the button and then in Home assistant created an automation that stops the playback when that helper button is pressed.