In this paper, we propose a CPS-based framework for controlling a distributed energy storage aggregator (DESA) in demand-side management.. In this paper, we propose a CPS-based framework for controlling a distributed energy storage aggregator (DESA) in demand-side management.. Existing hybrid energy storage control methods typically allocate power between different energy storage types by controlling DC/DC converters on the DC bus. Due to its dependence on the DC bus, this method is typically limited to centralized energy storage and is challenging to apply in enhancing. . The deployment of distributed energy storage on the demand side has significantly enhanced the flexibility of power systems. However, effectively controlling these large-scale and geographically dispersed energy storage devices remains a major challenge in demand-side management. In this paper, we. . In order to solve the shortcomings of current droop control approaches for distributed energy storage systems (DESSs) in islanded DC microgrids, this research provides an innovative state-of-charge (SOC) balancing control mechanism. Line resistance between the converter and the DC bus is assessed.