-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media controls do not appear to work and return a 400 error #1928
Comments
Looks like Amazon may have changed their API at least in the UK. |
Ah apologies for blaming the HA update then. I take it they don't version their API so you can define it in the path? (may be talking gibberish but some rest APIs I work with have a schema like /rest/v2/ that you can always call back on if the version changes. |
Do other portions of the component work? A 400 error means the server rejected the command. If you're seeing it for all requests, you may have an authentication issue. |
Actually, I just confirmed it on the US servers too. |
Looks like they're deprecating the old webplayer. Latest working command: Play {"type":"PlayCommand","contentFocusClientId":null} Pause {"type":"PauseCommand","contentFocusClientId":null} Next {"type":"NextCommand","contentFocusClientId":null} Thumbs {"deviceType":"SNIP","deviceSerialNumber":"SNIP","referenceId":"7e357edb-f6f3-4656-9743-cbb49b93340e:10","mediaOwnerCustomerId":"SNIP3EG"} |
yes volume still works ok as does the notification of what is playing currently |
I upgraded to 5.2 the media controls for music don't work. Volume works but pause and skip do not. I circumvented with a script but it should be fixed or remove the controls from the media player. Tis worked in 4.x and not 5.0, 5.1 0r 5.2. Thanks, you guys do great work and things are complex. The media controls are very useful. When I go back to 4.x they work. |
Those version numbers don't match any versions of this component. What version of alexa_media are you talking about where a rollback works? |
My current version of Alexa media player is 4.6.2 not sure what the prior version is without rolling back HA which I am not doing, as I always have cleanup issues going back with Home Assistant and various integrations. Media controls don’t work in this version 4.6.2 and Home Assistant version 5.x. They did work before I upgraded to 5.x as recent as last week of April 2023. On May 6, 2023, at 8:53 PM, Alan Tse ***@***.***> wrote:
I upgraded to 5.2 the media controls for music don't work. Volume works but pause and skip do not. I circumvented with a script but it should be fixed or remove the controls from the media player. Tis worked in 4.x and not 5.0, 5.1 0r 5.2. Thanks, you guys do great work and things are complex. The media controls are very useful. When I go back to 4.x they work.
Those version numbers don't match any versions of this component. What version of alexa_media are you talking about where a rollback works?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
I think 4.x and 5.x refer to the version of HA Core, specifically 2023.5.x and 2023.4.x. It does seem that this issue was introduced at around the time that I upgraded HA Core to 2023.5.0, but I haven't done a rollback to confirm. Given that you've identified a change to the Alexa API, it seems this may just be a coincidence. |
Controls work fine after reverting back to HA Core 2023.4.6. First noticed the issue when I was already at 2023.5.2, so I don't know what version exactly after 4.6 broke it. |
Tried the updated version and get this upon setup, both from cold-start and reload: Traceback (most recent call last): |
Something similar. Just installed 4.6.4, restarted HA Core and was prompted to reauthenticate. Did so, but now, the component fails to load but without anything in the logs. Just shows "Failed to Load" on the integrations screen. I've rolled back to 4.6.3 which starts up fine and solves the issue raised here. |
works fine for me Home Assistant 2023.5.2 and 4.6.4 |
Do the Alexa media player music pause and skip controls work? Do text scripts imitating voice work? They all stopped working for me. Wonder why. Angelos Spetseris508 769 7093On May 8, 2023, at 2:34 AM, KHOne23 ***@***.***> wrote:
works fine for me Home Assistant 2023.5.2 and 4.6.4
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Yes all fine here, had the Problem before that in Automations the Pause Order is not working. Now everything works like before
|
Great, thanks!
…On Mon, May 8, 2023 at 11:40 AM KHOne23 ***@***.***> wrote:
Yes all fine here, had the Problem before that in Automations the Pause
Order is not working. Now everything works like before
Do the Alexa media player music pause and skip controls work? Do text
scripts imitating voice work? They all stopped working for me. Wonder
why. Angelos Spetseris508 769 7093On May 8, 2023, at 2:34 AM, KHOne23 *@*.*>
wrote: works fine for me Home Assistant 2023.5.2 and 4.6.4 —Reply to this
email directly, view it on GitHub, or unsubscribe.You are receiving this
because you commented.Message ID: @.*>
—
Reply to this email directly, view it on GitHub
<#1928 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AU2UVIUKZ4EMZN4D5N7XC5LXFEHV5ANCNFSM6AAAAAAXXV5Q6Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Angelos Spetseris
508 769 7093
|
confirmed mine also fine with 4.6.4 now. Thank you! |
Have just tried another update to |
Same here, all controls on the media player work as before. Thank you.
…On Mon, May 8, 2023 at 2:06 PM WhimsySpoon ***@***.***> wrote:
Have just tried another update to 4.6.4 and it now works fine; the error
no longer appears. Must have been something on Amazon's end.
—
Reply to this email directly, view it on GitHub
<#1928 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AU2UVIWNHVIHS5MD54ZGNG3XFEY4DANCNFSM6AAAAAAXXV5Q6Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Angelos Spetseris
508 769 7093
|
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
As of latest HA version 2023.05.0-2 Media controls no longer work. Volume still works
To Reproduce
Attempt to play/pause/turn off echo
Expected behavior
Device should respond to actions
Screenshots
N/A
System details
const.py
or HA startup): 4.6.2pip show alexapy
or HA startup):Logs
2023-05-06 00:18:06.808 DEBUG (MainThread) [alexapy.alexaapi] ********************: POST: https://alexa.amazon.co.uk/api/np/command returned 400:Bad Request:application/json
2023-05-06 00:18:06.808 DEBUG (MainThread) [alexapy.alexaapi] Returning None due to status: 400
Additional context
The text was updated successfully, but these errors were encountered: