Skip to content

v0.9.2 — Refuse figures from a partial day

Choose a tag to compare

@maccer28 maccer28 released this 06 Sep 11:23
· 9 commits to main since this release

Typography. 0.1833 €/kWh rendered entirely at 23px monospace, so the unit competed with the figure. Figure and unit are now separate, unit at 0.55em and muted. Currency stays part of the figure, being a prefix.

Correctness. The yesterday guards only checked the meters held something. Measured today they held 1.18 kWh against the inverter's 16 kWh — created at 13:47 the day before, so they saw a third of the day. Every yesterday figure was wrong, and the effective rate was inflated to €0.1833 by dividing a full day's cost by a third of a day's energy. The drift sensor was reporting −14.82 kWh and nothing acted on it.

Guards now compare the meters against the inverter's own daily total and refuse anything more than 10% adrift, or 1 kWh on a very low-import day. A genuine zero-import day still reports.

Twelve sensors share the guard, which is right: if the meters missed a third of the day, everything derived from them is wrong.

Expect yesterday to show dashes until the first full metered day completes. That is correct, not broken.

module_url is ?v=0.9.2.