#Field type media in automations

1 messages · Page 1 of 1 (latest)

hazy flame
#

Hey all, I can't quite figure out the media field type in scripts, and I can't find any documentation. When I add a field of type media selector and try to use it, it won't let me select anything. I have a suspicion it has something to do with the accept I'm supposed to add.

What I'm actually trying to do is pass a media file to a script to be played back.

Can anyone help me with that?

little loom
#

I tried it myself, and I guess you're referring to this, where the button is greyed out?

hazy flame
#

That at least looks like what I get

little loom
#

Okay, then I can confirm it's not a problem just for you. However I don't have a solution for you

#

I would think it's a frontend bug

hazy flame
#

That's a real problem.

hazy flame
#

Found a workaround:

action: media_player.play_media
data:
  media:
    media_content_id: "{{ media }}"
    media_content_type: audio/mpeg
target: