Hi!
I tried figure out how can I make an entity which tracks my energy consumption based on real energy counting (always upcounting) entity.
My first try to make 10min / 1 hour sum entity from power (W), but very inaccurate. Also tried riemann integral also inaccurate. I also tried hourly average (mean) watt to make another estimation.
I have MID-certified DIN-rail meters with very accurate kWh value, so I decided to use this continously upcounting value to make “snapshots” every 10 minutes, what was the energy consumption for the last 10m.
Do you have any suggestion how can I make an entity, which based on energy (kWh) value, the template sensor triggers for example every 10 minutes or every hour, and calculates the difference between now and previous run energy value, and this subtraction will make the value for entity.
Summary:
Input value: real energy value in kWh (always upcounting)
Interval: 10m and 1h
Result: delta (difference) from last run
Many thanks for your suggestions in advance.
Regards,
GB