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
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.
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.
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.