Somewhere I ran across a Yamaha toggle power code in doing one of these setups, even though the Yamaha remote doesn't have it! When you're trying different codes, be sure to see if the Yamaha power code they give you is a toggle.
A good answer is easier with a clear question giving the make and model of everything. "The biggest problem in communication is the illusion that it has taken place." -- G. “Bernie” Shaw