#Play hosted audio file on button press - media_content_id?

1 messages · Page 1 of 1 (latest)

untold bramble
#

Hi all,

I'm trying to develop an automation where a series of things happen upon button press. The two main actions are a scene is triggered, and I want a media file to play from one of my media players.

For the audio piece, I'm having trouble getting this to work. Here is the yaml I've got currently:

action: media_player.play_media
data:
media_content_type: music
media_content_id: /media/local/Wings Goal.wav
target:
entity_id: media_player.galaxy_tab_s4

I believe something is wrong with the media_content_id. I've tried numerous iterations based on findings from the web, but I can't get it to work. Does anyone have any thoughts on this aspect? Am I maybe going about this the wrong way?

dapper pagoda
#

try this format for the media_content_id
http://x.x.x.x:8123/media/local/filename.ext

#

probably best not to have a space in the filename too. although i dont know if it will matter or not