The invention discloses a control method, system and device for energy storage charging and discharging of a light storage charging station and a medium. The control method comprises the steps of S1, collecting the power utilization data of a user, obtaining the power utilization power of the user according to the collected power utilization data of the user, obtaining a corresponding relation between photovoltaic power generation power and time, and querying to obtain a corresponding relation between electricity price and time, S2, obtaining the maximum charging and discharging power of the energy storage battery, S3, setting energy of the energy storage battery and initial and end energy storage SOC values, S4, constructing a mixed integer linear programming model for the charging and discharging power of the energy storage battery according to the electricity utilization power of the user, the photovoltaic power generation power and the electricity price, and setting a plurality of constraint conditions, and S5, calculating the charging and discharging power of the energy storage battery according to the mixed integer linear programming model and the constraint condition, and outputting the charging and discharging power. The energy storage charging and discharging power of the light storage charging station is controlled through the mixed integer linear programming algorithm, and the power utilization cost can be reduced.