Abstract: A power supply switch for a dual powered thermostat switches the power supply to a dual-powered thermostat with a touch-screen display when a change in primary power supply is detected. The switch switches to an auxiliary power supply. The auxiliary power supply can be a battery.