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:
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.
g++ -o 433send 433send.cpp –I/usr/local/include -L/usr/local/lib -lwiringPi
Execute as root!
sudo ./433send -d <device number> -s 1|0
-d: device number.
-s: 1 = on, 0 = off.
A = 1
B = 2
C = 4
D = 8
E = 16
Example: sudo ./433send -d 4 -s 1 (turn on device C)
Original source written for Arduino by Piepersnijder: http://gathering.tweakers.net/forum/view_message/34919677