serkri / SmartEVSE-3

Smart Electric Vehicle Charging Station (EVSE)
MIT License
68 stars 28 forks source link

Allow "EV Energy Charged" to be added to the energy dashboard of Home Assistant (mqtt integration) #188

Closed marcovaneck closed 11 months ago

marcovaneck commented 11 months ago

Home Assistant's energy dashboard requires "state_class": "total_increasing"

This change add it to "EV Energy Charged"

dingo35 commented 11 months ago

I think EV Energy Charged is not of state class total_increasing.

Definition: "total_increasing, a monotonically increasing total, e.g. an amount of consumed gas, water or energy. When supported, the accumulated growth of the sensor's value since it was first added is updated hourly."

EV Energy Charged is reset to zero every new session, so IMHO it is not total_increasing....

marcovaneck commented 11 months ago

When looking at the stats again, I see it's resetting every session. I just installed the SmartEVSE and during the first session it was total_increasing ;-)

Sorry for wasting you're time, and thanks for spotting my interpretation mistake