The 433send program allows you to control wireless switches by Elro using a 433.92 MHz transmitter such as this one.
Connecting the transmitter to the Raspberry Pi GPIO header:
‘VCC’ pin to 3V3 (pin #1)
‘Data’ pin to GPIO0 (pin #3)
‘GND’ to GND (pin #6)
First, download and install WiringPi. WiringPi allows you to easily control the Raspberry Pi’s GPIO pins:
https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/
Then, download 433send.cpp and put in (for example) the WiringPi example directory (~/wiringPi/examples)
Change the key[] variable according to the dipswitches on your Elro switches.
Compile it:
g++ -o 433send 433send.cpp –I/usr/local/include -L/usr/local/lib -lwiringPi
Usage:
Execute as root!
sudo ./433send -d <device number> -s 1|0
-d: device number.
-s: 1 = on, 0 = off.
Devices:
A = 1
B = 2
C = 4
D = 8
E = 16
Example: sudo ./433send -d 4 -s 1 (turn on device C)
Credits:
Original source written for Arduino by Piepersnijder: http://gathering.tweakers.net/forum/view_message/34919677