Nexa
The setup
Since 2012 I have controlled my power outlets in my house using a Rasperry PI extended with an home made PCB populated with a tx433n transmitting module.
The PCB is a slot in on the pin connector in the Raspberry PI and fit nicely inside a standard Raspberry PI casing. The PCB was drawn in Eagle CAD and the PCB was ordered from OSHPark.
The code
The source code for the transmtting side of this small project is available in my free repository: Nexa Git Repo.
The usage
I still have the code in use today and it is wrapped around a small Python service that receives one iCal entry from my Google calendar where I control when a light should be on or off.