Aeon HEM Reset KWH LUUP code not working

Hi,

I am unable to reset KWH values using following LUUP code. My system is Vera Lite with Aeon HEM Gen1 with two clamps.

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

Is it working for you guys on UI5 ? Am I doing anything wrong here.

Thanks

Make sure to use the “id” and not the “altid”. I just set mine up, and the LUUP code works for me. Until I learn more, I’m doing a reset every day at 00:00.

I have tried both id (63) and altid(27) but still it is not working. I am suspecting deviceType ( my device type is “urn:schemas-micasaverde-com:device:PowerMeter:1” ) but in LUUP code i have “urn:micasaverdecom:serviceId:EnergyMetering1” . I am using 6.34 firmware on HEM.

Am I doing anything wrong here.

If this is exactly the Lua code you are using, the ServiceIDs are incorrect. Try this:

local meterID = 63 local kwh = luup.variable_get("urn:micasaverde-com:serviceId:EnergyMetering1", "KWH", meterID) luup.call_action("urn:micasaverde-com:serviceId:EnergyMetering1", "ResetKWH", {}, meterID)

meterID should be set to the device number - not altid.

Thanks , it is working now with the modified luup code.
ServiceId is incorrect in my previous luup code.

If you wouldnt mind, please post the modified code you used which is now working for you.

This works:
http://forum.micasaverde.com/index.php/topic,17611.0.html

nothing else did it but the above topic did: