Back on the topic of smart meters, the open energy monitor project has some interesting kit and software, that would enable you to do real time useage monitoring along with reading the spot market API to get real time pricing.