Open Mis1ify opened 1 month ago
Http2 streaming is not considered a separate request so is unaffected by 429 errors assuming it's allowed to connect. Your logs don't seem to show any use of last_called. But if the issue is that you're seeing 429s when trying to update, then you're out of luck since that's Amazon not responding so obviously we can't really figure out what was last called.
The problem is I'm not seeing anything. The other settings are working correctly, and, as shown on logs, the volume level updated almost immediately, but before that I told something to Alexa, which is not apparently in the logs, so last_update was not updated.
If you interacted with Alexa and it's not showing in the logs, it's possible Alexa removed the notification from http2 and now the function is broken permanently.
It is working, after a good couple of minutes, instead of immediately. I've set up script to update last called every 10 seconds, and it works but the logs are filled of error with API: TooManyRequests.
It is working, after a good couple of minutes, instead of immediately. I've set up script to update last called every 10 seconds, and it works but the logs are filled of error with API: To
That is an Amazon restriction! AMP has to poll Amazon to determine Last Alexa as Amazon pushes nothing to HA.
I installed my integration with polling every 3600 seconds.
The default 60 seconds gives me Too many requests
.
600 still gave me Too many requests
.
3600 seems to be okay so far but it's far too long.
So all of my automations/scripts update Last Alexa on an as needed basis before she speaks to the last Alexa spoken too. I'll share my scripts if you like...
That's what I thought, amazon restriction. It really sucks. Please, share your scripts if you may.
IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.
Describe the bug The 'last_called_summary' does not really update, or updates slowly.
This is an important state argument to me as I use it for automations. The problem started very long time ago. This happens only for 'last_called_summary'. For example, when I say 'volume up' the 'volume_up' argument raises, but 'last_called_summary' remains the same for a good one hour? Sometimes it will update within one minutes, but sometimes won't.
To Reproduce
Expected behavior last_called_summary should update with max delay of 10-20 seconds.
Screenshots![image](https://github.com/alandtse/alexa_media_player/assets/111151942/e1133f80-d121-4223-9059-0b273d559f5a)
System details
const.py
or HA startup): 4.10.0pip show alexapy
or HA startup): 1.27.10Logs Please provide logs.
Additional context Calling service 'alexa_media.update_last_called' updates the argument correctly, and i've even set up automation to run this every 10 seconds, but after some time it shows an error in logs TooManyRequests.
I understand that it may be a Alexa API limitation, but then why volume_level updates perfectly?