An approach is presented for controlling multiple energy carriers, such as AC and DC electricity, heat, Natural Gas, hydrogen, using the control technique of multi-agent systems. The main elements of a hierarchical control system are given and their integration with the concept of energy hubs is explained. The interactions between the different agents are described. Electric vehicles are considered as mobile resources within the overall system. Finally, the benefits of this approach are laid out.