بسم الله الرحمن الرحيم
According to Shariah, it is lawful to use the solar heater. And wudhu and ghusl done with water heated by the solar heater shall be valid without any doubt.
Allah knows Best!
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.