Integration with the energy system