The invention discloses an
energy control method and device based on an optical diesel storage micro-
grid system and a medium. The invention relates to the field of
energy management, and solves the problem of consumption of
diesel generator feedback residual
electricity and photovoltaic feedback
electricity in a factory and the problem of reducing the demand
electric charge of the factory. Whether feedback
electricity is generated or not is recognized through
power grid home-entry load data, once it is judged that the feedback electricity exists and
energy storage does not reach the preset upper limit,
energy storage charging is immediately controlled, redundant
electric energy such as the feedback electricity of the
diesel generator test stand and photovoltaic residual electricity is stored, and the problems that the feedback electricity cannot be connected to a grid and consequently waste is caused and photovoltaic light is abandoned are solved; when no feedback electricity exists, whether the
energy storage state of charge (SOC) is lower than a preset
lower limit or not is judged to avoid over-
discharge, then charging is triggered in combination with the conditions that the load power is smaller than or equal to a peak clipping threshold value in a low ebb period, and low-cost energy storage is conducted through the valley electricity; and when the load exceeds a peak clipping threshold value and is in a non-low-ebb period, discharging is triggered, and the load
peak demand is matched. In addition, when the load peak or the load exceeds the peak clipping threshold value, power supply is supplemented through energy storage
discharge, and the cost is reduced.