Remote control for receiver?

Running musicbox. Would like to use it to remotely control my receiver (power on/off, volume, etc.). Musicbox always on and available, but it would be awesome to turn the receiver on from same web interface as musicbox.

Has anyone done this ?
Thanks !

This is basically what Mopidy-NAD does for NAD receivers. You should have a look at how that extension works.

(Mopidy-Yamaha also exists, but isn’t currently compatible with Mopidy 3.)