looks like brown is one leg of the power coming in to the existing controller and red is power coming out of the controller as determined by the thermostat you are having trouble with. Electric guys, correct me if I'm wrong, but it looks like you would want to put the new thermostat in series...