I searched on DIY transmitter and DIY receiver and got many useful hits. Inclusion of the term, "DIY," probably causes the search to miss a few relevant threads, but if you leave the "DIY" out, you will get too many hits. The threads you get with the DIY do link to other threads. For example, this thread was found that way: https://sites.google.com/site/rchomesite/home
The designs are basically divided into two parts: 1) an RF section; and 2) controls, inputs, and outputs. Most of the DIY projects by far used commercial RF sections. There are a few simple RF designs presented, but I would recommend using a commercial module too. As for the projects themselves, the few I checked seemed to share only the hex code and not the source code. I am sure there are some that do give the source code in links contained within the thread.
As for no power drain when the switch sis off, that is probably something you will have to consider in your design. None of the designs I saw even mentioned it.