A method for thermal management performed by a controller of an energy storage system, the energy storage system including at least a first battery module, one or more second battery modules, a first battery management system (BMS) node, and one or more second BMS nodes, the first BMS node being configured to control operation of the first battery module, each second BMS node being configured to control operation of a respective one of the one or more second battery modules, the first battery module being thermally coupled with the one or more second battery modules, the method comprising:
- determining a temperature profile difference of the first battery module, the temperature profile difference of the first battery module representing a difference between an actual temperature profile of the first battery module and a desired temperature profile of the first battery module;
- determining an operation adjustment representing a desired change in operation of the one or more second battery modules to change an amount of heat generated by the one or more second battery modules that flows to the first battery module, for decreasing the temperature profile difference of the first battery module;
- and
- controlling the one or more second BMS nodes to change operation of the one or more second battery modules according to the operation adjustment.