groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.math.BigDecimal#multiply.
jbisson opened this issue · comments
I just installed it on my new aeon Smart Switch device and can't get it to work (See bellow). I also use the new smarthings hub v2, which might contribute to the issue ?
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 420
FYI I had this issue with a v2 hub, an Aeon Home Energy Meter v2, and an Android phone. I fixed the problem by going to the Thing page for the HEM v2 in the app (it will probably throw a red error banner) then click settings gear button (top right) and fill in your kWh then click done.
While tracing this issue I kWhCost was ending up as a null on line 420
BigDecimal costDecimal = newValue * ( kWhCost as BigDecimal )
Looks like the default of 0.16 isn't taking on Android phones. Have to fill in a value manually.