Controlling a gpio with either playstate or a button on the client

Hi folks, I’m just waiting on my pi to arrive in the mail, but in the meantime am wondering if anyone has a working option to toggle a gpio on the pi. Basically I want to be able to turn my amp on and off without walking over to it. I’d be happy with it coming on automagically when playback starts, and turning off again after (say) 10mins of silence. I’d also be happy with a button in an mpd client that I could use to manually but remotely toggle the amp. Amp would obviously be controlled through a relay, not directly from the gpio.

Keen to hear what you’ve got!

I’m not sure if this is also your account, but take a look at this:-)