Power amp control / bash / mpc - spotify

Hi, I have had my RPI switching the power amp on/off via a bash script that controls a relay. The script contained the line ‘if mpc status | grep playing >/dev/nul’ to check if mpd is playing or not. Since I upgraded to RPI 3 and latest volumio this works still for all except spotify. How can I check with a bash script if spotify is playing? Thanx!

I think this will provide all the info you might need:

volumio status