Smart metering mediating in the carbon neutral operation of end-user applications in buildings