RebeccaH my apologies, I messed up the link. I’ll try to find the correct one and update. While looking I came across this reply on the HA forum which also appears to contradict the assertion that ESPHome flashed plugs don’t store cumulative energy.
https://community.home-assistant.io/t/where-is-the-smart-plug-energy-data-stored-and-how-long-is-this-retained/680518/6?u=magicbeing
I found others as well, but the above is confirmed as correct in the subsequent reply from Adam Allport.
Maybe Adam can clarify whether ESPHome is an issue here, and also whether his ESPHome and Tasmota flashed plugs provide cumulative energy use (and more precise details of possible).