You might have noticed how much time it takes to freeze something - that's because lots of energy need to be extracted from liquid water to turn it to ice. And that without even changing temperature - it all happens at 0°C. With other materials, you can have a similiar effect at other temperatures. This can be used to create a system that keeps a certain temperature even if energy flows into or out of it (until the phase transition is complete).
Read more here: https://en.wikipedia.org/wiki/Phase-change_material
Using this you can avoid hearing water during high demand times.
Melting water ice into liquid water at 0°C takes approximately as much energy as heating the same amount of water from 0°C (assuming that it is already/still liquid) to 80°C.
With a material that has a transition temperature of e.g. 21°C, a room could be kept at a very pleasant temperature even when energy is flowing into or out of it.
What does this do?