Can you use a full bridge rectifier off of 1 AC line?

the thermostat works, but we haven't replaced the battery ever. it runs in 2 aa batteries.