Keep an energy register when a daily meter resets
A customer’s device counted 5.2 kWh before midnight and then reported zero. On another night it went offline and returned at 0.2 kWh. The first event gives you a recorded reset. The second leaves a gap that a running total can hide.
Get the two-site installer register (.xlsx)Download the Home Assistant settings (.yaml)
Read the customer handoff
| Harbor sample | Accounted kWh | What to tell the customer |
|---|---|---|
| 5.2 → 0 at midnight | 5.2 | The source reported its daily reset. The helper kept what it had already counted. |
| 0 → 0.8 | 6.0 | The next measured interval added 0.8 kWh. |
| Unavailable → 0.2 after midnight | 6.0 | The helper held its prior value. The 0.2 reading establishes a fresh baseline. Consumption across the missing interval is unknown. |
| 0.2 → 0.9, then 0.9 again | 6.7 | The next measured increase added 0.7. The repeated value added nothing. The total still excludes the unresolved interval. |
The separate Ridge source recorded 0, 1.5 and 2.0 kWh, then a zero reset and a 0.4 reading. Its helper ended at 2.4 kWh with continuous coverage from the observed starting point. We sent these 14 readings through Home Assistant Core 2026.11.3 in sequence in two fresh installations. Both runs and the recalculated worksheet returned the same totals. The timestamps are the fictional register’s sample times.
Set up the next site
- In a practice system, check that the source reports an accumulated kWh reading that resets daily. The supplied settings use
delta_values: falseandperiodically_resetting: true. Net consumption is off. The helper has no scheduled reset of its own. Withalways_available: trueit may display its prior total while the source is unavailable. - Open the workbook in Sheets, Excel or LibreOffice. On Installer handoff record the site, source entity, helper entity and unit. Copy a site tab for another device. In the YAML, replace the source and give the helper a distinct name. Merge entries under your existing
utility_meterconfiguration if one exists. Home Assistant’s utility-meter options - Enter readings in UTC order in columns A–C, one register per source. Use unavailable with a blank kWh value, then first after gap for the next value. Use observed reset only for a verified drop to zero. A review flag holds the reported total when an ordinary reading falls unexpectedly. The editable area covers 74 samples per tab.
- Compare the two endings with the customer. For Harbor, report 6.7 kWh accounted; coverage incomplete. For Ridge, report 2.4 kWh since the baseline. For another run with the same register, replace the sample rows and preserve their order. An appended second copy introduces duplicate times.
Harbor inputs with a missing overnight interval (.csv) · Ridge inputs with an observed daily reset (.csv)