#Alexa Media not working

1 messages · Page 1 of 1 (latest)

royal jay
#

why doesnt this action work:

data:
  media_content_type: music
  media_content_id: http://
8123/local/www/mp3_welcome_back_filippo.mp3
target:
  device_id: 8b6dceba968e805d4dc4fca63a2b86f6
action: media_player.play_media```

alexa says something that it cant play the media
chilly grotto
#

Hi @royal jay,
Are you sure HA can find that URL? I doubt it... Maybe...

#

Also you sure it's not https?

lean wolf
#

it's not whether HA can find the URL, but whether it's publicly accessible from the Internet

royal jay
#

i think i put that file on HA

#

wait

#

no i mean if i go to file editor and then to the folder WWW i do see the file in there

royal jay
#

is that a problem?

lean wolf
#

is that URL accessible by Amazon's servers?

#

or is it just a local IP?

#

Alexa devices are not local media players

royal jay
#

i am not sure what that means, sorry, i literally just took the mp3 file and then draged it and add it in the WWW folder

chilly grotto
#

That IP is an internet domain IP, not a local domain one. Are you telling us your home URL. VERY bad idea...

royal jay
#

thats it

royal jay
#

is it? D:

chilly grotto
#

Well I cannot talk to that ip address. If that is the IP address of your local Home Assistant, as it faces the internet, I suggest you go up and delete that number...

royal jay
#

i did

#

but its not my HA ip

chilly grotto
#

Who's is it? It's still up there, BTW...

royal jay
#

whereee

#

i deleted the numbers

chilly grotto
#

In your first message.

royal jay
#

i remvoed the ip only left 8123

#

OH

#

HOW

chilly grotto
#

In that...

royal jay
#

bruh i didnt enter in the message

#

ahahah it didnt edited lol

chilly grotto
#

ok

royal jay
#

ok so, i have put the file in the WWW folder, how can i tell alexa to play that audio?

#

i thought that ip/link was to get to the file.

chilly grotto
#

no, hold

royal jay
#

btw if i paste the ip on google nothing works for me too

chilly grotto
#

It's in the docs, trying to find it, but stuff in www is available under a different name, and you can share other paths as well.

#

www should be seen as /local I think.
Look in the docs at the homeassistant.yaml file.

chilly grotto
#

That's the doc.

#

I manually add my paths like that, but I think if you don't do that stuff, the www folder is mapped to /local/

#

Try it

royal jay
#

To play media from a media source via an action, use the uri scheme media-source://media_source/<media_dir>/<path>. Default media_dir is local.
this?

chilly grotto
#

The file is in www folder, right. Then /local/filename as the path.

royal jay
#

without local/www/filname?

chilly grotto
#

Just try things, you'll find it.

royal jay
#

she says: sorry direct streaming is not supported

#

its blocked by amazon not alexa media player or music assistant

jagged patio
#

You can't play local media to echoes

#

It has to be a source from the internet or skills

lean wolf
#

I tried to cover that earlier

#

I think I failed

jagged patio
#

Yeah, I just noticed the point was missed

chilly grotto
#

I don't use alexa. GH does it fine. TIL.

#

At least I got the home IP removed...

royal jay
#

should i like put that file on a yt video and then say to alexa to play the yt video?

#

does that work?

royal jay
#

anyone? D:

jagged patio
#

This is the reason for the Alexa Media Player custom integration. It makes media player entities out of echo devices that appear in HA, but it doesn't change how they work with media, so they can't use the TTS integrations. The custom integration lets you use the notify service instead of TTS, and that uses the usual alexa voice. So you can still get them to say what you want, @royal jay but using a different service. The integration has had many issues and a rough time lately, breaking often.

Google Home speakers are basically chromecasts which can play local media, and they show up in HA as media_players. So TTS works there.

You'll want to check the docs for that integration so see what services you can make use of. I've never used it much other than to test installation issues. When I first used the Alexa Media Player integration many years ago it felt like a hack dependent on Amazon never making any changes on their end, so I stayed away from it.

royal jay
#

but i dont have any google home speakers :/
thats why i am trying with alexa

jagged patio
#

I was explaning the difference