This is a super-simple standalone program for controlling the Etekcity Wireless Remote Control Electrical Outlet Switches, 5-pack or 3-pack, and probably other models, from your Raspberry Pi.
The code is based off of that of 433Utils, although it has been cleaned up and reduced to the bare bones minimum. It is also written in C rather than C++.
- Raspberry Pi
- Development toolchain; git, gcc, etc.
- RF 433 MHz transmitter module, such as this one from SMAKN
- Wire the 433 MHz module up to wiringPi ping 0 (Broadcom pin 17)
- Install wiringpi if you don't have it already; this should be available on your Pi distro of choice
- Clone this repository
- Run
make
- Run a command like
./rfoutlet 1 on
to turn switch 1 on