Sending RF control signals directly

Instead of rewiring the remote control, you can replicate the remote's RF signals using a transmitter that uses the same frequency as your sockets (these particular units use 433.94 MHz). This will depend on the particular sockets and sometimes your location – some countries prohibit the use of certain frequencies – as you may require certification before making your own transmissions:

The 433.94 MHz RF transmitter (left) and receiver (right)

The signals sent by the RF remote control can be recreated using 433Utils created by http://ninjablocks.com. The 433Utils uses WiringPi and is written in C++, allowing ...

Get Raspberry Pi 3 Cookbook for Python Programmers - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.