Heat can be used directly not only for heating, but also for cooling.
There are air conditioning systems that are powered by heat, not by electricity.
There are places where the power plants use the residual heat from the generation of electricity not only for heating during the winter, but also for cooling during the summer, by producing chilled water.