Commit Graph

21 Commits

Author SHA1 Message Date
4d6c6c109b Correct PV analysis: no down string; peak is charge-cap-limited
Clear-noon peak (2026-06-24 13:44, HA recorder): each inverter ~4.7kW @ ~300V
@ ~16A. A down string reads ~10A; ~16A = both parallel strings live. The
"one string down per inverter" belief was from confounded afternoon/rainy
samples + transient pv_loss_warning (now off) and is refuted.

~66% of nameplate at peak is explained by 45-deg tilt (wrong for high June sun),
heat derate, and tree shading. AND the peak was demand-limited: battery charge
pinned at the 120A cap (121A) at 65% SoC with only 3.3kW load -- reversing the
earlier off-peak "not clipping" note. Documented the throttle test to resolve
true array ceiling before raising max_charging_current.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 14:41:32 -04:00
5e175d4d0b Fix calibration grid-assist lever: firmware NAKs stop_charge=0/Full
Live run 2026-06-24: flash.py apply NAK'd BUCD480,000 on both inverters — the
firmware rejects stop_charge_voltage=0 ("Full"). flash.py aborts on first setter
failure, so nothing changed and the cluster stayed in sync (verified).

The field flash.py calls stop_charge_voltage is actually the inverter's
battery_re_discharge_voltage (HA: sensor.lvx6048_*_battery_re_discharge_voltage):
the V at which loads switch back to battery after grid charging. 54.0 tops grid
charge to ~54V; raising to 56.0 is the corrected (but UNVALIDATED) lever and may
band-oscillate rather than hold absorption.

- calibration profile: 0 -> 56.0, with the finding documented.
- skill: solar-only is now the RECOMMENDED/known-good method; grid-assist demoted
  to advanced/unvalidated with a mandatory diff-preview gate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 14:14:35 -04:00
f1128e807a Record decision to keep 48.0V discharge floor (improvement #3)
Reviewed the cutoff/stop-discharge floor; deliberately kept at 48.0V (3.00
V/cell) for cycle-life margin. Lowering to 46-47V unlocks only a few % of LFP
capacity and isn't worth deeper cycling on this large, non-capacity-constrained
bank. Comment only; no value change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 12:28:44 -04:00
b5b69f95c1 Correct EG4 profile sizing 3->6 packs; keep 60A charge cap (improvement #2)
- eg4-lp4-v2.yaml: rationale updated 300Ah->600Ah/~30.7kWh; 120A combined is
  now ~0.2C. Charge current deliberately NOT raised to 80A: not clipping — at
  solar noon on a clear day (2026-06-24, ~5.8kW PV) the bank took only 71A of
  the 120A cap. Real harvest limiter is PV (5.8 of 14.4kW nameplate, suspected
  down strings), not the ceiling.
- REFERENCE: pack HA entity_ids are triple-prefixed
  (sensor.eg4_lifepower4_lifepower4_1_lifepower4_1_*) — discover, don't construct.

No setting values changed; documentation/accuracy only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 12:25:48 -04:00
56b2cc2bf1 Add calibration-charge skill to fix EG4 SoC counter drift (improvement #1)
The everyday profile caps grid charging at 54V, so the bank can go weeks
without a full charge and the EG4 BMS coulomb counters drift (proven: pack 6
read 76% SoC while at the same 53.4V/3.337V-per-cell as packs reading 50-55%
— all paralleled, so physically equal charge; the spread is pure drift).

- profiles/eg4-lp4-v2-calibration.yaml: temporary profile, identical to
  canonical except stop_charge_voltage 54.0 -> 0 (Full), so grid can finish a
  full charge to the 56.4V absorption hold that re-anchors every pack to 100%.
- calibration-charge skill: guided runbook (pre-flight safety, two methods
  solar-only / grid-assist, live monitoring with cell-voltage/temp aborts,
  re-anchor verification, mandatory revert).
- REFERENCE: scoped action-policy exception (this skill alone may flip
  stop_charge, both units, user-confirmed, must revert); corrected pack-6 /
  SoC-drift notes to the verified equal-voltage-different-SoC signature.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 12:11:47 -04:00
aa97d65b0c Add solar monitoring/troubleshooting skills for agents
Four Skill-tool skills under .claude/skills/ that let an agent monitor and
troubleshoot the install (2x LVX6048, 6x EG4 LifePower4, OpenEVSE), grounded
in the real MQTT/HA topology rather than generic advice:

- solar-health-check  : whole-system sweep + cross-checks + R/Y/G verdict,
                        incl. cross-unit "silently-dead inverter" detection
- troubleshoot-inverter: FWS fault decode, parallel sync, USB link recovery
- troubleshoot-battery : per-pack imbalance vs SoC-counter-drift, RS485 silence
- power-usage         : PV/load/grid/battery balance + EVSE sessions

Shared lib:
- solar-snapshot : live MQTT capture (creds from powermon.yaml, no hardcoding)
- ha-history     : HA recorder lookback (token from ~/.config/ha/token)
REFERENCE.md documents topology, real HA entity_ids (doubled slug), known
issues, and a safe-remediation-only action policy (restarts yes; setters no).

Action boundary: diagnose + restart wedged daemons / recover USB links;
never touches inverter/battery setters or flash.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 11:46:20 -04:00
5484bb5fa6 commissioned 2026-06-23 18:49:47 -04:00
231e03081d fixed battery SoC and various other regs 2026-05-16 07:33:22 -04:00
38ac9ca8e8 Added 3 new batteries 2026-05-11 18:36:58 -04:00
df3fb3466a updates to evse 2026-05-09 11:34:26 -04:00
8c7b5fb711 fixed resolver 2026-05-09 10:18:57 -04:00
a1acf479f0 fix 5min spikes 2026-05-01 19:10:21 -04:00
e1b180e230 lvx, eg4, and evse 2026-05-01 16:56:37 -04:00
7688fc1dd3 Resilience pass: bulletproof recovery + FWS / fault polling + EG4 discovery refresh 2026-04-28 18:10:00 -04:00
04720c3b92 add controls to lvx 2026-04-27 06:50:04 -04:00
00ab311d92 working in production - not entirely validated. parallel mode working. 2026-04-26 19:26:44 -04:00
f771ec2b46 Cleaned up inverter mqtt 2026-04-26 08:49:05 -04:00
b526b10cf5 Cleaned up battery mqtt topics 2026-04-26 08:18:57 -04:00
e893be8c35 Docker PoC for batteries 2026-04-26 07:47:20 -04:00
396e810895 3xbatt-2xinverter 2026-04-25 19:00:44 -04:00
9aca623336 initialize 2026-04-24 16:34:10 -04:00