Python script for stopping (not only pausing) playback

Hi! I need a Python script for stopping the Volumio 2 playback. I want to add a GPIO stop button, but with the “GPIO buttons” Volumio plugin I can only PAUSE the playback, but not really STOP it. I want Volumio to be set to the state when a playlist is completely finished for example, when all is empty.
The button should stop the playback first and then turn off the backlight of my 4 lines LCD display. The backlight won’t stay off if the playback is only paused, so I really need it to stop. Only then the backlight stays off – until a new playback is started, then it goes back on automatically, which is perfect then.

What I need is “only” a Python script for stopping playback. I can figure out all the GPIO stuff myself, that’s no problem.

Big thanks in advance! :slight_smile: