Summary of Significant Accounting Policies | Summary of Significant Accounting Policies Basis of consolidated financial statement presentation: The accompanying Unaudited Condensed Consolidated Financial Statements have been prepared in accordance with accounting principles generally accepted in the United States (“U.S. GAAP”) for interim financial information and Article 10 of Regulation S-X. The accompanying Unaudited Condensed Consolidated Financial Statements of the Company include the accounts of its wholly owned subsidiaries and variable interest entities, for which the Company was the primary beneficiary. The Company reports its consolidated financial information under three operating reportable segments: (i) Drivetrain, (ii) XL Grid, and (iii) Residential Solar. All significant intercompany transactions have been eliminated in consolidation. Variable interest entities: In accordance with the provisions of FASB ASC 810, Consolidation ("ASC 810"), the Company consolidates any variable interest entity ("VIE") of which it is the primary beneficiary. The Company formed or acquired VIEs which are partially funded by tax equity investors in order to facilitate the funding and monetization of certain attributes associated with solar energy systems. The typical condition for a controlling financial interest ownership is holding a majority of the voting interests of an entity; however, a controlling financial interest may also exist in entities, such as VIEs, through arrangements that do not involve controlling voting interests. ASC 810 requires a variable interest holder to consolidate a VIE if that party has the power to direct the activities of the VIE that most significantly impact the VIE's economic performance and the obligation to absorb losses of the VIE that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE. The Company does not consolidate a VIE in which it has a majority ownership interest when the Company is not considered the primary beneficiary. The Company evaluates its relationships with the VIEs on an ongoing basis to determine if it is the primary beneficiary. The Company's investments in ORE F4 HoldCo, LLC, ORE F5A HoldCo, LLC, ORE F6 HoldCo, LLC, Sunserve Residential Solar I, LLC, RPV Fund 11 LLC and RPV Fund 13 LLC (collectively, the "Funds") were determined to be variable interests in VIEs. The Company considered the provisions within the contractual arrangements that grant it power to manage and make decisions that affect the operation of the VIEs, including determining the solar energy systems contributed to the VIEs, and the operation and maintenance of the solar energy systems. The Company considers the rights granted to the other investors under the contractual arrangements to be more protective in nature rather than substantive participating rights. As such, the Company was determined to be the primary beneficiary and the assets, liabilities and activities of the Funds are consolidated by the Company. (See Note 13. Noncontrolling Interests) Noncontrolling interests: The distribution rights and priorities for the Funds as set forth in their respective operating agreements differ from the underlying percentage ownership interests of the members. As a result, the Company allocates income or loss to the noncontrolling interest holders of the Funds utilizing the hypothetical liquidation of book value ("HLBV") method, in which income or loss is allocated based on the change in each member's claim on the net assets at the end of each reporting period, adjusted for any distributions or contributions made during such periods. The HLBV method is commonly applied to investments where cash distribution percentages vary at different points in time and are not directly linked to an equity member's ownership percentage. The HLBV method is a balance sheet-focused approach. Under this method, a calculation is prepared at each reporting date to determine the amount that each member would receive if the entity were to liquidate all of its assets and distribute the resulting proceeds to its creditors and members based on the contractually defined liquidation priorities. The difference between the calculated liquidation distribution amounts at the beginning and the end of the reporting period, after adjusting for capital contributions and distributions, is used to derive each member's share of the income or loss for the period. Use of estimates: The preparation of financial statements in conformity with U.S. GAAP requires management to make certain estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent assets and liabilities as of the balance sheet date, as well as reported amounts of expenses during the reporting period. The Company’s most significant estimates and judgments involve inventory reserves, deferred income taxes, warranty reserves, valuation of share-based compensation, the valuation of warrant liability, useful lives of certain assets and liabilities, the allowance for doubtful accounts, and the valuation of business combinations, including the fair values and useful lives of acquired assets and assumed liabilities and the fair value of purchase consideration. Management bases its estimates on historical experience and on various other assumptions believed to be reasonable, the results of which form the basis for making judgments about the carrying values of assets and liabilities. Actual results could differ from those estimates, and such differences could be material to the Company’s financial statements. Concentration of Credit Risk: Financial instruments which potentially subject the Company to concentrations of credit risk consist of cash and trade receivables. At times, such cash may be in excess of the FDIC limit. At September 30, 2022 and December 31, 2021, the Company had cash in excess of the $250 federally insured limit. The Company believes it is not exposed to any significant credit risk on cash and cash equivalents. With respect to trade receivables, the Company routinely assesses the financial strength of its customers and, as a consequence, believes that the receivable credit risk exposure is limited. As of September 30, 2022, one customer accounted for approximately 13% of accounts receivable, net. As of December 31, 2021, two customers accounted for approximately 74% and 11% of accounts receivable, net. For the three months ended September 30, 2022 and 2021, one customer accounted for approximately 19% and 80% of revenues, respectively. For the nine months ended September 30, 2022 and 2021, three and two customers accounted for approximately 64% and 56% of revenues, respectively. Cash, cash equivalents, and restricted cash: The Company considers all highly liquid investments with a maturity of three months or less at the time of purchase to be cash equivalents. Cash and cash equivalents include cash held in banks and money market accounts. Cash equivalents are carried at cost, which approximates fair value due to their short-term nature. The Company’s cash and cash equivalents are placed with high-credit quality financial institutions and issuers, and at times exceed federally insured limits. To date, the Company has not experienced any credit loss relating to its cash and cash equivalents. Restricted cash: Restricted cash held at September 30, 2022 and December 31, 2021, consists of $150 for a bank deposit required for a letter of credit which is reserved for the Company’s California lease while restricted cash held at September 30, 2022 also includes $31,972 of cash that is subject to restriction due to provisions in the Company's financing agreements and the operating agreements of the Funds that are accounted for as consolidated VIEs. The restricted cash may be subject to depository and collateral account agreements. The carrying amount reported in the Unaudited Consolidated Balance Sheet for restricted cash approximates fair value. The following table provides a reconciliation of Cash and Cash Equivalents and Restricted Cash in the Unaudited Condensed Consolidated Balance Sheets to the total amount shown in the Unaudited Consolidated Statements of Cash Flows: As of September 30, 2022 September 30, 2021 Cash and cash equivalents $ 239,512 $ 366,748 Restricted cash 32,122 150 Total cash, cash equivalents, and restricted cash $ 271,634 $ 366,898 Accounts receivable, net: Accounts receivable are stated at the gross invoice amount, net of an allowance for doubtful accounts. The allowance for doubtful accounts is maintained at a level considered adequate to provide for potential account losses on the balance based on management’s evaluation of the anticipated impact of current economic conditions, changes in the character and size of the balance, past and expected future loss experience, among other pertinent factors. As of September 30, 2022 and December 31, 2021, the Company’s allowance for doubtful accounts was $151 and $148, respectively. Inventory, net: Inventory is comprised of raw materials, work in process and finished goods. Inventory is stated at the lower of cost or net realizable value. Cost of raw material inventories include the purchase and related costs incurred in bringing the products to their present location and condition. The Company uses consistent methodologies to evaluate inventory for net realizable value and periodically reviews inventories for obsolescence and any inventories identified as slow moving or obsolete are initially reserved for and then written-off. As of September 30, 2022 and December 31, 2021, the Company’s inventory reserve for obsolescence was $4,206 and $2,863, respectively. The increase in the inventory reserve at September 30, 2022 reflects the restructuring undertaken and the related products that were eliminated. Solar energy systems, net: Solar energy systems, net consists of residential solar energy systems which are subject to Customer Agreements. Solar energy systems are recorded at fair value upon acquisition, less any impairment charges. For all acquired systems, the Company calculates depreciation using the straight-line method over the remaining useful life as of the acquisition date based on a 30-year useful life from the date the asset was placed in service. When a solar energy system is sold or otherwise disposed of, a gain (or loss) is recognized for the amount of cash received in excess of the net book value of the solar energy system (or vice versa) at which time the related solar energy system is removed from the balance sheet. Depreciation expense of solar energy systems for the nine months ended September 30, 2022 was $1,320. Other property and equipment, net: Other property and equipment, net is stated at cost less accumulated depreciation, or if acquired in a business combination, at fair value as of the date of acquisition. Depreciation is calculated using the straight-line method, based upon the following estimated useful lives: Equipment 5 years Furniture and fixtures 3 years Computer and related equipment 2 years Software 2 years Vehicles 5 years Leasehold improvements Lesser of useful life of the asset or remaining life of the lease Improvements are capitalized, while replacements, maintenance and repairs, which do not improve or extend the lives of the respective assets, are expensed as incurred. When property and equipment is retired or otherwise disposed of, the related cost and accumulated depreciation are removed from the accounts, and any gain or loss on the disposition is recorded in the statement of operations as a component of other (expense) income, net. Depreciation expense of other property and equipment for the nine months ended September 30, 2022 and 2021 was $571 and $445, respectively. Asset retirement obligations: Customer agreements only require that solar energy systems be removed if: (1) the customer has not renewed the customer agreement or exercised their purchase option and (2) the host customer requests the Company to remove the system. Upon review of the Company's estimate of the probability of required system removal, the Company considered current industry trends and has determined that it is highly probable that the customers will choose to renew their agreements or exercise the buyout option as the systems have an estimated useful life greater than the terms of the customer agreements and would still present value to the customer through cost savings. Therefore, the Company believes that the probability-weighted estimated removal costs are nominal. Intangible assets, net: Intangible assets are initially recorded at fair value and stated net of accumulated amortization and impairments. The Company amortizes its intangible assets that have finite lives using either the straight-line method, or if reliably determinable, based on the pattern in which the economic benefit of the asset is expected to be utilized. Amortization is recorded over the estimated useful lives, which for developed technology is 4 years. The Company evaluates the recoverability of its definite lived intangible assets whenever events or changes in circumstances or business conditions indicate that the carrying value of these assets may not be recoverable based on expectations of future undiscounted cash flows for each asset group. If the carrying value of an asset or asset group exceeds its undiscounted cash flows, the Company estimates the fair value of the assets, generally utilizing a discounted cash flow analysis based on the present value of estimated future cash flows to be generated by the assets or asset group using a risk-adjusted discount rate. To estimate the fair value of the assets, the Company uses market participant assumptions pursuant to ASC 820, Fair Value Measurement . Amortization expense for intangible assets for the nine months ended September 30, 2022 and 2021 was $1,020 and $629, respectively. Fair value measurements: The Company follows the guidance in ASC Topic 820, Fair Value Measurement , for its financial assets and liabilities that are re-measured and reported at fair value at each reporting period, and non-financial assets and liabilities that are re-measured and reported at fair value at least annually. The fair value of the Company’s financial assets and liabilities reflects management’s estimate of amounts that the Company would have received in connection with the sale of the assets or paid in connection with the transfer of the liabilities in an orderly transaction between market participants at the measurement date. In connection with measuring the fair value of its assets and liabilities, the Company seeks to maximize the use of observable inputs (market data obtained from independent sources) and to minimize the use of unobservable inputs (internal assumptions about how market participants would price assets and liabilities). The following fair value hierarchy is used to classify assets and liabilities based on the observable inputs and unobservable inputs used in order to value the assets and liabilities: Level 1 : Quoted prices (unadjusted) for identical assets or liabilities in active markets that the Company can access at the measurement date. Level 2 : Significant other observable inputs other than level 1 prices such as quoted prices for similar assets or liabilities, quoted prices in markets that are not active or other inputs that are observable or can be corroborated by observable market data. Level 3 : Significant unobservable inputs that reflect the Company’s judgment about the assumptions that market participants would use in pricing an asset or liability. An asset’s or liability’s fair value measurement level within the fair value hierarchy is based on the lowest level of any input that is significant to the fair value measurement. Valuation techniques used need to maximize the use of observable inputs and minimize the use of unobservable inputs. See Note 10. Fair Value Measurements for additional information on assets and liabilities measured at fair value. The Company believes its valuation methods are appropriate and consistent with other market participants, however the use of different methodologies or assumptions to determine the fair value of certain financial instruments could result in a different fair value measurement at the reporting date. The Company’s financial instruments consist of cash and cash equivalents, restricted cash, accounts receivable, accounts payable, accrued liabilities, contingent consideration liability, long-term debt and warrant liability. The carrying value of cash and cash equivalents, accounts receivable, accounts payable, and accrued expenses approximates fair value because of the short-term nature of those instruments. Prepaid expenses and other current assets: Prepaid expenses and other current assets include prepaid insurance, prepaid rent, and supplies, which are expected to be recognized or realized within the next 12 months. Impairment of long-lived asset s: The Company reviews long-lived assets, including property and equipment and, intangible assets with definite lives, for impairment whenever events or changes in circumstances indicate that an asset group’s carrying amount may not be recoverable. The Company conducts its long-lived asset impairment analysis in accordance with ASC 360-10, Impairment or Disposal of Long-Lived Assets , which requires the Company to group assets and liabilities at the lowest level for which identifiable cash flows are largely independent of the cash flows of other assets and liabilities and evaluate the asset group against the sum of the undiscounted future cash flows. If the undiscounted cash flows do not indicate the carrying amount of the asset group is recoverable, an impairment charge is measured as the amount by which the carrying amount of the asset group exceeds its fair value. Impairment of goodwill: Goodwill represents the excess of cost over the fair market value of net tangible and identifiable intangible assets of acquired businesses. Goodwill is not amortized but instead is annually tested for impairment, or more frequently if events or circumstances indicate that the carrying amount of goodwill may be impaired. The Company has recorded goodwill in connection with its historical business acquisitions. The Company performs its annual goodwill impairment assessment at October 1 each fiscal year, or more frequently if events or circumstances arise which indicate that goodwill may be impaired. An assessment can be performed by first completing a qualitative assessment on the Company’s single reporting unit. The Company can also bypass the qualitative assessment in any period and proceed directly to the quantitative impairment test, and then resume the qualitative assessment in any subsequent period. Qualitative indicators that may trigger the need for annual or interim quantitative impairment testing include, among other things, deterioration in macroeconomic conditions, declining financial performance, deterioration in the operational environment, or an expectation of selling or disposing of a portion of the reporting unit. Additionally, a significant change in business climate, a loss of a significant customer, increased competition, a sustained decrease in share price, or a decrease in estimated fair value below book value may trigger the need for interim impairment testing of goodwill. If the Company believes that, as a result of its qualitative assessment, it is more likely than not that the fair value of the reporting unit is less than its carrying amount, the quantitative impairment test is required. The quantitative test involves comparing the fair value of the reporting unit with its carrying amount, including goodwill. If the carrying amount of the reporting unit exceeds its fair value, an impairment loss is recorded as a reduction to goodwill with a corresponding charge to earnings in the period the goodwill is determined to be impaired. The income tax effect associated with an impairment of tax-deductible goodwill is also considered in the measurement of the goodwill impairment. Any goodwill impairment is limited to the total amount of goodwill. The Company determines the fair value of its reporting unit using the market approach. Under the market approach method, the Company compared its book value to the fair value of its public float, utilizing the fair value of its common stock on the measurement date. In the first quarter of 2022, the Company believed there were indicators that the carrying amount of its goodwill may be impaired due to a decline in the Company’s stock price and market capitalization. As a result, the Company performed an assessment of its goodwill for impairment. The Company elected to forego the qualitative test and proceeded to perform a quantitative test. The Company compared the book value of its single reporting unit to the fair value of its public float. The market capitalization was below the fair value of the Company by an amount in excess of its reported value of goodwill. As a result, the Company recorded a charge of $8,606 to fully impair goodwill in the first quarter of 2022. Revenue: The Company’s revenue is derived through three operating segments: (1) the Drivetrain segment generates revenue from the sales of hybrid electric powertrain systems, (2) the XL Grid segment generates revenues through turnkey energy efficiency, renewable technology, and other energy solutions, and (3) the Residential Solar segment primarily generates revenue through the sale to homeowners of power generated by its residential solar energy systems pursuant to long-term agreements. The Drivetrain products are marketed and sold to end-user fleet customers and channel partners in the United States and Canada. The Company’s XL Grid solutions are marketed and sold to municipalities, corporations and other businesses and principally funded through energy incentives provided through public and private utilities. The XL Grid business primarily consists of the operations acquired through the May 2021 acquisition of World Energy Efficiency Services LLC ("World Energy"). Sales of products and services are subject to economic conditions and may fluctuate based on changes in the industry, trade policies, financial markets, and funded energy incentives. Revenue is recognized upon transfer of control to the customer, which occurs when the Company has a present right to payment, legal title has passed to the customer, the customer has the significant risks and rewards of ownership, and where acceptance is not a formality, the customer has accepted the product or service. For the Drivetrain products, in general, transfer of control is upon shipment of the equipment as the terms are FOB shipping point or equivalent and the Company has no other promised goods or services in its contracts with customers. In limited instances, the Company provides installation services to end-user fleet customers related to the purchased hybrid electric powertrain equipment. When provided, these installation services are not distinct within the context of the contract due to the fact that the end-use fleet customer is purchasing a completed modification to its vehicles and therefore, the installation services involve significant integration to integrate the hybrid electric powertrain equipment with the customer’s vehicle. As a result, the hybrid electric powertrain equipment and installation services represent a single performance obligation within these contracts with customers. The Company recognizes the revenue for the equipment sale and installation service for Drivetrain products at the same time, which is after the installation is complete. The Company has elected to treat shipping and handling activities related to contracts with channel partner customers for Drivetrain products as costs to fulfill the promise to transfer the associated equipment and not as a separate performance obligation. For the XL Grid solutions, in general, transfer of control is upon the acceptance and certification of project completion by both the end customer and the utility who is funding the energy incentives, representing a single performance obligation of the Company. Due to the short-term nature of projects (typically two to three weeks), the Company recognizes revenues from all XL Grid solutions activities at a point in time, when persuasive evidence of an arrangement exists, delivery has occurred, the price is fixed or determinable and the Company has the right to payment for the transferred asset. The Company also assesses multiple contracts entered into by the same customer in close proximity to determine if the contracts should be combined for revenue recognition purposes. During the duration of a project for XL Grid solutions, all direct material and labor costs and those indirect costs related to the project are capitalized, and customer deposits are treated as liabilities. Once a project has been completed and the energy efficiency upgrades have been deemed to meet client specifications, capitalized costs are charged to earnings. For both Drivetrain and XL Grid solutions, when the Company’s contracts with customers contain multiple performance obligations, which is infrequent, the contract transaction price is allocated on a relative standalone selling price (SSP) basis to each performance obligation. The Company determines SSP based on observable selling prices for the sale of its systems. For extended warranties, the Company determines SSP based on expected cost plus margin. The Company establishes the margin based on review of market conditions and margins obtained by market participants for similar services. Any allocation of the transaction price required is determined at the contracts’ inception. The transaction price is the amount of consideration to which the Company expects to be entitled in exchange for transferring goods and services to the customer. Revenue is recorded based on the transaction price, which is solely made up of fixed consideration for its products and services. The Company does not adjust transaction price for the effects of a significant financing component when the period between the transfer of the promised good or service to the customer and payment for that good or service by the customer is expected to be one year or less. The Company has not identified any significant financing components to date. The Company’s sales can in certain instances include non-cash consideration in the form of the customer transferring to the Company, the customer’s rights to cash incentives from programs administered by municipalities related to hybrid vehicle programs that a customer is entitled to as a result of its purchase. The incentives are fixed amounts that are readily determinable. The Company values the non-cash consideration at its fair value, which generally is the amount of the incentive. Payment terms on invoices generally range from 30 to 60 days. The Company excludes from revenue any sales tax and other government-assessed and imposed taxes on revenue generating activities that are invoiced to customers. The Company has elected to apply the practical expedient to expense costs to obtain contracts, which principally relate to sales commissions, at the time the liability is incurred when the expected amortization period is one year or less. Residential Solar Segment Revenues Energy generation - Customers purchase electricity under PPAs or SLAs. Revenue is recognized from contracts with customers as performance obligations are satisfied at a transaction price reflecting an amount of consideration based upon an estimated rate of return which is expressed as the solar rate per kilowatt hour or a flat rate per month as defined in the customer contracts. • PPAs - Under ASC 606, Revenue from Contracts with Customers, PPA revenue is recognized when generated based upon the amount of electricity delivered as determined by remote monitoring equipment at solar rates specified under the PPAs. • SLAs - The Company has SLAs, which do not meet the definition of a lease under ASC 842, Leases , and are accounted for as contracts with customers under ASC 606. Revenue is recognized on a straight-line basis over the contract term as the obligation to provide continuous access to the solar energy system is satisfied. The amount of revenue recognized may not equal customer cash payments because the performance obligation has been satisfied ahead of cash receipt or evenly as continuous access to the solar energy system has been provided. The differences between revenue recognition and cash payments received are reflected in accounts receivable, other assets or deferred revenue, as appropriate. Solar renewable energy credit s - The Company has contracts with third parties to sell Solar Renewable Energy Credits ("SRECs") generated by the solar energy systems for fixed prices. Certain contracts that meet the definition of a derivative may be exempted as normal purchase or normal sales transactions ("NPNS"). NPNS are contracts that provide for the purchase or sale of something other than a financial instrument or derivative instrument that will be delivered in quantities expected to be used or sold over a reasonable period in the normal course of business. The Company's SREC contracts meet these requirements and are designated as NPNS contracts. Such SRECs are exempted from the derivative accounting and reporting requirements, and the Company recognizes revenues in accordance with ASC 606.The Company recognizes revenue for SRECs based on pricing predetermined within the respective contracts at a point of time when the SRECs are transferred. Government incentives - The Company participates in the Residential Solar Investment Program of Connecticut, which offers a performance-based incentive (“PBI”) for certain of its solar energy systems that are associated with the program (“eligible systems”). PBIs are paid to the Company and recognized as revenue quarterly based on actual per-kilowatt-hour production delivered to the eligible systems. For systems up to 20kW, the Company will be paid a predetermined rate based on the eligible system start date. The program lasts for six years from the eligible systems’ start date. PBI revenue is accounted for under ASC 606 and is earned monthly based upon the actual electricity produced by the system. MSA revenue - The Company earns operating and maintenance revenue from third-party residential solar fund customers at pre-determined rates for various operating and maintenance and asset management services as specified in Maintenance Service Agreements ("MSAs") and Operating Service Agreements ("OSAs"). The MSAs and OSAs contain multiple performance obligations, including routine maintenance, nonroutine maintenance, renewable energy certificate management, inventory management, delinquent account collections and customer account management. Pursuant to ASC 606, the Company has elected the "right to invoice" practical expedient and revenue for these performance obligations are recognized as services are rendered based upon the underlying contractual arrangements. Loan servicing - The Company performs loan servicing functions for third parties in return for a servicing fee. The compensation is based on a percentage of the loans outstanding. The Company has elected the "right to invoice" practical expedient and loan servicing support revenues are recognized as services are rendered based upon the underlying contractual arrangements. Cost of Revenues: Cost of revenues - inventory and other direct costs represents costs related to Drivetrain and XL Grid revenues. Drivetrain cost of revenues include the cost of the product, freight costs, installation labor, expected warranty expense, and inventory obsolescence charges. XL Grid cost of revenues include direct project costs including labor and materials. Cost of revenues - operations and maintenance represents the costs of operating the solar systems primarily the costs of third parties used to service the systems. Cost of revenues - solar energy systems depreciation represents the depreciation expense relating to the solar systems. Warranties: Customers who purchase Drivetrain products are provided limited-assurance-type warranties for equipment and work performed under the contracts. The warranty period typically extends for 3 years following transfer of control of the equipment. The warranties solely relate to correction of product defects during the warranty period, which is consistent with similar warranties by offered by comp |