Electricity Energy meter

I’m confused. I have an energy meter in my breaker box which also counts energy internally total_increasing form and sends it out to HA in kWh.

image

I was only able to set up HA so that every time energy meter kWh changes, HA will add 0.1 to it’s energy counter. It means if HA goes offline for an hour, then goes online again, HA will continue where it left off by adding another 0.1 to total. So all energy consumed when HA was offline, is not added to total consumption. How it is possible to register energy meter and HA differences and take them into account, so if my WIFI goes down or restarting HA, energy consumption will be still accurate using energy meter internal data?

I’m not quite sure, what you want to achieve. If you get the values shown in the picture from your meter. What other value are you trying to count/calculate?

How is your setup at the moment? What kind of power meter do you use and which device are you using to register the power usage?

As far as I know, total increasing means that there is a value being communicated to HA and HA knows that it is not the current value of power usage, but the total value of power usage. This means that when HA is down and goes up again, HA will read the total value and compares that to the last value that was read. The difference between the two values are being registered as the power usage in this period. Therefore, you won’t miss any data when HA goes down for a while. The only thing is that you won’t get a good image of the power usage in the downtime period, per minute, hour etcetera.

1 Like

I have localtuya device. Right now I made a Riemann sum integral sensor which register power usage.
But I’m trying to add my total kWh sensor (picture bellow) to HA from where HA should calculate energy consumption. Don’t know how. What should I create from it?

I want this reading to be my power usage sensor, not that I would make a utility meter sensor out of it.