Segment Information - Financial information for segments and reconciliation of Total of Reportable segments' income/(loss)from operations (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2019
Mar. 31, 2019
Jun. 30, 2018
Mar. 31, 2018
Jun. 30, 2019
Jun. 30, 2018
Contract revenue:            
Consolidated contract revenue $ 2,294   $ 3,568   $ 4,456 $ 6,392
Operating loss:            
Operating loss (3,352)   (4,209)   (7,854) (8,600)
Reconciliation of consolidated loss from operations to consolidated net loss:            
Change in fair value of derivative liabilities and loss on debt extinguishment (1,502)   (3,073)   (1,445) (3,046)
Amortization of debt discount and deferred loan costs (234)   (1,435)   (287) (1,435)
Other income 12   955   20 985
Net loss (5,076) $ (4,490) (7,762) $ (4,334) (9,566) (12,096)
Solar Division            
Contract revenue:            
Consolidated contract revenue 2,188   3,568   4,248 6,381
Operating loss:            
Operating loss (532)   (571)   (2,150) (1,996)
POWERHOUSE            
Contract revenue:            
Consolidated contract revenue 106   0   171 0
Operating loss:            
Operating loss (1,004)   (57)   (1,465) (108)
Other            
Contract revenue:            
Consolidated contract revenue 0   0   37 11
Operating loss:            
Operating loss $ (1,816)   $ (3,581)   $ (4,239) $ (6,496)