Energy Controller designed for providing maximum features required for Energy Controlling. In this controller is facility to AC power Distribution, programmable & controlled battery charging according to battery capacity and environmental condition like temperature. Second part of the system is related to DG automation. The energy controller is able to operate a DG set accordingly to site conditions like mains availability & its healthiness, battery Voltage & shelter Temperature & Solar power.