On-premises algorithm that produces accurate real-time and predictive energy and power state estimates (SoC, SoP, HSL) for BESS, supporting confident dispatch and market operations.