Which implies the Home account was playing on the Main bedroom speaker. However, from the player data I see that on that speaker Magic Radio UK was playing, and that Spotify was playing on media_player.dressing_room_speaker, unless there is a strange mismatch between your entity_ids and friendly names.
However, Iāve made the changes above but it still isnāt working. My entity idās and friendly names are a bit messed since I moved house, but I have just updated the entities/friendly names and also updated one of my scripts to test but it still hasnāt resolved my issue, unfortunately. Sep 19 3:43 PM - Codeshare
This is a version when the player was idle, I would need the one which tried to restore the player which was playing on Spotify.
The main script looks fine now, the right Spotify account was selected.
hmm that is wierd. It seems like there are multiple traces at the same time. I have just shared the top one, not sure if it is supposed to do this or not so thought I would share. Screenshot-2022-09-20-at-07-46-26 ā ImgBB. I only ran the script once.
Okay, but you did not send me the trace of the helper script for main_bedroom_speaker. You sent it for living_room_speaker.
As I said in my earlier post, the helper script is started for all players targeted, also for the ones which are not playing the volume might need to be restored.
So try to target it only to the one playing Spotify, or check first in the trace of the helper script for which player it was.
This is not an error in the script. For Spotcast it is important that the Friendly names in HA, match with the names in the Google Home app, I think something is wrong there.
They all match and what is more odd is they didnāt match when it worked (before it broke and was updated). Thanks for your help anyway, I will have a look into Spotcast and see if I can locate the issue.
dashboard_delay and picture_delay are combined in one variable resume_delay. This can be sent as variable in the script service call. You can set a default using default_resume_delay in the script. If no delay is defined, 20 seconds will be used
Improvements
Resume after sending webp and gif images is now also supported