Next thermostat state/current program determination.