The code to use is 30176. But with yamaha use of two button power scheme and the lone power of the RC23, it will not control both ON & OFF of the receiver. Nothinmg can be one about it. To get the volume commands, there needs to be a TV code programmed to the TV device, then:
1. av1 or av2
2. press and hold MUTE & SELECT for two blinks
3. enter 9-9-3
4. press VOL UP