Skip to content

Issue with kw/h to w/s conversion #528

@Krdera89

Description

@Krdera89

It seems that the unit conversion of wattage and electrical_energy is incorrect in newer MTC Agent?

When ConversionRequired was set to “true”, the result was different from the previous version (V1.4.0.10).
  units="WATT" nativeUnits="KILOWATT" -> OK
  units="WATT_SECOND" nativeUnits="KILOWATT_HOUR" -> Not Good
However, in the Not Good pattern, both versions appear to have incorrect results.

What is the right thing to do?

Output information from Adapter:
Image

Device file contents:

Image

The value is different?

(Agent V1.4.0.10):

Image

Image

(Agent V2.2.0.17):
^ The value is different? V

Image

Image

Are these results correct ?

Image

Image

(Agent V1.4.0.10):

Image

(Agent V2.2.0.17):

Image

Wouldn't it be correct to have the following values?

0.6 kw/h --> 0.6 * 1000 /60 /60 --> 1.6666 w/sec

0.92 kw/h --> 0.92 * 1000 /60 /60

Adapter.log

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions