Hello,
I’m very new to HA (so apologies if this question isn’t in the right place) but eager to learn.
I’ve set up an automation that, at a time in the morning, will cast a YouTube video to my Google HUB for a bit of ambience. It works great:
action:
- data:
media_content_type: cast
media_content_id: " { \"app_name\": \"youtube\", \"media_id\": \"GyK6w4RVePg\" }"
enqueue: play
service: media_player.play_media
target:
device_id: 323a99912ae05ec9a79471e420b87103
What I’d like to do though is have it play a random video from a set of possible ones. How would I go about doing that? Would it be a case of stipulating all the possible videos in the automation YAML somehow, or is there a way to pick randomly from a list / DB of some kind?
Thank you.