Hi, I’m having some issues implementing this script and getting the error ‘Failed to call service script/google_home_resume_wip. Error rendering data template: UndefinedError: ‘iif’ is undefined’.
No doubt it is something I have or haven’t done but any ideas where I’m going wrong, please? Would love to get this set up, my family get quite annoyed with my announcements interrupting their music and have to start the music from the beginning.
Oh, sorry, should have waited to after today to publish it. The iif function is new in 2022.2 which will be released today.
I also forgot to remove the _wip part
Yeah, got the same issue with that All devices & no dutch language. But the overlay was nice though. I’m interested if you can manage to let something like the youtube stream continue after TTS. Will follow this one Thanks for your effort!
Thank you soo much!! That seems to work for Spotify music now, although it doesn’t seem to work for radio, is it possible to resume radio after the announcements?
How do you play radio? It should work for TuneIn streams.
I will look into your previous question though, it should have worked without specifying the target.
It uses ‘Global Player Live’ as the default but if I ask google to play via Tunein the script works fine. Tbh If it means I only need to mention Tunein I’m not too fussed.
Do you start that by voice command, or by use of an app? I could give it a try if I know how the attributes look like while playing.
If you start it by voice command, could you tell me which command?
Could you check developer tools > states for the speaker while it is playing via Global Player Live?
I tried the voice command, but it didn’t work for me.
But if TuneIn works fine for you, that is also fine.
You coud set up a routine with the voice command LBC London and link that to the custom command play LBC London on TuneIn. Then you only have to say LBC London
Ah, without a media_content_id there isn’t much I can do.
I gave it a try with the cast functionality and the app_name and app_id you gave above, but that did not work.
(Limited) support for YouTube and YouTube music. The active video/song will be resumed at the position (minus 2 seconds) when it was interrupted. However, it will only resume that video/song. Not the full playlist/album/whatever.
Fix in template where speaker groups were not seen as cast entities.
and the media_players connected to the Spotify integration are named (matching the spotcast configuration and the primary_spotcast variable in the script):