I’ve looked around now for 3 days and everything I found has not yet bring the right results.
On my power meter I have installed a diode to count the impulses of the meter.
The meter delivers 10000 pulses per kWh.
So I used the pulse counter (esphome) to get every minute the pulses from last 60 seconds.
Realtime consumption is no problem with this.
But how can I now sum this values together?
I want to see a hourly/daily/monthly usage statistic.
I tried this using integration sensor, but this is not summing correctly. Maybe I missunderstand something here?
Should I create some kind of automation here, that is summing the values together “manually”? Or is there any kind of plugin/integration/sensor to visualize the tics per timeframe?
Your meter gives 10000 pulses per kWh, counted over a minute (by esphome) gives kWh/min which you would have to scale x60/10000 to get power (kW) consumption (see sensor filters).
Integrating this (scaled) power sensor (select the correct method!) will give you an ever increasing energy used sensor (kWh).
Plugging that energy sensor into Utility Meters, will enable you to track energy used per day/month/hour/whatever cycle you choose.
You can do the integration in esphome if you wish, but again, make sure you use the correct method.
Looking at your data the correct method to choose would be left, not the default trapezoid.
Thanks! This looks good! I think the integration method makes the difference!
But one point am I missing right now. Utility Meters are growing over the time period -> How can I get a graph out of the last value of these periods. I mean I want a graph with the (end of day) consumptions for example for the last 20 days.