This study examined a proposed system integrating waste power plants, a utility grid, and battery technologies to optimize energy operations for the On-nut community in Bangkok. The system was modeled through experimental, mathematical, and schematic approaches to identify the most efficient energy generation and cost management strategies utilizing lithium, flow, and zinc bromide batteries. This was achieved by employing industrial smart grid analysis, closed-loop algorithms, and feedback control systems to manage energy flow econometrics through switching operations, thereby maximizing electric cost efficiency and network service from the integrated system architectures (grid/lithium/biogas, grid/flow/biogas, and grid/zinc bromide/biogas systems). The proposed configuration of the biogas generator/grid/lithium-ion storage network demonstrated the highest technical efficiency in energy purchases, totaling 239,764 kWh, with energy sales to the grid amounting to 1,959,426 kWh and the lowest net energy purchase from the grid at 1,719,661 kWh. Conversely, the biogas generator/grid/zinc bromide storage configuration achieved the most economical network, reflected in an overall current cost of USD 8,647,863.00, an operating cost of USD 143,974.00, an investment return rate of 17.00%, an internal return rate of 20.30%, and a payback period of 4.83 years. The biogas generator/grid/zinc bromide network exhibited the highest performance ratio at 80.55%, surpassing the flow battery at 79.65% and lithium-ion at 78.89% in terms of energetic configurations.