This work develops a transactive energy management system in order to automate the operation and efficiently utilize the energy generated from the solar PV unit and BESS in a single house as well as in the microgrid and provides cost-benefit analysis.