I created the following IfThenElse script: What this does it the following: MPD: If my MPD box is playing, power on stereo, wait 5 seconds and switch to the right channel. XBMC: If xbmc is playing (or a remote pc (aka desktop) outputs audio via the local pulseaudio server) power on stereo, wait 5 read more