If anyone has a Raspberry Pi and is interested, check out rpitx[0]. It bit-bangs a GPIO pin to transmit arbitrary radio, turning your Pi into a messy SDR transmitter. By connecting a wire to the GPIO pin you can transmit for tens of meters.
I attached a low-pass filter to the GPIO pin and was able to control my ceiling fan with my Raspberry Pi.
[0] https://github.com/F5OEO/rpitx
Edit: This generates square waves which have harmonics. You will transmit signals on unintended frequencies if you don't use a filter.