Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.math.BigDecimal#multiply. #4

Open
jbisson opened this issue Oct 26, 2015 · 1 comment

Comments

@jbisson
Copy link

jbisson commented Oct 26, 2015

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

@jdrews
Copy link

jdrews commented Mar 28, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants