If you ever spot Spam (either in the forums, or received via forum direct message) please use the Report button at the bottom of each post to make sure a Moderator can handle it quickly. Thanks for your help in keeping things running smoothly!
Another way to do this in a similar way is to use a Logitech Universal Remote that let's you define 'activities' as Logitech calls them. You do need an amp with a remote control for this to work.
Example. We have an activity called TV. When I choose that, the TV powers up, switches to Digital, our network stereo receiver powers up, switches to optical input 1 (connected to the TV). If I want to listen to our record player I choose the activity Phono. The TV powers down and the receiver switches to Phono.
Shutting down is also very easy. You simply switch of the activity on your remote and everything that was on in the activity powers down.
Our Yamaha R-N602 network stereo receiver automatically powers up and down when I use Airplay for streaming. That works separately from the Logitech remote.