I have a simple script that plays YouTube Video playlists. The script works. I tested it with 7 different playlists . The trace shows no errors. There is nothing in the log. The script follows. The playlist and media_id are passed from the calling automation and show up in the changed variable in the trace correctly.
alias: play_youtube_pl
sequence:
- service: media_player.play_media
target:
entity_id: media_player.wcast_tv
data:
media_content_id: " { \"app_name\": \"youtube\", \"playlist_id\": \"{{playlist}}\", \"media_id\": \"{{media}}\"}"
media_content_type: cast
mode: single
The script adheres to the Google Cast example in the manual. (Google Cast - Home Assistant)
Problem is nothing that played this morning plays this evening.
I’ve run across this several times and can find no explanation .
Any ideas?
PS - For those that tell me to format the code correctly I did use the `use the three ``` before and after the code but they seem to have no effect.