OK, the TV, receiver, and Bluray all have discrete power codes. The cable box doesn't, but it is generally believed that one doesn't save any power by shutting off the cable DVR. (BTW , I assume your TV is really a 42PG20...)
If you have a cable remote made by UEI--Comcast, Cox, Rodgers, Time Warner, etc.,-- you can probably convince yourself that the discretes work.
For example, the TV responds to NEC1 IR protocol device 4. On is function number 196, and Off is 197. With a UEI remote, you can test these by tapping Setup (don't hold it) and entering 00172 (On) and 00176 (Off) . When you enter the 5th digit, the IR signal will be sent.
For the BluRay, use setup code video 0490 (20490 if using a Comcast with a red OK select button) On is 00022 and Off is 00026.
The JVC has two possibilities: Use setup code Audio 0331 (30331)
On is 00248 or 00008, Off is 00247 or 00006
The you can use the
994 command to assign the above 5 digit EFCs to spare buttons, and then use the 995 command to generate macros.