Summary of Significant Accounting Policies - Schedule of Revenues from External Customers (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2018 |
Jun. 30, 2017 |
Jun. 30, 2018 |
Jun. 30, 2017 |
|
| Revenue, Major Customer [Line Items] | ||||
| Customer agreements | $ 66,658 | $ 51,220 | $ 128,307 | $ 97,545 |
| Incentives | 24,947 | 6,891 | 30,288 | 9,656 |
| Customer agreements and incentives | 91,605 | 58,111 | 158,595 | 107,201 |
| Solar energy systems and product sales | 78,933 | 72,511 | 156,306 | 128,530 |
| Total revenue | 170,538 | 130,622 | 314,901 | 235,731 |
| Solar energy systems | ||||
| Revenue, Major Customer [Line Items] | ||||
| Solar energy systems and product sales | 40,734 | 28,079 | 74,732 | 48,698 |
| Products | ||||
| Revenue, Major Customer [Line Items] | ||||
| Solar energy systems and product sales | $ 38,199 | $ 44,432 | $ 81,574 | $ 79,832 |