Play a playlist in an automation

Hi!
Is it possible to automate a music playlist to play based on a trigger? I’d like a certain web radio station or Spotify playlist to play on my sound system based on an event,etc.

If anyone has an example, I’d appreciate it.
Thanks!!

Do you have spotify set up in Home Assistant?
The docs have an example how to play a playlist on spotify, see here.

Check out Spotcast.