I have Tapo P110 that gives daily and monthly energy. I would like to sum either (for example the daily) sensor to total energy which would not reset. What would be the way to do it? Utility sensor does not seem to work as intended, it just sums each value the daily sensor gives: for values 1, 3, 9 it gives incorrectly 13 and not 9 as expected.
If your “daily” sensor is giving a running total across multiple days you already have what you asked for with that sensor. No utility meter required.
The daily value is provides by the integration (GitHub - petretiandrea/home-assistant-tapo-p100: A custom integration to control Tapo devices from home assistant.) and I think that comes all the way from the socket that measures the energy. What I would like is to have something which would be essentially the total energy to infinity so basically a counter that would eventually sum all energy consumption dor that sensor. Currently the daily sensor is only entity giving energy total, but resets after each day. So I would kind of want to sum each maximum value before it resets for the next day.
That’s not what you said here:
If your daily sensor reset each day the expected total from the utility meter would be 13. You used 1kWh on the first day, 3kWh on the second day and 9kWh on the third day. So the running total of those three days is 13kWh, not 9, that is only what you used on the third day.
Turns out this ended up being the usual: user error. I did not understand that when I define the Utility meters in the configuration.yaml, I cannot change some parameters and just reload the configuration. When I renamed the instances, then everything worked as expected with the regular Utility Meter.