Thermostat with change-over switch