Learning IR Commands for Custom Devices

First, we would strongly suggest reviewing step 5 in the IR Diagnosis FAQ:

roomieremote.com/faq/#diagnoseIR

That specifically discusses Sony TVs as the classic case needing a higher retransmit count. It’s extremely likely just setting that to 2-4 will resolve the issue.

While we’d love to figure out how you looped around learning codes, it’s probably simpler just to forget it and use the built-in codes that work with all models of Sony TVs.