Surprised no one mentioned Z-wave. Not dirt cheap, but can buy various modules, thermostats, door locks and can control it via a variety of controllers (mi casa verde, homeseer etc). I control most of my lights, thermostats and some door locks via this using homeseer (runs on any pc basically)...