jesserizzo / envoy_reader

MIT License
37 stars 26 forks source link

Production and Consumption values are rounded for some Envoy devices #55

Open gtdiehl opened 3 years ago

gtdiehl commented 3 years ago

Envoys that have CTs installed will have more precise values for the Production and Consumption values.

If the Envoy has metering enabled, currently the envoy_reader pulls Production data for Current, Weekly, and Lifetime from the part of the JSON data for the CT. These values have a 2 or 3 digit precision.

This happens too for Consumption data. Though the metering feature does not have to be enabled for the envoy_reader to retrieve the data, as the Envoy will read the CT regardless of the setting of the metering feature.