Hello,
No question here but a solution. I was looking for the solution to reset the KWH accumulated by my HEM2 in order to sync with my electricity bill.
It took me a while to find. It is of course super trivial ![]()
Here is the code:
-- This scene reset the KWH to 0
-- once reset, no way back!
local meterID = 12
local kwh = luup.variable_get("urn:micasaverde-com:serviceId:EnergyMetering1", "KWH", meterID)
luup.call_action("urn:micasaverde-com:serviceId:EnergyMetering1", "ResetKWH", {}, meterID)
Just replace the 12 by the right value for your main HEM device.
I hope it helps a few. If so, drop a note here ![]()