Echo Devices (Alexa) as Media Player - Testers Needed

Hi all,
I’m recently getting a lot of “Too many requests” errors when using the alexa_media notification (TTS) service. Right now I cannot execute 3 requests in a row even when the wait time between those requests is in the multiple minutes range.
Anybody knows whether the too many requests error is an Amazon voice service wide error or is on a per user/app basis? Because I can’t believe a couple of requests with longer wait times in between can cause this.
What is your experience?

PS: I use HA core 0.109.3 on Raspbian Buster, raspberry pi 4 (2 GB), alexa_media 2.6.1

Hi Followed all the steps installing via latest HACS, filled in my credentials, got pass the captcha and the I got this window requesting: Please select verification method by number. (e.g., 0 or 1)

I tried both with no luck and got this error log:

Log Details (WARNING)

Logger: custom_components.alexa_media.config_flow
Source: custom_components/alexa_media/config_flow.py:238
Integration: Alexa Media Player (documentation)
First occurred: 5:07:59 PM (1 occurrences)
Last logged: 5:07:59 PM
Unknown error: ‘1’

Then you enable : https://www.amazon.com/gp/help/customer/display.html?nodeId=202073820

and everything is fine…

1 Like

I’m also unable to setup this integration since 0.109.0.

Hi, I had to change my Amazon password a while back, and the cookie/token seems to have expired now and it won’t sign in. I assume it’s still trying to sign in with the old password.

Screenshot 2020-05-04 at 12.13.21

What is the recommended way of fixing this?

Should I remove this integration and add it in again?

Is there a way I can change the details it’s using to login to Amazon

EDIT: I removed the integration and re added it and it let me re enter my login info. Problem Solved :slight_smile:

Has anyone figured out a way to use alexa voice profiles with Hass yet? I think this would be very useful for tailoring the system to specific users. For example, if my daughter asks to turn on the TV, turning on the content restricted profile on the xbox, but if I ask, have it go to my profile… Is there any way to access which profile is in use for a request?

1 Like

Sorry I don’t know so I can’t help with that, but I would still be interested in this too.

I switched to UI configuration, but now i am not anymore able to use include or exclude options…
How to manage all the entities regarding this?

1 Like

This may sound cheesy but just wanted to say…

My Home Assistant blew a gasket this past weekend. Supervisor wouldn’t start up at all. I fiddled with it Saturday night and couldn’t get it going. I spent a good part of Sunday rebuilding it. I pulled the SD card out and copied all the config files off and re-imaged with latest HASSOS image.

I was SURE my Alexa media player wasn’t going to work after sitting offline for 24 hours. I figured I would have to fight to get it registered with Amazon and everything again.

But, NOPE! As soon as it booted the new image with the saved config files it started working right away announcing when my kids left the house!

Thank you!

1 Like

Is the Amazon Link supported?

Hey all, just wondering if anyone has come up with a good way to make alexa shut up about bluetooth disconnection?
I have it working soso by reducing volume just before speaker switches of bluetooth, then repeat volume change , switch to local speaker etc…
sometimes alexa will remain quiet, but more often than not there will be some words said, at a different volume (usually higher) than is actually set.
thanks

How is it possible to exclude devices if you are using the integration setup and not the configuration.yaml. I know it is possible to do this during setup but how can I do this afterwards?

1 Like

Is anyone else having trouble with TTS on the Alexa enabled Sonos speaker? I use mine to announce actions but it quit working this week. Not sure if an update broke it or not.

1 Like

@enigma2k

Delete and readd the integration. HA doesn’t allow editing of config entry settings yet.

Glad it worked out for you!

Issue has been reported. I think something changed on the Sonos or Amazon side.

1 Like

Notice that the latest version 2.7 added a feature to call skills.

Can it call generic skills instead of custom skills?

If so how can we figure out the skill id of generic skills?

Updated: Answered below :grin:

I’m having problem I think since .109 update with both Sonos and Echo

I’m having similar issues as well. Tried removing and re-adding the component. Error log –

  File "/config/custom_components/alexa_media/__init__.py", line 17, in <module>


    from alexapy import AlexapyLoginError, WebsocketEchoClient, hide_email, hide_serial


  File "/usr/local/lib/python3.7/site-packages/alexapy/__init__.py", line 11, in <module>


    from .alexaapi import AlexaAPI


  File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 37, in <module>


    class AlexaAPI:


  File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 85, in AlexaAPI


    ) -> ClientResponse:


  File "/usr/local/lib/python3.7/site-packages/backoff/_decorator.py", line 181, in decorate


    "backoff.on_exception applied to a regular function "


TypeError: backoff.on_exception applied to a regular function inside coroutine, this will lead to event loop hiccups. Use backoff.on_exception on coroutines in asynchronous code.

I’m trying to get this to play a SiriusXM channel through node-red but I’m getting an API error.
I’m wondering if somebody sees what I’ve got wrong here.

My data field looks like this:
{“media_content_id”: “The Highway”,“media_content_type”: “SIRIUSXM”}

extra keys not allowed @ data[‘0’]
This is the full error

  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
    connection.context(msg),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1209, in async_call
    processed_data = handler.schema(service_data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 208, in __call__
    return self._exec((Schema(val) for val in self.validators), v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 287, in _exec
    raise e if self.msg is None else AllInvalid(self.msg, path=path)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 283, in _exec
    v = func(v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 205, in _run
    return self._exec(self._compiled, value, path)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 287, in _exec
    raise e if self.msg is None else AllInvalid(self.msg, path=path)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/validators.py", line 285, in _exec
    v = func(path, v)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 817, in validate_callable
    return schema(data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 272, in __call__
    return self._compiled([], data)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['0']
type or paste code here

FIXED. Changed data to
{“media_content_type”:“SIRIUSXM”,“media_content_id”:“The Highway”}

Make sure HACS is at the latest version. Something is forcing an old version of backoff to be installed which breaks the component.

Updating HACS fixed it. Thanks.

Had this working a dream a few updates ago. Can’t remember when it stopped working but tried to get it going again and no dice. Keep getting the following error:

Source: custom_components/alexa_media/config_flow.py:218
First occurred: 10:36:57 PM (2 occurrences)
Last logged: 10:41:03 PM
alexalogin.login:An error occured accessing AlexaAPI: An exception of type AssertionError occurred. Arguments: ()

I’m running the latest version of Hassio and HACS

Should add also I’m using amazon.co.uk (if that makes any difference)

1 Like