Aeon HEM how to set KWH vlaue to match meter


I’m assuming we can modify this code

local meterID = 27 local kwh = luup.variable_get("urn:micasaverdecom:serviceId:EnergyMetering1", "KWH", meterID) luup.call_action("urn:micasaverdecom:serviceId:EnergyMetering1", "ResetKWH", {}, meterID)

to set the KWH reading to a specific value to match the current meter reading. I’m interested to see how accurate my HEM is.


any success with you code?