It seems that every electronic device manufactured these days has a remote control. These work by sending a "code" of infrared (IR) light pulses to the device being controlled. By using an Arduino or ESP8266 with an IR receiver, the signals coming from the remotes can be captured, decoded and saved.

So far, we can control three different TV's, a cable box, and a stereo amplifier.