Aeon Home Energy Meter v1 -- Read Clamps Separately

Thank you for your reply! :smile:
Not sure I completely understand, but the conversion between a base16 and base10 makes sense. Could you elaborate on how that was calculated? (The 0x00001B0F figure)
.

Thank you for your reply! :smile:
EXCELLENT! I’ll give this a go and start tinkering. Thank you for sharing!

When/if this gets figured out, I’ll update the original post with the code so it’s available to others looking for a similar solution.

Thanks again :smiley:
.
.
Update #1: Tried the code and things didn’t go well. The phone shows a ‘Sorry, but there was an unexpected error’ and the below is what shows up in the live logging for this device:

8:52:32 PM: error groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.math.BigDecimal#multiply.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.Character]
[class java.lang.Number] @ line 392

.
Line 392 is as follows:

BigDecimal costDecimal = newValue * ( kWhCost as BigDecimal )

While I certainly don’t understand it all, I’m going to go through the code and see if I can figure out what is providing the two different clamp energy values.

@Jimxenus – Do you have the v1 or v2 of the HEM device?
.
.
Update #2: I think the code comes from Barry’s GitHub @storageanarchy
(Or at least the majority of the code base)