Echo Devices (Alexa) as Media Player - Testers Needed

Glad its all working OK . I only use this media player for TTS and for changing bluetooth speakers . Alexa is far superior at controlling music than any GUI

Yes I wanna also use only tts but I try to find how script should be look.

No change, even playing music. I am from Portugal :sun_with_face:

what amazon site you use to login?

For me if I try amazon.com after enter email\pass site redirect me to co.uk and only this works for me in configuration.yaml settings with amazon.com I have also status unavailable.

I maked script to test

alexa_play:
sequence:
- service: media_player.media_play
data:
entity_id: media_player.alexa

and zero reaction

media_player.alexa status is all time paused.

I am using amazon.co.uk

I’m pretty sure that you need to give it a media file to play before it will play media.

alexa_play:
  sequence:
    - service: media_player.media_play
      data:
        entity_id: media_player.alexa
        media_content_id : Blank (Silent Track)
        media_content_type: AMAZON_MUSIC

that content will only work if you have amazon prime but at least you get the idea.

Somebody is also able to play a amazon prime playlist?

1 Like

Yes, just specify it in the media content id

1 Like

I don’t really want play or stop any media … just wanted tested function.

I wanna use tts service:

alexa_test2:
sequence:
- service: media_player.alexa_tts
entity_id: media_player.alexa
data_template:
message: ‘Test’

but still nothing work.

are you sure your entity_id is correct?

also it is always best to properly format your code per the blue box at the top of the page.

I’m not sure if it makes any difference but try this instead?

alexa_test2:
  sequence:
    - service: media_player.alexa_tts
      data_template:
        entity_id: media_player.alexa
        message: ‘Test’

I always check tab dev-state and copy name.
media_player.alexa is now standby and looks like is ok but I cant control player.

Move the entity_id above the data_template and line it up (spacing with data_template)
change the data_template to just data. You can use data_template if you want to pass it variables from you HA.

just go to the dev page and use the service there. its more easy to test

use this
{“entity_id”: “media_player.alexa”, “message”: “test”}
for your jason

The format I use is just like I suggested and it works fine. That’s why I suggested it.

Does this work? I have prime and not getting anything.

Oops. I didn’t fix the media_player service and forgot the quotes.

Should be:

alexa_play:
  alias: Alexa Play Test
  sequence:
    - service: media_player.play_media
      data:
        entity_id: media_player.your_dot
        media_content_id : "the Ballad of John Henry"
        media_content_type: "AMAZON_MUSIC"

And if you play a silence song then you won’t hear anything (obviously). Try the song above and it should work. I just tested it right now and it’s playing while I’m typing this.

And there is my Problem - I can call for songs but not for playlists
I can already search for songs thanks to rrubin0 - here known as automateit

btw: Thanks man!

When you want to check it out how far i got in 2 minutes changing some entrys
https://hastebin.com/owahocojah.coffeescript

Thats the only information Ive got via :states:

source_list: Local Speaker,TVBluetooth
media_content_type: music
volume_level: 0.6
media_duration: 232
media_title: Instinkt
entity_picture: /api/media_player_proxy/media_player.your_echo_dot?token=550eec[retained]bca59&cache=5d5fa0c54d847e89
media_artist: Prinz Pi
source: Local Speaker
available: true
media_album_name: Donnerwetter!
supported_features: 23357
is_volume_muted: false
friendly_name: Your Echo Dot

Problem resolved. I tried amazon.com, instead amazon.co.uk, and now everything is working :slight_smile:
Thank you !

1

I tried still nothing

I can’t control anything.