A few days ago I configured several utility meters to measure the daily energy flow from different sources.
Unfortunately, after the power value being constant for a while the utility meter “jumps”. It seems it uses the trapezoidal integration, which whould be wrong.
Integrated graph: (see the jump?!)
source sensor:
starts charging at around 10, before the value is always 0.
config of power sensor
- platform: template
sensors:
evchargingpower:
friendly_name: "Leaf Ladeleistung"
unit_of_measurement: "W"
value_template: >
{% if states.sensor.myenergi_zappi.attributes["ectp1"] is defined %}
{{ states.sensor.myenergi_zappi.attributes["ectp1"] }}
{% else %}
0.0
{% endif %}
ok, never mind, just realized I had to configure an integrator, which by default is trapeziodal… So I will add here the right integration config, which should solve the issue:
- platform: integration
source: sensor.evchargingpower
name: evcharging_energy
unit_prefix: k
round: 3
utility_meter:
daily_evcharging_energy:
source: sensor.evcharging_energy
cycle: daily