-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Cast device not launching properly, but works if timeout is ignored #365
Comments
This fixed the problem for me that I reported: Thank you so much, @Gramatus And a massive thanks to @fondberg for making this in the first place. Doing away with trying to start music on speaker groups using Google Assistant was an awful experience that worked maybe half? the time. Thank you again! Cheers to @fcusson for helping too! |
@Gramatus thank you so much for taking the time to post your fix. I also had this issue and had to send every command to play something 2 times to actually get past the startup sound. |
@Gramatus Thank you so much for posting this fix! I had been chasing this for hours on end. After adjusting as per your recomendation it is working again. Any idea what has caused this to happen? |
@Gramatus , thank you for this! I was banging my head against the wall trying to figure out what went wrong and the fix you described worked for me. |
As far as I understand it, there seems to be an error in the Spotify Chromecast "app" (the thing running on the Chromecast). I base that on the fact that the same behaviour happens if I try to cast using Chrome. As such this is a rather bad workaround and probably needs some smarter code if it is to be included in Spotcast, but as the other commenters have confirmed it seems to work for now. |
Thank you @Gramatus. Your changes work for me too. The experience is not the original from months ago (Spotify logo > 10 seconds black screen > starts playing) but it works at least! 😄 Although I also see, as you mentioned, that casting from Spotify Chrome does the same (or even worse, it doesn't get to play for me! I'd be pissed if I was a normal user using Spotify web to cast, and not HA & Spotcast 😅 )
|
There seem to me more issues regarding Spotify on Google Cast devices. I've noticed several times that the device reports as Anyway, thanks a lot for the fix described in your post, it works for me as well, although it is a bit slow. |
Thanks @Gramatus. I do confirm that I had same issue and and commenting the lines that you have suggested did also solved the problem. I do also note same as others than music takes much more time to play. |
I was wrong about this solving the need to repeat the service twice after a long time of no playing (issue 334) - not sure how long is the threshold. Does it work for you guys directly after a long time of no playing (hours)? Mine stays in black screen until I trigger the Spotcast service again:
|
So I'm finding that this fix works but not for the first time initiated. Example. I have a mini media card setup with 4 Spotify station buttons. The first time I click on a button, it initiates the speakers but fails to play the playlist. Click the button again, and the playlist works fine. From that point, any button/playlist works until the playlist is stopped and the speakers go back to idle/off. |
@antonio1475 @robkjr yes, i do observe the very same things on my setup so this seems to be general. You can provoke this behaviour easily to test just by stopping the Google Nest entities (for exemple) and trying to launch the spotcast service again. |
@Johnito Exactly. The Google Nest/Cast items must be in the off state to see the behavior. |
Does anyone know if we will get an official fix to this issue? Right now, the first-time fail issue has killed the functionality of all my keypads when it comes to staring music. |
@robkjr i manually copied the changes implemented from this pull request, and it works just fine now. 100% success whatever may be the initial cast device state. |
Looks like the issue is back but also for me: |
Yup, this seems to be working for me! Although it does generate errors |
closing due to new release and no further report |
I'm experiencing this behaviour again. A lot like the comments above. It might have to do with Spotify changing their auth/handshake flow? |
@cjborchert Thanks! Looks like the right thing! UPDATE: (I didn't change anything. I tried this morning; no result. Tried again a few minutes ago; and it worked) |
Bug Ticket
Describe the bug
I am not sure if this is relevant for anyone else, but in case it creeps up other places I decided to create a report as I have a solution if anyone else experiences the same problem.
Basically it seems my cast devices has some sort of issue with starting properly. This does not only include spotcast, but also when trying to cast Spotify from the web player. Most of my devices are Chromecast audio, but I also have a few normal Chromecasts.
What happens is the app is started (I hear the "startup sound"), but not totally started (on the normal chromecasts, the screen goes black).
Now, what I discovered is that this causes Spotcast to fail because the
is_launched
property of theSpotifyController
class stays false. However, if I ignore that and simply try to start playing anyways everything works fine.If this becomes a problem, and not just something happening on my setup, it seems it can be fixed by ignoring that
is_launched
is False.If no one else experiences the same, feel free to ignore this as I have fixed the issue for myself.
I made these changes to Spotcast, and now everything seems to work for me:
sp_dc
andsp_key
values and restarted Home Assistant (see README)Environment
Configuration
Add your configuration
Service Call
If relevant, provide a
yaml
of the service call or explain the action taken to replicate the issue.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: