[redditseph] did exactly that by modifying his home thermostat to be controlled by a Raspberry ... Pi needed a way to actually talk to the thermostat. [redditseph] made this work with a relay ...