I took a standard digital thermostat and hooked up the red wire from my gas valve to the rh terminal and the white wire to the w terminal and the thermostat controls my fire gas fire place just fine....