Script to resume Google Cast devices after they have been interrupted by any action

As the latest Spotcast stable release is still version 4.x, the script is still based on that Spotcast version.
You can try the version from this branch

As I wrote above, I have script 22025.1. Unfortunately, it doesn’t work.

Sorry, I missed that.

Looking better at the error messages it states that spotcast.transfer_playback is not found.
That action was introduced in Spotcast 5, and according to te docs also still works in v6
https://github.com/fondberg/spotcast/tree/dev?tab=readme-ov-file#setup

So, if you don’t have that action, either Spotcast isn’t properly starting/configured, or you are still using Spotcast v4.

Please check in devtools > actions which Spotcast actions are available to you.

Yes, i have spotcast.transfer_playback in the devtools > actions.

I currently have other errors:

Rejestrator: homeassistant.components.script.google_home_resume_helper
Źródło: helpers/script.py:2067
integracja: Skrypt (dokumentacja, Problemy)
Pierwsze zdarzenie: 19:05:51 (5 wystąpień)
Ostatnio zalogowany: 19:05:51

  • Google Home Resume - Helper Script: If at step 2: Parallel action at step 1: parallel 1: Resume needed?: Resume playing: Spotify?: Error executing script. Invalid data for call_service at pos 2: extra keys not allowed @ data[‘entity_id’]
  • Google Home Resume - Helper Script: If at step 2: Parallel action at step 1: parallel 1: Resume needed?: Error executing script. Invalid data for choose at pos 2: extra keys not allowed @ data[‘entity_id’]
  • Google Home Resume - Helper Script: If at step 2: Parallel action at step 1: parallel 1: Error executing script. Invalid data for if at pos 10: extra keys not allowed @ data[‘entity_id’]
  • Google Home Resume - Helper Script: If at step 2: Error executing script. Invalid data for parallel at pos 1: extra keys not allowed @ data[‘entity_id’]
  • Google Home Resume - Helper Script: Error executing script. Invalid data for if at pos 2: extra keys not allowed @ data[‘entity_id’]

Can you share the full trace?

Hi, this is the current trace.

https://dpaste.com/8UCW54B4V

I’d need the trace from the Google Home Resume script, and the helper script. Could you also share those?

Google home resume - dpaste: H577VCHCT
Helper script - dpaste: HADHFA9NA

I sent you the script logs a few days ago. Could you tell me if you were able to determine why the script wasn’t working?

Sorry, I’ve been rather busy with other things.
Now the links are not valid anymore. Can you share them again?

I am sharing the tracks again.

Google home resume - dpaste/7N20o (YAML)
Helper script - dpaste/djkmz (YAML)

You are using “version”: “2024.9.0”.
The branch I pointed you to is “2025.1.0”

Try again with this version:
https://github.com/TheFes/Google-Home-Resume/blob/714bc8251ffc5be1806b7c47ef98910d6be57db0/google_home_resume.yaml

Unfortunately, I messed it up myself. The helper script was saved in two places, in the scripts and packages directories. I cleaned it up, and the script is now working properly. Thank you very much for helping me solve the problem.

1 Like