All player_data is now stored in one go, the Google Home Voice and Google Home Event script are using the exacte same template now to make it easier to update and improve it. Also update the Google Home Voice and Google Home Event scripts if you use those as well.
Improvements
Used more YAML anchors to avoid repeating code
A lot of minor template improvements
Bug fixes
Several fixes in both the script and automation
Sorry for all the bugs in the new 2022.11 version. Hope it works again for all of you now!
The automation is not used if you already provide the actions when calling the script.
The automation should kick in if you send a TTS, or play a file with announce: true set without using the script. The automation will be triggered on the service call, and trigger the script, so the current stream is also resumed.
I recently bought a nest hub 2nd gen. I tried playing video on youtube and run the test script to play good morning audio file. It will interrupt the video and announce but it doesn’t resume. Do I have to setup stuff like on spotify or is it automatic?
Sorry, I had a closer look at the trace. You did not update to the 2022.11 version yet.
This error is caused because you did not add the account tot the spotcast configuration, or the account name doesn’t match the entity from the Spotify integration.
In any case, the account is not known by the spotcast integration, and therefore the spotcast.start service call errors.
So you need to update the configuration for the spotcast integration to add the milena_dacheva account, and the entity from the Spotify integration should match this account, so that one needs to be media_player.spotify_milena_dacheva
The entity id of your new device is media_player.dining_room_display, you added this to the players_screen list: media_player.media_player.dining_room_display
Remove one of the two media_player. parts
Logger: homeassistant.components.script.google_home_resume
Source: helpers/script.py:409
Integration: Script
Last logged: 9:08:25 AM
00 - Google Home Resume: Error executing script. Error rendering template for variables at pos 8: TypeError: argument of type 'NoneType' is not iterable