How can I play a playlist when motion is detected?

Hello,

I currently have WLED running on an ESP32.
Connected to it is a PIR that is defined as a switch.

Now, when movement is detected, I want to play a playlist that I created.
The problem is that it only ever plays the last state of the LEDs.
For example: The last time I had Effect X on, it plays it when it detects movement. If I last defined the color green, it plays it when it moves.

Can anyone help me?
Thank you!

greeting