Modeling the Last Mile of the Smart Grid