A smart meter code of practice is being drawn up to hold suppliers to account. The code of practice is being developed by the government and Ofgem with all suppliers expected to sign up to it. It is one of a package of measures announced to improve consumer trust in the energy retail sector.