Automation to Play Media then when stopped play TTS

What I am am doing is basically using a Google Home as an alarm clock. I have an automation setup to where when a time is reached it plays a media file of 1 hour of alarm sounds… when I wake up and say “okay Google stop!” this stops the media. I would like to trigger another action from the media being stopped ie when I tell it to stop playing the media file it then plays back a TTS message.

So pretty much can I trigger an action to be performed when a certain media file is stopped? I don’t want this top happen when I tell GHome to stop any media file.

Thanks!

Think I figured this out…

If I set an automation to happen when the media is stopped, with the condition of the the time frame of my alarms, it should work fine.

Any other more technical approaches are welcome.