 This battery charges when the thermostat is not calling for heat and 24 VAC is available to it.It discharges to operate the clock when the thermostat is set for heating or cooling.Digital thermostats may implement the same functions, but most provide more versatility.