If you have a sensor that returns instantaneous power measurements (W or kW), to add a sensor that returns energy consumption or production (kWh), you need to use Riemann sums.
Do you think this could be added to Gladys or to the Zigbee module in question?