-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Pair of Google Home device Stopped working #459
Comments
Weird that I can play in the Group that I made in the google home app where both speakers are. |
I seem to have a similar issue. I use Spotcast to start a Spotify playlist when I start working in the morning (based on power consumption). This worked great for a while, but stopped working some time ago. I tried fixing it today by refreshing the sp_dc and sp_key values, but I still got the error ("Failed to get device id from Spotify"). Based on the description in this issue I tried starting the playlist on two other devices that I have and those do work, so I seem to be doing the correct thing. The device that isn't working, does work properly when using Spotify on my Windows desktop and when using the Spottily app on my phone. In my case the device that doesn't work actually is a set of two devices that I've configured to be a single stereo device (so in the Google Home app I see just one device). But as already stated, it used to worked with Spotcast, so that shouldn't be a problem. |
Exaclty the same scenario @bscheutjens ! My broken speaker is a pair of Google Nest Minis. My workaround was to play music in my speaker group and lower the volume of the working speaker to 0%. |
In my case I have a pair of HK Citation One. But... Your comment made me think of something. I have created a group with just that one (pair of) speaker and use Spotcast to play using that group and that also works. It is a workaround and you don't have to set the volume of that other speaker to 0%. |
Awesome! I had no idea you could create a group of "one" speaker. Thanks! |
Hello, Same issue. |
Have the same issue! Work on Xiaomi Smart Speaker IR, failed on Xiaomi Samrt Clock, but work on a Group of this two Google cast speakers. |
Talking about creating a Group.
I’d tried to do so but can not select any media in the Group.
Le lun. 7 oct. 2024 à 18:26, Peixeiro ***@***.***> a écrit :
… Have the same issue!
Work on Xiaomi Smart Speaker IR, failed on Xiaomi Samrt Clock, but work on
a Group of this two Google cast speakers.
—
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGEH4FWMKJFD3JBDA3PGIETZ2KY5BAVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJXGM4DEMZYGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
And yes...
|
Yes i can confirm. |
Chromecast is registering groups very differently then a sole speaker, so I'm not suprised, I have a feeling that the device creating problem is slow to register itself with spotify and going out of the timeout of the code |
I solved my problem by editing the speaker name (Xiaomi Smart watch) in the Google Home app and setting it the same as what I have in Home Assistant. For some reason the names were different. |
Creating a group into Google Home solved the problem for using media on ChromeCast Harman Kardon Citation One speakers. |
I have 3 Chromecast devices and none of them are showing in the source list I can select my speakers / groups just fine from the Mac app and my Android phone app Did Spotify change something in their API? |
@hatemsh no that's normal, and the whole reason spotcast exist. A Chromecast device is not registered to a Spotify Account, that would be a mess to deal with when multiple user are in the same house, you can't have them registered to multiple accounts at the same time, so apps look at mDNS for devices and then a private spotify Api (not part of the public one) registers the spotify app under a specific user at request time. That's what Spotcast is doing, the problem is, we can only register device we know, so we rely on the spotify integration in home assistant to provide the zeroconf detail to be able to talk to the Chromecast and register the account. That's why you should always use entity ID when possible. Spotify ID are for devices already registered to your account or that you manage the registration separately. |
I have several ChromeCast players working fine with SpotCast using the Mini Média Player integration. |
@fcusson It was a naming problem. All of my devices were named "[Room] speaker" in the Google Home app but named "[Room] Speaker" (with capital S) in HA. I had one group that was named correctly both places but it strangely didn't work either. I renamed everything everywhere manually to match, the device names in Google Home and device names as well as entity friendly names in HA, even the ones that were auto generated correctly. I then went to every speaker and said "play music" to refresh the names in Spotify and that's when it all started working. @Fatalmose try to see if you didn't rename the devices that stopped working or something similar. You could also try doing what I did and change all of the names everywhere manually to match and try again (don't forget to go to the speakers after and say "play music" on each one individually) |
I’f checked out everything…
All of my ChromeCast player are responding perfectly using the integration
Mini Media Player.
Only on my pair of HK Citation One Speakers it doesn’t want to work anymore.
Still get that error ,
failure , can not execute spot cast / start action , failed to get device
id from Spotify
Name of device is correct….
Entity name is correct….
Worked fine in 2024.9.3.
Le jeu. 24 oct. 2024 à 09:56, hatemsh ***@***.***> a écrit :
… @fcusson <https://github.com/fcusson> It was a naming problem. All of my
devices were named "[Room] speaker" in the Google Home app but named
"[Room] Speaker" (with capital S) in HA. I had one group that was named
correctly both places but it strangely didn't work either.
I renamed everything everywhere manually to match, the device names in
Google Home and device names as well as entity friendly names in HA, even
the ones that were auto generated correctly. I then went to every speaker
and said "play music" to refresh the names in Spotify and that's when it
all started working.
@Fatalmose <https://github.com/Fatalmose> try to see if you didn't rename
the devices that stopped working or something similar. You could also try
doing what I did and change all of the names everywhere manually to match
and try again (don't forget to go to the speakers after and say "play
music" on each one individually)
—
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGEH4FXATVPIUIVUCSKXWYTZ5CR3PAVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZUGU3DAMRUGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Fatalmose any error logs? I have a feeling this is just the device being slow to register with Spotify. |
Ok…
Thanks for the information.
Is their a solution you are thinking of that could make it work again…?
Le jeu. 24 oct. 2024 à 13:45, Felix Cusson ***@***.***> a
écrit :
… @Fatalmose <https://github.com/Fatalmose> any error logs?
I have a feeling this is just the device being slow to register with
Spotify.
—
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGEH4FT2C5XLDMAIBC7JKODZ5DMWRAVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZVGA2TCMRQGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
About error logs. failure , can not execute spot cast / start action , failed to get device id from Spotify. |
Do you think there is a solution…? |
@Fatalmose, that's not a error log, that's a notification, you should have a traceback in your logs. |
Ok…
Found it I guess…
Enregistreur: homeassistant.core Source: core.py:2781 S'est produit pour la
première fois: 24 octobre 2024 à 18:41:54 (1 occurrences) Dernier
enregistrement: 24 octobre 2024 à 18:41:54 Error executing service:
<ServiceCall spotcast.start (c:01JAZPFDVGK3BJCNHV47TATE39):
entity_id=media_player.disco_left,
uri=spotify:playlist:0k02f6YRyQcyATsngxqTPs, offset=0, random_song=False,
ignore_fully_played=False, force_playback=False, start_volume=101,
shuffle=False, limit=20, repeat=off> Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 2781, in
_run_service_call_catch_exceptions await coro_or_task File
"/usr/src/homeassistant/homeassistant/core.py", line 2811, in
_execute_service return await self._hass.async_add_executor_job(target,
service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in
run result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/config/custom_components/spotcast/__init__.py", line 267, in
start_casting spotify_device_id =
spotcast_controller.get_spotify_device_id(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File
"/config/custom_components/spotcast/spotcast_controller.py", line 303, in
get_spotify_device_id
spotify_cast_device.start_spotify_controller(access_token, expires) File
"/config/custom_components/spotcast/spotcast_controller.py", line 94, in
start_spotify_controller sp.launch_app() File
"/config/custom_components/spotcast/spotify_controller.py", line 128, in
launch_app raise LaunchError( custom_components.spotcast.error.LaunchError:
Timeout when waiting for status response from Spotify app
Le ven. 25 oct. 2024 à 17:57, Felix Cusson ***@***.***> a
écrit :
… About error logs.
failure , can not execute spot cast / start action , failed to get device
id from Spotify.
@Fatalmose <https://github.com/Fatalmose>, that's not a error log, that's
a notification, you should have a traceback in your logs.
—
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGEH4FXCO5IAF6IB6VJVDHLZ5JTAPAVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZYGE4TOMRWGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Fatalmose, I don't think we will be able to solve the issue in the current major version of Spotcast, since we are dependant on the main Spotify Integration to report the device before we can confirm it is available. This will have to wait for the |
Ok…
I understand.
Thanks for the information.
Le mar. 19 nov. 2024 à 13:47, Felix Cusson ***@***.***> a
écrit :
… @Fatalmose <https://github.com/Fatalmose>, I don't think we will be able
to solve the issue in the current major version of Spotcast, since we are
dependant on the main Spotify Integration to report the device before we
can confirm it is available. This will have to wait for the v5 in which
we have control over the Spotify API and are able to monitor devices
availability independently of the Spotify Integration
—
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGEH4FQN6SGX4F2QWOHKUDT2BMXO3AVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBVGYZDIMRWG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @Fatalmose, the beta for |
Ok…
Thanks for the information.
Will test it this week-end..,
Regards.
Le jeu. 5 déc. 2024 à 14:39, Felix Cusson ***@***.***> a
écrit :
… Hi @Fatalmose <https://github.com/Fatalmose>, the beta for V5 have been
out for a couple of weeks now. Just wanted to verify if you had a chance to
test it and check if it solved your issue?
—
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGEH4FXE37W4R2W45DJTKDT2EBJS3AVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRQGM2TIOJTGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Not working for me. |
No error message this time… |
then you just need to reattempt what you where doing and deactivate the debug log, it wiull download a log file for you, you can provide it in the ticket |
Ok…
Just reattempt.
Then switched of debul log.
Where can I find the log…?
Le jeu. 5 déc. 2024 à 19:18, Felix Cusson ***@***.***> a
écrit :
… then you just need to reattempt what you where doing and deactivate the
debug log, it wiull download a log file for you, you can provide it in the
ticket
—
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGEH4FXK5HRTH3AB3HIPUKD2ECKHZAVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRRGEYDGNRSGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Oh I don't know if its goign to work well on an iphone. There should be normally a log file that gets downloaded on your device. That's what I would need. |
Think I found it.
Just posted…
Le jeu. 5 déc. 2024 à 19:42, Felix Cusson ***@***.***> a
écrit :
… Oh I don't know if its goign to work well on an iphone. There should be
normally a log file that gets downloaded on your device. That's what I
would need.
—
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGEH4FRDK6X6ZAT3LDULWMD2ECNA5AVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRRGE2DSOJZGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Le jeu. 5 déc. 2024 à 19:43, Jean Sacré ***@***.***> a écrit :
… Think I round it.
Just posted…
Le jeu. 5 déc. 2024 à 19:42, Felix Cusson ***@***.***> a
écrit :
> Oh I don't know if its goign to work well on an iphone. There should be
> normally a log file that gets downloaded on your device. That's what I
> would need.
>
> —
> Reply to this email directly, view it on GitHub
> <#459 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BGEH4FRDK6X6ZAT3LDULWMD2ECNA5AVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRRGE2DSOJZGI>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Enregistreur: homeassistant.core Error executing service: <ServiceCall spotcast.start (c:01JEC1N4QGP8PAGV4V1Z8SBDKS): entity_id=media_player.disco_club, uri=spotify:playlist:5tHnFa8VyGDd5C8mhrbb3J, ignore_fully_played=False, random_song=False, limit=20, repeat=off, start_volume=101, offset=0, force_playback=False, shuffle=False> |
Cette erreur provient d'une intégration personnalisée Enregistreur: custom_components.spotcast.spotcast_controller No device with id "435b275f7e164cc2667661e73f62628b" known by Spotify |
Cette erreur provient d'une intégration personnalisée Enregistreur: custom_components.spotcast.spotcast_controller Known devices: [Device(device_id='af8567bd6fc46e7d3461a23fe206175e', is_active=False, is_private_session=False, is_restricted=False, name='Disco Left', device_type=<DeviceType.CAST_AUDIO: 'CastAudio'>, volume_percent=51, supports_volume=True), Device(device_id='58f1c11f3b56837187163fd9072a644b3e74a66d', is_active=False, is_private_session=False, is_restricted=False, name='Marshall Véranda', device_type=<DeviceType.SPEAKER: 'Speaker'>, volume_percent=50, supports_volume=True)] |
oh sorry, I misunderstood and though you already had tested the beta because of one of your message. Please attempt with the beta when you have the time, see if it changes the behavior otherwise, please provide the logs so I can see what is going on. The current production version doesn't log unknown messages, I have a feeling this is the problem in the Chromecast exchange |
Oh…
Ok…
Also misunderstood.
How can I try or find the beta version..?
Le jeu. 5 déc. 2024 à 20:07, Felix Cusson ***@***.***> a
écrit :
… oh sorry, I misunderstood and though you already had tested the beta
because of one of your message. Please attempt with the beta when you have
the time, see if it changes the behavior otherwise, please provide the logs
so I can see what is going on.
The current production version doesn't log unknown messages, I have a
feeling this is the problem in the Chromecast exchange
—
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGEH4FUY6WCHEBEXKMGV6QD2ECP7FAVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRRGE4TGOBXGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Fatalmose you can update to the beta from HACS directly, simply search for Spotcast and then cilck All documentation is in the dev branch here on github and for the setup, you will see that it was moved to the UI, so you will have to re configure spotcast. If you intend to potentially switch back, I would suggest you keep your yaml config, but you will have an error message saying that spotcast doesn't support it (this error doesn't break anything) |
Ok…
Thanks for this precious information…
Regards.
And many thanks for your support.
Le jeu. 5 déc. 2024 à 20:23, Felix Cusson ***@***.***> a
écrit :
… @Fatalmose <https://github.com/Fatalmose> you can update to the beta from
HACS directly, simply search for Spotcast and then cilck three dots ->
redownload You can then select a specific version you will see there is a
couple of version in the format 5.0.0-b<>build-number they are all marked
pre-release.
All documentation is in the dev branch here on github and for the setup,
you will see that it was moved to the UI, so you will have to re configure
spotcast. If you intend to potentially switch back, I would suggest you
keep your yaml config, but you will have an error message saying that
spotcast doesn't support it (this error doesn't break anything)
—
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGEH4FSE5YFIN54OIATRP7T2ECR2ZAVCNFSM6AAAAABO5KRARCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRRGIYTSMZVHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Bug Ticket
Describe the bug
<I'm experiencing an issue with the Spotcast integration in Home Assistant. Only one of my two Google Home devices is working correctly with Spotcast. When attempting to use the service for the non-working device, I receive an error.
Initial State
I have two Google Home devices set up in my home.
Both devices are visible and controllable through the Spotify app on my iPhone and PC.
Both Google Home devices worked fine with Spotcast, but one suddendly stopped working.
Issue with Non-working Device:
When I call the Spotcast service for the non-working Google Home in Home Assistant, I get the error: "HomeAssistantError: Failed to get device id from Spotify"
Investigating further, I checked the Spotify API response for available devices:
The non-working Google Home is not visible in this API response when queried through Home Assistant.
However, the device is visible in the Spotify app on my iPhone and PC.
Temporary Visibility in Spotify API:
If I start playback on the non-working Google Home speaker through the Spotify app on my phone:
The device then becomes visible in the Spotify API response.
I can retrieve its device ID at this point.
Attempted Solution and New Error:
After getting the device ID during this temporary visibility:
I add the device ID to the Home Assistant service call.
I wait for the device to go inactive (stop playing).
When I try to use the Spotcast service again, I get a new error:
"HomeAssistantError: http status: 404, code:-1 - [https://api.spotify.com/v1/me/player/play?device_id=device_id]: Device not found, reason: None"
Additional Attempts:
I tried using the "select source" service call in Home Assistant before calling the Spotcast start service.
This didn't resolve the issue; the problem persists.
Additional Information
The issue only affects one of the two Google Home devices; the other works fine.
The affected device works correctly when controlled directly through the Spotify app on my iPhone.>
Troubleshooting
Make sure to validate all the elements before submitting the ticket (Exception to the steps marked as optional)
sp_dc
andsp_key
values and restarted Home Assistant (see README)Environment
Configuration
Service Call
If relevant, provide a
yaml
of the service call or explain the action taken to replicate the issue.For Spotcast Start in node red I didn't change anything to my service and it just stopped working. Ihave tried multiple options, with entity_id, device_name and device_id. I copied the service from the working Cast device and still won't work. Below is one example:
Logs
Here are some logs from the service call variations I tried:
Additional context
The text was updated successfully, but these errors were encountered: