For now the code can only handle two outlets, because of on and off-buttons and one pin for the transmitter.
In the future I'll probably use a shift register to handle the buttons presses, but for now it just works.
This project will only work for those plugs with 10 DIP-Switches. The addresses are defined the following and need to be adapted to your needs in the rc.h. Also they are written in negative logic:
The DIP switches ranging from 1 to 5 define the base address. In my case I have switch 1 and 5 switched "ON". This gives a base address of "0FFF0"
The same goes for the switch address on the DIP-switches from A through E. For the switch C the address is "FF0FF"
See the following picture for reference
All code can be found on my github: https://github.com/qwqw330/433mhz-remote