Ah sorry, perhaps I wasn't clear in my post. I've also used the old thermostat wiring to connect a temperature sensor in the room which is then connected to the Raspberry Pi. The Raspberry Pi then runs a program to turn the relay on when heat is required. I just tried to keep my description...