Daily kWh
Daily, weekly and monthly kWh totals come from a cumulative kWh feed. This page shows how to create that feed from different input types, and how to view daily totals.
Input type |
Example |
Input process |
|---|---|---|
Power in watts |
emonTx and emonPi CT channels |
Power to kWh |
Energy that does not reset |
Energy meter reading |
Log to feed (Join) |
Energy that resets on power cycle |
emonTx and emonPi energy and pulse count |
kWh Accumulator or Wh Accumulator |
Newer emonTx and emonPi firmware reports cumulative energy for each CT channel. Use those inputs where available, in place of Power to kWh.
From a power input
On the Inputs page, click the spanner icon on the power input.
Select Power to kWh.
Under Feed, choose CREATE NEW and enter a name ending in
_kwh, for exampleuse_kwh.Select an interval. Match the post rate, for example 10s, or choose a longer interval up to 1h to save disk space.
Click Add, then Changed, press to save.

From an energy meter reading
An energy meter reading does not reset. Gaps in the data would show as spikes or gaps in a daily bar graph. Log to feed (Join) joins across gaps with a straight line.
On the Inputs page, click the spanner icon on the input.
If the input is in Wh, add a x process with value
0.001to convert to kWh.Add Log to feed (Join) and create a new feed as above.

From an input that resets
emonTx and emonPi energy and pulse count inputs reset to zero when the unit restarts. kWh Accumulator removes the resets and joins across gaps. Wh Accumulator does the same for Wh inputs.
On the Inputs page, click the spanner icon on the input.
For a kWh input, add kWh Accumulator and create a new feed as above.
For a Wh input, add Wh Accumulator, or scale by
0.001and add kWh Accumulator.

View daily kWh
You need at least two days of data.
Open the cumulative kWh feed in the graph view.
Set Type to Daily.
In Feed Config, set the feed Type to Bars and tick Delta.
Each bar is the kWh at the end of the day minus the kWh at the start. Choose Weekly, Monthly or Annual for longer periods.

Dashboards and apps also show daily kWh from the same feed. See Dashboards and Apps.
Fix an existing feed
To create a cumulative kWh feed from a power feed you already have, or to rebuild one, use the post process module.