1. Short title This Act may be cited as the Technologies for Energy Security Act of 2017 . 2. Extension and phaseout of residential energy efficient property (a) Extension Section 25D(h) of the Internal Revenue Code of 1986 is amended by striking December 31, 2016 (December 31, 2021, in the case of any qualified solar electric property expenditures and qualified solar water heating property expenditures) and inserting December 31, 2021 . (b) Phaseout (1) In general Paragraphs (3), (4), and (5) of section 25D(a) of such Code are amended by striking 30 percent each place it appears and inserting the applicable percentage . (2) Conforming amendment Section 25D(g) of such Code is amended by striking paragraphs (1) and (2) of . (c) Effective date The amendments made by this section shall take effect on the date of the enactment of this Act. 3. Extension of energy credit (a) Solar energy property Paragraph (3)(A)(ii) of section 48(a) of the Internal Revenue Code of 1986 is amended by striking periods ending before January 1, 2017 and inserting property the construction of which begins before January 1, 2022 . (b) Qualified fuel cell property Section 48(c)(1)(D) of such Code is amended by striking for any period after December 31, 2016 and inserting the construction of which does not begin before January 1, 2022 . (c) Qualified microturbine property Section 48(c)(2)(D) of such Code is amended by striking for any period after December 31, 2016 and inserting the construction of which does not begin before January 1, 2022 . (d) Combined heat and power system property Section 48(c)(3)(A)(iv) of such Code is amended by striking which is placed in service before January 1, 2017 and inserting the construction of which begins before January 1, 2022 . (e) Qualified small wind energy property Section 48(c)(4)(C) of such Code is amended by striking for any period after December 31, 2016 and inserting the construction of which does not begin before January 1, 2022 . (f) Thermal energy property Section 48(a)(3)(A)(vii) of such Code