alexa_media_player: Voice (TTS) Notifications stop working after first scan interval: `Login error detected; not contacting API`
Voice notifications only work when you reload the integration, but after a while they stop working.
System details
- Home-assistant (version): 2024-8
- alexa_media (version from
const.pyor HA startup): 4-12-7 - alexapy (version from
pip show alexapyor HA startup): - Amazon [2FA is enabled] (https://github.com/alandtse/alexa_media_player/wiki/Configuration#enable-two-factor-authentication-for-your-amazon-account) (y/n). Y
Logs no
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 77 (5 by maintainers)
With version 2024.8.1, notifications still fail? Many thanks to the developers who do what they can and I know it is difficult and we all want it to work but developers also have their private lives and do what they can, I repeat again many thanks to the developers
I wanted to thank you and express my gratitude for your selfless work to make this integration work. Since yesterday at 9pm until today, Alexa has been notifying me when it is her turn. Thank you very much.
I’m with you. They are people who help everyone altruistically and invest their precious time in helping others. On the other hand, voice notifications keep failing and if you reload the integration too often it asks you to reauthenticate. But… WITHOUT REAUTHENTIFYING IT STILL WORKS AND YOU HAVE VOICE NOTIFICATIONS
2024-08-10 18:33:01.532 DEBUG (MainThread) [alexapy.alexahttp2] Received raw message: Content-Type: application/json
{“directive”:{“header”:{“namespace”:“Alexa.Mobile.Push”,“name”:“RenderUpdate”,“messageId”:“b85c5ea9-b8b3-4d64-ac45-f5d4af05e5ea”},“payload”:{“renderingUpdates”:[{“route”:“EventBus:tcomm::message”,“resourceId”:“PUSH_EQUALIZER_STATE_CHANGE”,“resourceMetadata”:“{"command":"PUSH_EQUALIZER_STATE_CHANGE","timeStamp":1723307581469,"payload":"{\"dopplerId\":{\"deviceSerialNumber\":\"G0922M05243705WV\",\"deviceType\":\"A2DS1Q2TPDJ48U\"},\"bass\":0,\"midrange\":0,\"treble\":0,\"destinationUserId\":\"A1A18GQN4AHK1F\"}"}”}]}}} --------abcde123
2024-08-10 18:33:01.533 DEBUG (MainThread) [custom_components.alexa_media] j9@hm: Received http2push command: PUSH_EQUALIZER_STATE_CHANGE : {‘dopplerId’: {‘deviceSerialNumber’: 'G5WV’, ‘deviceType’: ‘A2DS1Q2TPDJ48U’}, ‘bass’: 0, ‘midrange’: 0, ‘treble’: 0, ‘destinationUserId’: 'AK1F’} 2024-08-10 18:33:01.533 DEBUG (MainThread) [custom_components.alexa_media] Updating media_player availability {‘dopplerId’: {‘deviceSerialNumber’: 'G*5WV’, ‘deviceType’: ‘A2DS1Q2TPDJ48U’}, ‘bass’: 0, ‘midrange’: 0, ‘treble’: 0, ‘destinationUserId’: 'AK1F’} 2024-08-10 18:33:01.537 DEBUG (MainThread) [alexapy.alexahttp2] Received raw message: Content-Type: application/json
{“directive”:{“header”:{“namespace”:“Alexa.Mobile.Push”,“name”:“RenderUpdate”,“messageId”:“c8da2e0b-79b9-4557-ab6a-3d848d90034b”},“payload”:{“renderingUpdates”:[{“route”:“EventBus:tcomm::message”,“resourceId”:“PUSH_VOLUME_CHANGE”,“resourceMetadata”:“{"command":"PUSH_VOLUME_CHANGE","timeStamp":1723307581473,"payload":"{\"dopplerId\":{\"deviceSerialNumber\":\"G0922M05*******\",\"deviceType\":\"A2DS1Q2TPDJ48U\"},\"volumeSetting\":37,\"isMuted\":false,\"destinationUserId\":\"A1A18GQN4AHK1F\"}"}”}]}}} --------abcde123
2024-08-10 18:33:01.540 DEBUG (MainThread) [custom_components.alexa_media] j9@hm: Received http2push command: PUSH_VOLUME_CHANGE : {‘dopplerId’: {‘deviceSerialNumber’: 'G5WV’, ‘deviceType’: ‘A2DS1Q2TPDJ48U’}, ‘volumeSetting’: 37, ‘isMuted’: False, ‘destinationUserId’: 'AK1F’} 2024-08-10 18:33:01.540 DEBUG (MainThread) [custom_components.alexa_media] Updating media_player volume: {‘dopplerId’: {‘deviceSerialNumber’: 'G5WV’, ‘deviceType’: ‘A2DS1Q2TPDJ48U’}, ‘volumeSetting’: 37, ‘isMuted’: False, ‘destinationUserId’: 'AK1F’} 2024-08-10 18:33:01.540 DEBUG (MainThread) [custom_components.alexa_media.media_player] j9@hm: Echo Dot de Sonia volume updated: 37
2024-08-10 18:35:11.889 DEBUG (MainThread) [custom_components.alexa_media.notify] Target type: <class ‘list’> 2024-08-10 18:35:11.889 DEBUG (MainThread) [custom_components.alexa_media.notify] Processing: media_player.echo_dot_estudio 2024-08-10 18:35:11.889 DEBUG (MainThread) [custom_components.alexa_media.notify] Processed Target by string: [‘media_player.echo_dot_estudio’] 2024-08-10 18:35:11.890 DEBUG (MainThread) [custom_components.alexa_media.notify] TTS by <entity media_player.echo_dot_estudio=standby> : Puerta principal abierta 2024-08-10 18:35:11.890 DEBUG (MainThread) [alexapy.alexaapi] j9@hm: Creating Parallel node 2024-08-10 18:35:11.891 DEBUG (MainThread) [custom_components.alexa_media.notify] Message: Puerta principal abierta, kwargs: {‘target’: [‘media_player.echo_dot_javier’], ‘data’: {‘type’: ‘tts’}} 2024-08-10 18:35:11.891 DEBUG (MainThread) [custom_components.alexa_media.notify] Target type: <class ‘list’> 2024-08-10 18:35:11.891 DEBUG (MainThread) [custom_components.alexa_media.notify] Processing: media_player.echo_dot_javier 2024-08-10 18:35:11.891 DEBUG (MainThread) [custom_components.alexa_media.notify] Processed Target by string: [‘media_player.echo_dot_javier’] 2024-08-10 18:35:11.891 DEBUG (MainThread) [custom_components.alexa_media.notify] TTS by <entity media_player.echo_dot_javier=standby> : Puerta principal abierta 2024-08-10 18:35:11.891 DEBUG (MainThread) [alexapy.alexaapi] j9@hm: Creating Parallel node 2024-08-10 18:35:13.388 DEBUG (MainThread) [alexapy.alexaapi] j9@hm: Queue changed while waiting 1.5 seconds 2024-08-10 18:35:13.390 DEBUG (MainThread) [alexapy.alexaapi] j9@hm: Queue changed while waiting 1.5 seconds 2024-08-10 18:35:13.393 DEBUG (MainThread) [alexapy.alexaapi] j9@hm: Creating sequence for 3 items 2024-08-10 18:35:13.393 DEBUG (MainThread) [alexapy.alexaapi] j9@hm: Running behavior with data: {“behaviorId”: “PREVIEW”, “sequenceJson”: “{"@type": "com.amazon.alexa.behaviors.model.Sequence", "startNode": {"@type": "com.amazon.alexa.behaviors.model.ParallelNode", "nodesToExecute": [{"@type": "com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode", "type": "Alexa.Speak", "operationPayload": {"deviceType": "A1XWJRHALS1REP", "deviceSerialNumber": "G091P30822720339", "locale": "es-es", "customerId": "A1A18GQN4AHK1F", "textToSpeak": "Puerta principal abierta", "target": {"customerId": "A1A18GQN4AHK1F", "devices": [{"deviceSerialNumber": "G091P30822720339", "deviceTypeId": "A1XWJRHALS1REP"}]}, "skillId": "amzn1.ask.1p.saysomething"}}, {"@type": "com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode", "type": "Alexa.Speak", "operationPayload": {"deviceType": "A2U21SRK4QGSE1", "deviceSerialNumber": "G091EU0810240CNG", "locale": "es-es", "customerId": "A1A18GQN4AHK1F", "textToSpeak": "Puerta principal abierta", "target": {"customerId": "A1A18GQN4AHK1F", "devices": [{"deviceSerialNumber": "G091EU0810240CNG", "deviceTypeId": "A2U21SRK4QGSE1"}]}, "skillId": "amzn1.ask.1p.saysomething"}}, {"@type": "com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode", "type": "Alexa.Speak", "operationPayload": {"deviceType": "A2DS1Q2TPDJ48U", "deviceSerialNumber": "G0922M0524360DG4", "locale": "es-es", "customerId": "A1A18GQN4AHK1F", "textToSpeak": "Puerta principal abierta", "target": {"customerId": "A1A18GQN4AHK1F", "devices": [{"deviceSerialNumber": "G0922M0524360DG4", "deviceTypeId": "A2DS1Q2TPDJ48U"}]}, "skillId": "amzn1.ask.1p.saysomething"}}]}}”, “status”: “ENABLED”} 2024-08-10 18:35:13.393 DEBUG (MainThread) [alexapy.alexaapi] j9@hm: Detected access token expiration; refreshing 2024-08-10 18:35:13.582 DEBUG (MainThread) [alexapy.alexalogin] refresh response <ClientResponse(https://api.amazon.es/auth/token) [200 OK]> <CIMultiDictProxy(‘Server’: ‘Server’, ‘Date’: ‘Sat, 10 Aug 2024 16:35:13 GMT’, ‘Content-Type’: ‘application/json;charset=UTF-8’, ‘Content-Length’: ‘981’, ‘Connection’: ‘keep-alive’, ‘x-amz-rid’: ‘SEJY7YCH1KYP5PZY13SS’, ‘x-amzn-RequestId’: ‘b84baa7c-995b-4763-96a9-2da79155f424’, ‘X-Amz-Date’: ‘Sat, 10 Aug 2024 16:35:13 GMT’, ‘Cache-Control’: ‘no-cache, no-store, must-revalidate’, ‘Pragma’: ‘no-cache’, ‘Vary’: ‘Content-Type,Accept-Encoding,User-Agent’, ‘Strict-Transport-Security’: ‘max-age=47474747; includeSubDomains; preload’)> with {“app_name”: “Alexa Media Player”, “app_version”: “2.2.556530.0”, “di.sdk.version”: “6.12.4”, “source_token”: "Atnr|EwICIAHPjYXLtsFaQeUzmdLz5unWamaputstjq2Yfq7jkxrb3lXZpKCjGwdU8KwSOTCFoASHVNwD_KMcABV36sUp_cwHOwaYjmHegTLP-mENMKNX6fAEpmaoGnPuzj7N7J9*****************************-ELzaIr_HzgW3-1CB_qJPieZwY3bD93qq5zr1lyudYKgDkY0z2ENJhHidBbuzmo-MXdoqh2y37z4t6-F2GXpzXZoJxqOIb66dXkyE1kdiiosJUWJoLFbkjSTotOmwT2OE_M_yDCqT7QusiU655N1P9kYx7c89Q9VI-Mt1BKNfn3TRb4ogt4v-hn7PksOGi2I0E2sQw", “package_name”: “com.amazon.echo”, “di.hw.version”: “iPhone”, “platform”: “iOS”, “requested_token_type”: “access_token”, “source_token_type”: “refresh_token”, “di.os.name”: “iOS”, “di.os.version”: “16.6”, “current_version”: “6.12.4”, “previous_version”: “6.12.4”} 2024-08-10 18:35:13.583 DEBUG (MainThread) [alexapy.alexalogin] Successfully refreshed access_token(396) which expires at 2024-08-10 19:35:13.583077 in 0:59:59.999989 2024-08-10 18:35:13.893 DEBUG (MainThread) [alexapy.alexalogin] 5 cookies successfully exchanged for refresh token for domain .amazon.es 2024-08-10 18:35:13.893 DEBUG (MainThread) [alexapy.alexalogin] CSRF already exists; no need to discover 2024-08-10 18:35:13.895 DEBUG (MainThread) [alexapy.alexaapi] j9@hm: Trying post: https://alexa.amazon.es/api/behaviors/preview : with uri: /api/behaviors/preview data {‘behaviorId’: ‘PREVIEW’, ‘sequenceJson’: ‘{“@type”: “com.amazon.alexa.behaviors.model.Sequence”, “startNode”: {“@type”: “com.amazon.alexa.behaviors.model.ParallelNode”, “nodesToExecute”: [{“@type”: “com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode”, “type”: “Alexa.Speak”, “operationPayload”: {“deviceType”: “A1XWJRHALS1REP”, “deviceSerialNumber”: “G091P308”, “locale”: “es-es”, “customerId”: “A1A18GQN”, “textToSpeak”: “Puerta principal abierta”, “target”: {“customerId”: “A1A18GQ”, “devices”: [{“deviceSerialNumber”: “G091P30”, “deviceTypeId”: “A1XWJRHA”}]}, “skillId”: “amzn1.ask.1p.saysomething”}}, {“@type”: “com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode”, “type”: “Alexa.Speak”, “operationPayload”: {“deviceType”: “A2U21SRK”, “deviceSerialNumber”: “G091EU081”, “locale”: “es-es”, “customerId”: “A1A18GQN4AHK1F”, “textToSpeak”: “Puerta principal abierta”, “target”: {“customerId”: “A1A18GQF”, “devices”: [{“deviceSerialNumber”: “G091EU08”, “deviceTypeId”: “A2U21SRK”}]}, “skillId”: “amzn1.ask.1p.saysomething”}}, {“@type”: “com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode”, “type”: “Alexa.Speak”, “operationPayload”: {“deviceType”: “A2DS1Q2TP”, “deviceSerialNumber”: “G0922M05”, “locale”: “es-es”, “customerId”: “A1A18GQ”, “textToSpeak”: “Puerta principal abierta”, “target”: {“customerId”: “A1A18GQ”, “devices”: [{“deviceSerialNumber”: “G0922M0”, “deviceTypeId”: “A2DS1Q2T”}]}, “skillId”: “amzn1.ask.1p.saysomething”}}]}}’, ‘status’: ‘ENABLED’} query None 2024-08-10 18:35:13.895 DEBUG (MainThread) [alexapy.alexaapi] j9@hm:Login error detected; ignoring post request to /api/behaviors/preview with {‘behaviorId’: ‘PREVIEW’, ‘sequenceJson’: ‘{“@type”: “com.amazon.alexa.behaviors.model.Sequence”, “startNode”: {“@type”: “com.amazon.alexa.behaviors.model.ParallelNode”, “nodesToExecute”: [{“@type”: “com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode”, “type”: “Alexa.Speak”, “operationPayload”: {“deviceType”: “A1XWJRHALS1REP”, “deviceSerialNumber”: “G091P3082”, “locale”: “es-es”, “customerId”: “A1A18GQ”, “textToSpeak”: “Puerta principal abierta”, “target”: {“customerId”: “A1A18GQN4AHK1F”, “devices”: [{“deviceSerialNumber”: “G091P30822720339”, “deviceTypeId”: “A1XWJRHALS1REP”}]}, “skillId”: “amzn1.ask.1p.saysomething”}}, {“@type”: “com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode”, “type”: “Alexa.Speak”, “operationPayload”: {“deviceType”: “A2U21SRK4QGSE1”, “deviceSerialNumber”: “G091EU0810240CNG”, “locale”: “es-es”, “customerId”: “A1A18GQN4AHK1F”, “textToSpeak”: “Puerta principal abierta”, “target”: {“customerId”: “A1A18GQN4AHK1F”, “devices”: [{“deviceSerialNumber”: “G091EU0810240CNG”, “deviceTypeId”: “A2U21SRK4QGSE1”}]}, “skillId”: “amzn1.ask.1p.saysomething”}}, {“@type”: “com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode”, “type”: “Alexa.Speak”, “operationPayload”: {“deviceType”: “A2DS1Q2TPDJ48U”, “deviceSerialNumber”: “G0922M052”, “locale”: “es-es”, “customerId”: “A1A18GQN4AHK1F”, “textToSpeak”: “Puerta principal abierta”, “target”: {“customerId”: “A1A18GQN4AHK1F”, “devices”: [{“deviceSerialNumber”: “G0922M05”, “deviceTypeId”: “A2DS1Q2TPDJ48U”}]}, “skillId”: “amzn1.ask.1p.saysomething”}}]}}’, ‘status’: ‘ENABLED’} None 2024-08-10 18:35:13.895 WARNING (MainThread) [alexapy.helpers] alexaapi.run_behavior((<alexapy.alexaapi.AlexaAPI object at 0x7f93dc2cd3a0>, {‘@type’: ‘com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode’, ‘type’: ‘Alexa.Speak’, ‘operationPayload’: {‘deviceType’: ‘A2DS1Q2TPDJ48U’, ‘deviceSerialNumber’: ‘GDG4’, ‘locale’: ‘es-es’, ‘customerId’: 'AK1F’, ‘textToSpeak’: ‘Puerta principal abierta’, ‘target’: {‘customerId’: 'AK1F’, ‘devices’: [{‘deviceSerialNumber’: 'GDG4’, ‘deviceTypeId’: ‘A2DS1Q2TPDJ48U’}]}, ‘skillId’: ‘amzn1.ask.1p.saysomething’}}), {‘queue_delay’: 1.5}): An error occurred accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: (‘Login error detected; not contacting API’,) 2024-08-10 18:35:13.895 WARNING (MainThread) [alexapy.helpers] alexaapi.send_sequence((<alexapy.alexaapi.AlexaAPI object at 0x7f93dc2cd3a0>, ‘Alexa.Speak’), {‘customer_id’: ‘A1A18GQN4AHK1F’, ‘textToSpeak’: ‘Puerta principal abierta’, ‘target’: {‘customerId’: 'AK1F’, ‘devices’: [{‘deviceSerialNumber’: 'G******DG4’, ‘deviceTypeId’: ‘A2DS1Q2TPDJ48U’}]}, ‘skillId’: ‘amzn1.ask.1p.saysomething’, ‘queue_delay’: 1.5}): An error occurred accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: (‘Login error detected; not contacting API’,) 2024-08-10 18:35:13.895 WARNING (MainThread) [alexapy.helpers] alexaapi.send_tts((<alexapy.alexaapi.AlexaAPI object at 0x7f93dc2cd3a0>, ‘Puerta principal abierta’), {‘customer_id’: ‘A1A18GQN4AHK1F’, ‘queue_delay’: 1.5}): An error occurred accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: (‘Login error detected; not contacting API’,) 2024-08-10 18:35:13.896 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File “/usr/local/lib/python3.12/site-packages/alexapy/helpers.py”, line 137, in wrapper return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/alexapy/alexaapi.py”, line 889, in send_tts await self.send_sequence( File “/usr/local/lib/python3.12/site-packages/alexapy/helpers.py”, line 137, in wrapper return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/alexapy/alexaapi.py”, line 512, in send_sequence await self.run_behavior(node_data, queue_delay=queue_delay) File “/usr/local/lib/python3.12/site-packages/alexapy/helpers.py”, line 137, in wrapper return await func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/alexapy/alexaapi.py”, line 434, in run_behavior await self._post_request(“/api/behaviors/preview”, data=data) File “/usr/local/lib/python3.12/site-packages/alexapy/alexaapi.py”, line 226, in _post_request return await self._request(“post”, uri, data, query) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/backoff/_async.py”, line 151, in retry ret = await target(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/alexapy/alexaapi.py”, line 199, in _request raise AlexapyLoginError(“Login error detected; not contacting API”) alexapy.errors.AlexapyLoginError: Login error detected; not contacting API
@danielbrunt57, @jesse-kaufman. No, I agree. It has never worked for me, I have tried countless times without ever having success. I have precisely followed every single advice in this conversation. The problem for me from what I have been able to understand among the thousand tests carried out is the excessive exchange of data with Amazon servers that causes the temporary disconnection of the integration. Like me here in Italy many people have the same problem as me without having yet found an effective solution. In my small way I want to help others to solve this problem. It does not seem right to me that without waiting for further feedback the problem was declared closed. For me it is still an open problem. To date the only solution to make notifications work continuously is to keep pooling disabled. While thanking you for the commitment and passion you put into all of this, I would ask you to change the status of this problem from closed to open also for the good of other enthusiasts who are still in my same condition. Thank you!
Hello,
In case it helps you, I have tried removing the integration, changing my Amazon.es password disabling 2FA and enabling it as the manual says to put the integration back on. It installed correctly but after 10 minutes the problem persists, not allowing to send TTS.
Thank you.
The same thing happens to me, after 30 minutes it stops notifying anything, if I reload Alexa Media Player or restart Home Assistant it works but what I said after 30 minutes it stops notifying And apart from stopping notifying every so often it asks me to authenticate, in the end I downgraded the version, this is not worth it for me, thanks to the people of the project because I know that you are working hard to solve the problem
Yes, there was a failure on my part in not knowing all the ins and outs of PR’s and Alan promptly merged my PR for the AMP side of the equation and bumped the version but alexapy merge request !380 is needed to add the required
async def delete_cookiefile(self)function. For now, you can either:custom_components/alexa_media/__init__.pycommenting out(#) lines 1334 - 1342/usr/local/lib/python3.12/site-packages/alexapy/alexalogin.pywith alexalogin.zipOver 24 hours later and everything is still working as expected here!
If http2push is connected and
seconds between scansis 60, it should only poll once every 10 minutes (seconds between scansx10) which should not trigger atoo many requestserror. I think it might just be the added work of scanning for new devices that triggers it…Just re-enabled polling for updates here … crosses fingers
Now that it’s working, could you test enabling just polling for updates as that is how I now have mine set and it’s working fine for me.
I’m going on just over 12 hours of voice announcements being back! Thank you! What I did was:
It’s been more than 7 hours and the voice notifications are still working, it hasn’t asked for reauthentication and there are no logs with login errors. I only deleted the file indicated above. My steps were the following: Disable 2FA on the Amazon account, Change the password to one with only 2 special characters (*#) Log in to the integration and wait for the login error. Log in to the Amazon account and enable 2FA again. Reauthenticate the integration, delete the file described above and restart HA. No error detected. Auto-reload is not enabled. I don’t know if I’ll help anyone but that’s my experience. I hope it holds up like this. If there are any changes I’ll let you know.
I have noticed an html file
alexa_mediayouremail@yourdomain.comget.htmlin the HA configuration folder that causes you to resolve a chapta. That file contains a script that gives you the chapta to resolve. It is very likely that it has nothing to do with it but I deleted the file in case it is the problem of not logging in correctly and I have been working with notifications for more than 3 hours and it has not asked me to reauthenticate the integration. I am not a programmer and I do not know if it has something to do with it. Thanks for all the effort.Deleting the pickle file and restarting didn’t work for me at first, and I’m not sure if it’s related, but after a minute or two I got a message telling me I need to reauthenticate with Amazon, which I did, and now TTS works. Let’s see if it’ll stay working.
Hello again,
After the above, I deleted
config\.storage\alexa_media.xxxxx@xxxx.xxx.pickleand completely restarted Home Assistant and it has been working correctly for a couple of hours. Maybe it’s a coincidence, but if any more of you can try it we can see if it may have something to do with it.Best regards and thanks
If possible, can you guys provide a giant/full log? I want to look if there are any other problems with the HTTP2 pings, or HTTP2 in general. You can ommit any occurences of cookies and tokens for security.
Remember to leave the debug logging activated in AMP throughout the day when the issue occurs, otherwise nothing of use will be logged. I’m having issues replicating the error since my domain (amazon.com.br) is different and I had no issues so far, so probably something related to EU if all else is OK.
I’m putting the logs back up in case it helps at all.
File “/usr/local/lib/python3.12/site-packages/alexapy/alexaapi.py”, line 199, in _request raise AlexapyLoginError(“Login error detected; not contacting API”) alexapy.errors.AlexapyLoginError: Login error detected; not contacting API
alexaapi.send_tts((<alexapy.alexaapi.AlexaAPI object at 0x7fa8e0d4bf50>, ‘Puerta principal abierta’), {‘customer_id’: ‘A1A18GQN4AHK1F’, ‘queue_delay’: 1.5}): An error occurred accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: (‘Login error detected; not contacting API’,)
I believe most of the errors being reported one after the other on AMP are somehow all tied to this login issue. For instance, I’ve just tried to call the service alexa_media.update_last_called, called in many of my automations, and I get a different log, but always tight to login issues:
I don’t want to go off topic here, but just saying all the errors being reported on AMP recently might have a similar root-cause.
Try to delete
config\.storage\alexa_media.xxxxx@xxxx.xxx.pickle