if all you want is a toggle, then just run
pcp power
piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_dona
I've currently got a few Pis set up and powered on all the time. I turn
them on and if in LMS as desired depending on where I want music.
I'm trying to find a way to add a button to the GPIO so I can turn the
player's state on and off in LMS when I enter a room. All my searches
seem to throw up