I have the problem I constantly get notification for captcha and in most cases I do not see captcha image
I have same issue.
I get the notification that I need to login and it fails. No captcha. I have had to delete the entire integration twice the last days.
It is even worse. I just deleted the Integration and uninstalled it from HACS. And then reinstalled, restart HA, and tried to add the Alexa media player integration. That fails. The integration is not added. And nothing useful in the log.
I reverted back to 111.4 and everything works again. It seeme that 112.0 has a lot of problems with different integrations: Alexa Media Player, Lutron Caseta, Harmony Hub were all broken after I upgraded.
Good to know, thanks for the info. I already planned to update
So the old rule is still active: wait for x.x.5
I was able to finally install the integration again after many failed attempts.
This may be something we have to debug as you may be running into an anti-automation page that has javascript embedded. We only had an untested fix for that issue. The workaround was to enable 2FA, but that means we can’t test a fix for it. If you are willing to debug it while it’s a live issue, please provide some logs and we can try to resolve it for everyone.
The event for relogin is live.
I’m trying to re-install after un-installing because the integration stopped working and I get the following error after entering my amazon credentials:
“Unknown error, please report log info”
I don’t know to whom I’m supposed to report this, but the log shows this:
## Log Details (ERROR)
Logger: alexapy.helpers
Source: custom_components/alexa_media/config_flow.py:181
First occurred: 1:14:35 AM (2 occurrences)
Last logged: 1:28:11 AM
Followed by a bunch of stuff about cookies and alexa login that I’m not sure should be posted here.
Can anyone help me figure this out?
You can either open an issue or if you’d prefer to share your logs, you can DM me. Please make an attempt to remove your personal information. Please make sure you enable all debugging logs.
today, out of the blue, I’m notified that I have to log in to Amazon (again). I enter the capcha and my phone gets a message that they detected an unusual login…do I accept…I accept but that doesn’t help…I go back to HA and I once again am asked for the capcha.
I kind of rely on this working…any way around the problem??
Re: Playing a music playlist
I can confirm the “Routine Stream” skill can play a .m3u playlist with one Alexa command. I use media_player.play_media
to start a custom alexa routine, and that routine opens the Routing Stream skill. Music plays immediately.
Asking Alexa to Shuffle the playlist doesn’t work, so I wrote a simple cronjob that randomizes the songs in the .m3u every hour.
The .m3u and song files are hosted on a private webserver.
can you please give more detail how to make this work? if testing in the developer tools->services page, what “service data” needs to be send to call the service to have echo play .m3u? thx!
I got a notification thanks to the new relogin event, however I’m not able to clear the captcha. When I trigger a TTS test (node red), I see the Amazon captcha dialog box pop on screen. Then I type the captcha challenge and the dialog closes, AS IF everything will be OK. But then I trigger the TTS test again, and the captcha dialog pops again. I repeated this 4 times before giving up and coming here to report.
I see in the log:
2020-07-08 14:20:46 ERROR (MainThread) [alexapy.helpers] alexaapi.run_behavior((<alexapy.alexaapi.AlexaAPI object at 0x7f2d2221add0>, {'@type': 'com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode', 'type': 'Alexa.Speak', 'operationPayload': {'deviceType': 'A32DOYMU******', 'deviceSerialNumber': 'G************291', 'locale': 'en-us', 'customerId': 'A*********JMK', 'textToSpeak': 'i like cheese', 'target': {'customerId': 'A*********JMK', 'devices': [{'deviceSerialNumber': 'G************291', 'deviceTypeId': 'A32DOYMU******'}]}, 'skillId': 'amzn1.ask.1p.saysomething'}}), {'queue_delay': 1.5}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
2020-07-08 14:20:46 ERROR (MainThread) [alexapy.helpers] alexaapi.send_sequence((<alexapy.alexaapi.AlexaAPI object at 0x7f2d2221add0>, 'Alexa.Speak'), {'customerId': 'A*********JMK', 'textToSpeak': 'i like cheese', 'target': {'customerId': 'A*********JMK', 'devices': [{'deviceSerialNumber': 'G************291', 'deviceTypeId': 'A32DOYMU******'}]}, 'skillId': 'amzn1.ask.1p.saysomething', 'queue_delay': 1.5}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
2020-07-08 14:20:46 ERROR (MainThread) [alexapy.helpers] alexaapi.send_tts((<alexapy.alexaapi.AlexaAPI object at 0x7f2d2221add0>, 'i like cheese'), {'customer_id': 'A*********JMK', 'queue_delay': 1.5}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
2020-07-08 14:20:46 WARNING (MainThread) [alexapy.alexawebsocket] Websocket is missing ubid-main and ubid-acbcom cookies; please report this if anything isn't working.
I could delete the .pickle file and all, but maybe the current state can help with debugging @alandtse?
If you have the logs for the captcha attempts that will be enough. If you want to try a restart with captcha attempt and also get those logs that is probably all I’d need before you delete the pickle.
After reading your post, i did the following:
In HA i went to Notifications.
saw “Click button to configure Alexa Media Player - Captcha”
clicked and saw the captcha challenge, entered captcha text, then captcha dialog closed.
Called notify.alexa_media_my_echo (TTS) and heard nothing from Alexa.
Log said:
2020-07-08 17:00:37 ERROR (MainThread) [alexapy.helpers] alexaapi.run_behavior((<alexapy.alexaapi.AlexaAPI obj
ect at 0x7f2d2221add0>, {'@type': 'com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode', 'type': 'Alexa.Speak', 'operationPayload': {'deviceType': 'A32DOYMU******', 'deviceSerialNumber': 'G************291', 'loca
le': 'en-us', 'customerId': 'A*********JMK', 'textToSpeak': 'i like cheese', 'target': {'customerId': 'A******
***JMK', 'devices': [{'deviceSerialNumber': 'G************291', 'deviceTypeId': 'A32DOYMU******'}]}, 'skillId'
: 'amzn1.ask.1p.saysomething'}}), {'queue_delay': 1.5}): An error occured accessing AlexaAPI: An exception of
type AlexapyLoginError occurred. Arguments:
('Session is closed',)
2020-07-08 17:00:37 ERROR (MainThread) [alexapy.helpers] alexaapi.send_sequence((<alexapy.alexaapi.AlexaAPI ob
ject at 0x7f2d2221add0>, 'Alexa.Speak'), {'customerId': 'A*********JMK', 'textToSpeak': 'i like cheese', 'targ
et': {'customerId': 'A*********JMK', 'devices': [{'deviceSerialNumber': 'G************291', 'deviceTypeId': 'A
32DOYMU******'}]}, 'skillId': 'amzn1.ask.1p.saysomething', 'queue_delay': 1.5}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
('Session is closed',)
2020-07-08 17:00:37 ERROR (MainThread) [alexapy.helpers] alexaapi.send_tts((<alexapy.alexaapi.AlexaAPI object
at 0x7f2d2221add0>, 'i like cheese'), {'customer_id': 'A*********JMK', 'queue_delay': 1.5}): An error occured
accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
('Session is closed',)
Next, I restarted HA, and tried the same service call.
It failed with:
Call-service API error. Error Message: Service not found.
(That’s a node red Call Service node; nothing was logged to home-assistant.log)
If i try media_player.play_media, the log says:
2020-07-08 17:33:46 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities media_player.fred_s_echo_dot
and there are no other log messages.
Thanks. Sorry I should’ve been more clear, I thought you had enabled debug logging. That’s actually what I needed as it will show the login attempt and other info. If you’re able to enable it for the next reboot and try to log in, that would be helpful. The TTS test won’t really show any real data unless you’re successful in logging in.
You can directly DM me that info but please also do a quick scrub before you send it.
so… today my alexa media player device apparently went on the fritz and is stuck in an endless loop of saying:
Amazon will send a push notification per the below message. Please completely respond before continuing.
is this something new?
Have you tried restarting Home Assistant? I had a similar issue yesterday with a notification saying something like “please enter a valid email address or telephone number” with just a Confirm button. This would disappear after clicking Confirm but reappear whenever I tried to do anything (like trigger a routine, etc.).
I restarted Home Assistant and it went away and everything is now working as expected.
i have tried restarting multiple times. i recall the email/phone number thing. this is sending me notifications to approve/deny a ‘suspicious login’
ok… well after fully rebooting the whole system (not just home assistant) i was able to re-complete this task. not sure why this happened as it was working for months with no issues