psvanstrom / esphome-p1reader

ESPHome custom component for reading P1 data from electricity meters.
MIT License
252 stars 106 forks source link

Add support for new Energy feature #13

Closed fredrikbaberg closed 2 years ago

fredrikbaberg commented 2 years ago

The Energy panel, introduced in 2021.8, has some requirements for the sensor. This change sets the following for "Cumulative Active Import" and "Cumulative Active Export", allowing the sensor to be added to the Energy panel:

Since Cumulative Active Export has the same unit I've made the same change there, but not sure if it is useful.

This should help with #12.