TARIFF-30: per-unit round-trip efficiency in the grid-charge decisions

Optional per-inverter key round_trip_eff (0.5-1). A unit's buy leg is priced at price / eta; the site trade, battery modes, day plan and Home use each unit's own. Not set: byte-identical to before. The discharge split is unchanged (part B is TARIFF-34).

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude (dev)
2026-12-05 16:44:29 +01:00
parent 831c33c96b
commit 6881748660
23 changed files with 1614 additions and 51 deletions
+1
View File
@@ -467,6 +467,7 @@
levelBar(b.level_pct, b.name),
h("dl", { class: "kv" },
h("dt", {}, t("batteries.level")), h("dd", {}, lvl + stored),
h("dt", {}, t("batteries.round_trip")), h("dd", {}, b.round_trip_pct != null ? dec(String(b.round_trip_pct)) + " %" : t("batteries.round_trip_unset")),
h("dt", {}, t("batteries.now")), h("dd", {}, b.now),
h("dt", {}, t("batteries.today")), h("dd", {}, todayLines(b)),
h("dt", {}, t("batteries.why")), h("dd", { class: "muted" }, b.why || "–")),