-
Notifications
You must be signed in to change notification settings - Fork 279
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
The state of the component doesn't seem to update after stopping/pausing #475
Comments
This is expected behavior as Alexa does not update media player information when you do a non-media command like a news update. Please check the official Alexa app and you'll notice it'll also retain the media info with news. It's paused because it should be able to resume the media playback if it hasn't timed out. |
That doesn't seem correct, at least on my Echo. After I start playing the news update, the app shows a 3 dots loading icon instead of the track that was playing. Then after a while doesn't show anything playing anymore on the app. If I ask Alexa to resume playing, it resumes the news update, not the music. And resuming from Home Assistant has no effect. During all that time Home Assistant shows it's still paused on the initial song, and will stay like that until the next time I play media (which can be a week later). |
I'm actually referring to the webapp (fix domain). We are pulling the player information from that webapp. Perhaps the behavior has changed, so let me know. |
Yes looking at the Alexa SPA, there is nothing shown as playing on the Echo: But the alexa_media_player component on Home Assistant is still showing the track from yesterday in Entity:
|
Can you please confirm that it showed the right info before the news command and it then goes blank after the news command? |
Ok thanks. There's something the online player is able to check on the refresh that we're missing. I'll see if I can find it to replicate it. Our current behavior is the non refresh example. |
#491 may actually address this. Let me know if it does. |
No that's not resolved. |
fix(media_player): fix clearing of data on state change
Just pointing out that this PR didn't solve the issue, so this should probably be reopen. I think it would make sense that if playback is paused for over an hour (or some amount of time), the component should consider playback stopped. It's a bit irritating when the component shows as paused on the song I was playing 3 days ago. |
@alandtse Can you reopen the issue, or should I create a duplicate? This is not resolved. |
You can recreate. However, this will be low priority since it's cosmetic. |
Ok I've recreated #617. I'd argue it's not just cosmetic as the component is in the wrong state, which will cause problems for things like automation for example. |
Describe the bug
The state of the component doesn't seem to update after stopping/pausing.
To Reproduce
paused
with all the attributes still reflecting what was playing initially:Trying to resume playing from Home Assistant fails.
Expected behavior
The state of the media player component should no longer be
paused
(it should be back toidle
orstandby
).System details
The text was updated successfully, but these errors were encountered: