On my Tesla the overwhelming majority of the power in the battery is used for propulsion. All the rest of the functions, even heating and cooling, are tiny compared to moving the car.
Heating is a larger draw than cooling.
There are cars with solar panels on the roof. These are nearly meaningless, like trying to fill a swimming pool with a dixie cup. Except Aptera, which doesn't yet exist on the market but may be efficient enough to charge itself in a meaningful way.
https://aptera.us
Batteries simply have less energy per unit of mass than gasoline and it's not close. But internal combustion engines are also notoriously inefficient, even the best ones. My car will go ca. 275-310 miles on a charge and the battery has the energy equivalent of just a few gallons of gas.