yes of course they can be used in an automation…
However I’d rather be using the MPD component instead of the command line switches. Especially because I’m using a docker image which does not come with mpc pre-installed. So I have to exec into the image and install it after each update.
As this was the topic I kept coming back to when searching for this, I figure I might as well add the solution despite the thread being fairly old. (psv being the name of the playlist)