How to make Atom Echo appear as a media player?

I added an atom echo via esphome but cannot use it in any automatons or scripts as an audio target.

What do I need to change? I want to be able to use it for audible alerts

You have to add and setup the media player component to the devices yaml

thx but where is the file?