Smart plugs: A low cost solution for programmable control of domestic loads