Echo Devices (Alexa) as Media Player - Testers Needed

Hi, i will try again, my config looks like this:-
tts: platform: alexa

The error message i get when checking is

Platform not found: tts.alexa

Log Details (ERROR) Sun Mar 03 2019 11:16:04 GMT+0000 (Greenwich Mean Time) INFO:homeassistant.util.package:Attempting install of colorlog==4.0.2 Testing configuration at /config Failed config General Errors: - Platform not found: tts.alexa Successful config (partial)

My mini -media-player looks like:-
artwork: cover entity: media_player.richard_s_echo_spot hide: power_state: false source: true volume: true icon: 'mdi:amazon-alexa' tts: alexa type: 'custom:mini-media-player'

I always downloaded the files directly and it worked for me every time. Don’t see the difference.

Just tested:

  "entity_id": "all",
  "media_content_id": "qmusic",
  "media_content_type": "TUNEIN"`

This works to let TUNEIN play on all of my Echo Dot’s

Invalid config, should look like this:

- type: custom:mini-media-player
  entity: media_player.echo
  tts:
    platform: alexa

@alandtse Did anything change with the alexa_tts service call in or after v1.0.0? Doesn’t seem like it from reading the docs.
Some users can’t seem to get tts working together with the mini-media-player card anymore. Could be caused by invalid card configurations, but I can’t test myself since I got no echo devices.

it depends on what you mean by “download”. If you mean going to the github and clicking on the “clone or download” button and then copy the files to the correct location then that will work too.

1 Like

Just tested it. I’m on the latest version of this component and also your card. TTS works for me on my echo plus using the mini-media-player card.

1 Like

This is exactly the way I do it. Download zip file. Didn’t there is a wrong way to download the files.

Could you explain what this does in the miniplayer? Don’t have it and I’m interessted how you use it? What can you do with it? Advantage compared to the normal mediaplayer.

Some people go to the github code listing and copy/paste directly from there and think they are “downloading” the file. But what they are doing is copying an html page and that’s what causes issues.

Downloading by the button or copying the “raw” code are generally functionally equivalent.

1 Like

I don’t use the mini-media-player for tts. I just tested it to help out.

Ok, maybe someone else can say what this is able to do.

@alandtse another quick question. Is it possible to use tts with the fire stick too? I tried it my calling a routine and turning on my input boolean with that and then it should answer, but it didn’t.
Echo devices work. Also last_alexa sensor picked the fire stick as the right last device, but it seems tts is not working for the stick.

Can someone confirm that?

Had the issue that one of my alexas was way to quiet. My standard volume was set to 0.3. This is ok for most devices but not for an echo dot second gen.

Just want to share what I came up with, to set different volumes using the last_alexa sensor:

alexa_set_volume:
  sequence:
    - service: media_player.volume_set
      data_template: 
        entity_id: '{{ states.sensor.last_alexa.state }}' 
        volume_level: >
          {% if is_state("sensor.last_alexa", "media_player.echo_dot_second_gen") %}
            0.5
          {% else %}
            0.3
          {% endif %} 

Hope that helps someone. With an elif you could also add other echo to get a certain value.
You have to call that script before you send the tts service.

1 Like

It allows you to have a tts input directly on the card, nothing special.

hyperion_8123_lovelace_4%20(45)

EDIT:

Thanks for testing :pray:

3 Likes

On my behaviour it works if i call the service directly from the dev service, but it doesn’t work if i try to call this from the frontend (i.e. from the card directly). I always get ‘failed to call media_player/alexa_tts service’.

i dont think its possible, because you cant use it in the app.
you cant send a text to the stick with a routine.

and you can ALWAYS check if something is possible by trying it in the app.
if you CANT do it with the app, you cant do it with HA.

You are right, did not think of that.

Trying that, the fire stick answers that “this service is not available yet”.

1 Like

I added the two sections

Setting the volume for the last called device at a certain level

and

Send a tts to the last called alexa device

here :https://github.com/keatontaylor/custom_components/wiki/Configuration

Maybe someone with english as his/her mother-tongue could read through it and correct it.

Anybody has any lagging problem about the state changing in the HA?
When I change any state ( radio station, a music in the Spotify, volume, etc.) the state is not changed, sometimes changes with lot of delays sometimes the previous state remains in the HA and Hadashboard too. It is true for the mini mediaplayer and the native mediaplayer too.

The overall platform changed from media_player to alexa_media.media_player so I don’t know if the UI card used that platform name. The entities should remain as media_player.echo. The TTS service is still media_player.alexa_tts but we will probably deprecate that after changing it to a notify service.

If it works in the service, you may need to share the exact service call you’re using to @kalkih as I think it’s with the card.

@kalkih, on another note, would there be any benefit if we exposed the playlist queue or the history to your UI? I’ve been meaning to see if any media_player UIs actually would use that data if we exposed it. I don’t think it’s actually in any media_player UIs right now but perhaps you’d know.

What version of the component are you using? As of the 1.x.y branch, we reduced the scan_interval frequency so it’ll take up to a minute to determine a media_player is in use if you’re interacting with Alexa outside of HA. Interacting with alexa_media in HA will do it immediately (e.g., calling alexa_media.update_last_called).

Thanks for the info, it does seem to be working as expected when the correct card config is provided based on feedback I got. :+1:

Not sure, I probably wouldn’t use it since I try to keep the mini-media-player card pretty simple.
I Haven’t seen it being used anywhere neither but could be a cool thing to have in potential upcoming custom/core media cards in the future.

I am having issues with the 1.0.0 version of the component. (First time installation for the component). It seems that I should be getting some Capcha configurator, but I can’t tell where that should be showing up. I don’t see it anywhere. I see that there’s an entity for the captcha configurator, but I’m clueless as to where it should be. I also can’t see any of my Alexa devices, but I don’t see any information in the logs about any issues.

image