Echo Devices (Alexa) as Media Player - Testers Needed

Any ideas on this one?

2019-01-22 14:03:53 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform alexa
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/media_player/alexa.py”, line 146, in setup_platform
config.get(CONF_DEBUG))
File “/config/custom_components/media_player/alexa.py”, line 639, in init
self.login_with_cookie()
File “/config/custom_components/media_player/alexa.py”, line 662, in login_with_cookie
self.login(cookies=cookies)
File “/config/custom_components/media_player/alexa.py”, line 797, in login
self._data = self.get_inputs(soup)
File “/config/custom_components/media_player/alexa.py”, line 675, in get_inputs
for field in form.find_all(‘input’):
AttributeError: ‘NoneType’ object has no attribute ‘find_all’

That error happens if the page Amazon is giving you is not giving any login fields for us to pass login/password data. This can happen if Amazon wants you to reset your password. We’ve heard reports of this but haven’t seen the page yet to try to handle it gracefully in the component. We can debug this with the advanced debugging options which will show you the HTML pages the component sees when trying to log in. If you’re able to generate the pages and want to help debugging, separately DM me the scrubbed html pages plus logs.

Dear VladTepz,
I cannot pass the capcha challenge. It shows 2-3 capcha, then verification method (I input my email address here) then comes the Begin.
I could not pass the Begin even I pressed Confirm button tens times. Tried your suggestions also no help
Thank you

It is the 2-step verification procedure on Amazon.
Delete it and the capcha will work.

Dear IK0ADR,
I tried your suggestion but still failed.
Thanks for your help
Minh Chau

If it’s asking you to identify the 2FA, you need to input “sms” or “email” as Amazon is asking which method and HA doesn’t allow us to create an option or dropdown field to request data. Do not input your actual email address as that is not an option we parse.

Dear alandtse,
Thank you.
Actually, I tried to input “email” for several time but nothing happen so I tried inputing actual email instead.
I will try again.

Dear alandtse,
Thank you!
It’s done!

Since 2 or 3 days ago, a panel appeared named CONFIGURATOR with the following text:
“Alexa Media Player - Begin”
“Please hit confirm to begin login attempt.”

Altough I press confirm and nothing happens. I already deleted the cache, generated a new captcha, but as soon I enter the captcha the same message appears again.

Since upgrading to the latest version of HA, my Alexa Media Players have disappeared

Anyone have the same problem

Paul

For me some of the echo dot changed names. Had to adjust my config to reflect the new names

Thanks for the reply
I had some strange things happen with the upgrade

I rolled back to .86
Then 're installed again and all appears ok so far
Paul

Did you delete the alexa_media.pickle file in your configuration directory?

Found the problem, when I tried to enter the amazon website there was a request to change the password for security reasons. As soon I updated the password and changed it on home assistant, everything started working again.

Is there a way to retrieve the current Alexa Volume level so I can restore previous level after I turn it up for tts or other?

tried deleting all three files and after updating the captcha, I now have my dots showing up again :slight_smile:

Sorry I missed that. I’ll give it a shot :slight_smile:

Is there an updated config for this? I’m trying and failing to get it working. A UK Amazon Alexa user here.

I’m the UK and this works, note: no quotation marks.

media_player:
  - platform: alexa
    email: !secret amazon_user
    password: !secret amazon_password
    url: amazon.co.uk

without the " " that the original post outlines?

When I “Check config” it just keeps loading and never says Correct or errors

but when I restart HA, I get a notification saying there’s a problem with my config