Local media file for apple tv how to use in automation

hi i love i can play local media files on the apple tv, but i cant figure out how to use it when using it in any automations? I have tried call service media play etc.

Any tips?

god damn, i used call service, i didnt notice there was a seperate play media function, everything is working fine

Weird thing is that it works the first time, after turning on the apple tv. but then it fails, while the error message

Failed to call service media_player/play_media. already streaming to device