Smart plugs and built-in switches that automate indoor positioning and energy control for homes and buildings.