Every time I listen to music in the car or with the music station (so the phone's plugged in) I want to toggle the '"hey siri" switch to on. When I quit the music app i want it to be off, so it doesn't always listen.
What i need is a simple if-action: if the music app is running, the hey siri switch is on. If not it should be off.
At first i thought i could do this with the "activator", but i didn't find a setting that allows me to toggle the "hey siri" in settings.

Is there a way to do this?

By the way: I don't want to leave the hey siri feature on all the time, because I simply don't want it running at night.
And because people could walk into the room and just say "hey siri".

Thanks