NOVELTY - The controller (100) has a processor (101) predicting a load characteristic such as electrical load characteristic and load characteristic, related to a part of a low-voltage power grid (130). An actuator (102) controls power transfer between an energy storage (110) and the power grid depending on the predicted load characteristic. A receiver (103) receives information indicative of an actual load. The processor derives statistical parameters of load pulse distribution depending on the received information, and predicts the statistical parameters of load pulse distribution.    USE - Peer controller for use in a controller and energy storage system for controlling power transfer between an energy storage and a power grid i.e. low-voltage power grid (all claimed), in decentralized power plants such as solar or wind power plants, to adjust statistical load pulses distribution of an electrical grid load according to a set of statistical target parameters.    ADVANTAGE - The controller can control energy flow at the energy storage in the power grid, so that power in the power grid is balanced by output of energy from the energy storage when the predicted load satisfies the first condition, and the controller stores energy in the energy storage while the predicted load satisfies second condition, or disconnects the energy storage, thus avoiding single point of failure, ensuring increased grid resilience and reducing response time compared to standard frequency or voltage control, and hence increasing robustness of the power grid in a decentralized manner.    DETAILED DESCRIPTION - An INDEPENDENT CLAIM is also included for a method for controlling power transfer between energy storage and power grid.    DESCRIPTION OF DRAWING(S) - The drawing shows a block diagram of a power grid, an energy storage and a controller for controlling power at the energy storage.    Peer controller (100)    Processor (101)    Actuator (102)    Receiver (103)    Energy storage (110)    Low-voltage power grid (130)