Athom smart plug ESPhome definition of Energy entities

I have a V2 and V3 athom smartplug. The V2 has:

  • Total Energy
  • Total Energy Since Boot (but this is actually the Total Daily Energy)
  • Energy

The V3 has:

  • Total Energy
  • Total Daily Energy
  • Energy

The first two of each of them are clear. What I don’t understand is what the kW value of “Energy” represents. It is not a week or month value.
Anyone any idea?

Luckily this sensor runs on esphome so we are free to look at the code and try to figure out what it’s doing.

The Energy sensor is just outputting whatever the CSE7706 hardware sensor is reporting for Wh, and converting it to kWh. You can review that chip’s datasheet for more details, but on my plugs this value appears to be, practically speaking, kWh since last reboot.

Whereas Total Energy attempts to save the total across reboots for a “lifetime” energy value, and Total Daily Energy resets to zero once a day, so the difference is just when they return to zero.

Thanks for your response. I couldn’t figure it out looking at the code but I checked the V3 and you are right. The daily kW’s add up to a total since reboot.

That is true for the V2 as well but that one is confusing because that one already has a “Total Daily Value Since Boot” which is actually the Daily Value (and not since boot). Slip of the developer’s “pen” probably.

But it’s clear to me now.

Thanks a bunch!