Smart buildings and homes are becoming a key player in the future green and sustainable energy grid, due to the integration of distributed energy sources and the demand control capabilities. Advanced smart metering systems are required for the operation of the future smart grid. Smart metering systems allow to monitor the energy consumption of end-users, while provides useful information regarding power quality. The information provided by these systems is used by the system operator to enhance the energy supply, and several techniques, as load scheduling, demand side management, non-intrusive load monitoring, can be applied for this purpose. This paper shows an advanced smart metering infrastructure for integration in future smart homes, where not only the electrical consumption is monitored, but also the gas, water, and heating. Therefore, by monitoring all energy systems in the building, the users could be aware of their whole energy consumption, and advanced control techniques can achieved by the Energy Management Systems (EMS).