Aeotec Gen 5 Power meter

Not getting an answer in the dev group so figure I'd post here...

Getting the following error with the @codahq Aeon HEM Gen5 community driver

dev:1192020-12-12 08:53:33.107 am errorjava.lang.NumberFormatException: null on line 351 (parse)

It repeats about once a minute.

Line 351 of the driver has the following: def cost = String.format("%5.2f", cmd.scaledMeterValue * (kWhCost as BigDecimal))

Any suggestions on fixing this? I'm not sure it's even supported or if there is another community driver out there.

Might try replacing it with a try catch block; i.e.

try {
      def cost = String.format("%5.2f", cmd.scaledMeterValue * (kWhCost as BigDecimal))
 } catch(Exception e) {
     def cost = "0.00"
}
1 Like

I will give that a try and let you know how it works...