RCA Home Automation
So I have an old RCA1310a remote and an HC50rx receiver, they are about 10 years old now.
When I switched the batteries on the remote it forgot what code it should use to turn on a light. I couldn't find anything online about this but by dumb luck I managed to get the remote working again.
I basically held code search down until the little red light went on, then I pressed the home automation button and then pressed the light on button (channel up) until the little red light went off, then all of a sudden the remote works.