First commit of smartmeter software