Then how can it possibly measure the two or three phase power consumption?
Unless it’s able to sample all three probes at exactly the same time and use that to take an instant simultaneous 2-3 phase current measurement and infer the voltage from the power cord?
Gotcha. Thanks for the quick response @jjhamb. I was hoping for some more advanced features to calculate the cost to charge my electric car (nissan leaf) that is plugged into a 110v smart energy meter.
I added the standard device type and ST displays the watts + basic kWh with on off capabilities.
I added this HEMv2, it added itself as a generic zwave device… I pasted the code into a custom device, went to edit the device properties, and when I selected my new HEMv2+ device I got the following error:
500: Internal Server Error
URI
/device/update
Reference Id
775fadf6-d2a3-4a12-bc16-7d1dd9da6664
Date
Thu Dec 18 06:36:27 UTC 2014
Class
groovy.lang.GroovyRuntimeException
Message
Ambiguous method overloading for method java.math.BigInteger#. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class [B] [class [I] [class [C]
You need to have the Aeon HEMv2+ custom device installed BEFORE you add the device itself to ST’s Zwave network. If properly paired, it should connect as an HEM - possibly using the V1 device driver provided by ST. Once installed, then you can edit it to use my Aeon HEMv2+ device driver.
@mattjfrank@beckwith@storageanarchy Don’t really know who to mention but I have an Android device and utilize background color changing for my thermostat and it works in the ST app just fine.
Taking a quick look at the device type, I notice a couple differences between what I’m using and this. Namely, I only did backgroundColors (and not foregroundColors) but then I also had another property, specifically “canChangeIcon: true” within valueTile() like this:
This fix worked for me; thanks! The included fix below yours still caused Null Pointer Exceptions.
Also, there is a type on line 768. Month is “M” not “m” (minute).
def dateString = new Date().format("M/d/YY", location.timeZone)
Thanks again for this code; it was really inexpensive to monitor this with a HEMv1 ($30) plus a Amazon Warehouse deal ST unit. I now have a way to tell the usage/cost in my house as well as the load on my generator.
Folks - I’ve having a bit of trouble applying @storageanarchy’s code to my newly-installed HEMv2. Upon pairing, the device utilized SH’s default HEM device type. When I tried to apply the custom device type copy & pasted from https://github.com/SANdood/Aeon-HEM-v2, I encountered the following error:
Oh No! Something Went Wrong!
Error
500: Internal Server Error
URI
/device/update
Reference Id
69ae6966-ae5f-4015-8232-b29f43fe941c
Date
Tue Jan 27 06:26:59 UTC 2015
Class
java.lang.NullPointerException
Message
Cannot invoke method toByteArray() on null object
Even though I successfully saved and published the custom device type, I just can’t seem to get it to apply to the HEMv2 device in IDE. FWIW, it successfully reports data via the SH’s default device type. Anyone have any ideas? I’m a noob, so perhaps I missed something that might be obvious to others.