Integration Sensor Component Needs Reset Service

(clearly an ability to reset an integration sensor to zero at midnight would be much simpler)

That’s the reason Utility Meter - Home Assistant exists…

@dgomes Utility Meter produce for me completely unusable results.

upper 3 values are integrations and lower 3 values are Utility Meters. Both started today and use the same sensors as source.

While the integrations offer plausible results, Utility Meter does not.

Integration:

  - platform: integration
    source: sensor.inverter_house_consumption_power_sum
    name: integration_inverter_house_consumption_power_sum
    unit_prefix: k
    round: 2
  - platform: integration
    source: sensor.inverter_house_grid_p_sum
    name: integration_inverter_house_grid_p_sum
    unit_prefix: k
    round: 2
  - platform: integration
    source: sensor.inverter_house_pv_power_in
    name: integration_inverter_house_power_in
    unit_prefix: k
    round: 2

Utility Meter:

utility_meter:
  meter_inverter_house_consumption_power_sum:
    source: sensor.inverter_house_consumption_power_sum
    name: meter-inverter-house-consumption-power-sum
    cycle: daily
    net_consumption: false
  meter_inverter_house_grid_p_sum:
    source: sensor.inverter_house_grid_p_sum
    name: meter-inverter-house-grid-p-sum
    cycle: daily
    net_consumption: true
  meter_inverter_house_pv_power_in:
    source: sensor.inverter_house_pv_power_in
    name: meter-inverter-house-pv-power-in
    cycle: daily
    net_consumption: true

Sample Source Sensor sensor.inverter_house_grid_p_sum:

From my experience Utility Meter is no alternative as I don’t understand what happen in that black box. Integrations works very well but the daily reset is missing. So for me this thread is still relevant and has no solution yet.

Here is your mistake: utility meter is supposed to use ENERGY sensors not POWER sensors.

The source sensor of the utility_meter should be the integration sensors.

hey guys,

so - I’m pulling up this old thread cause I don’t get it.

What I’m trying to achieve is the following - measure how much KWh I produce with my Solar panel per day.

I have a Solar Panel connected to a Zigbee Plug. The Plug gives me the quantity of current W (Watt) production but not as KWh (Kilo Watt per Hour). Therefore I crearted a Helper with Integral with Rieman Sum (as described here Integral - Home Assistant) So far so good. Unfortunately this the Helper does not Reset every 24 hours (at midnight), so I see the overall sum my panel produced but can’t really judge what I produced in the current day.
So I searched a bit and found this threat. If I understand @dgomes correctly I need to create another helper as Utility meter with the input of the Integral helper for the KWh. However this does not reset my Integral Rieman Sum helper.

Power - is the Watt value coming from the zigbee plug
Balkon KWh - is the helper with integral Rieman Sum I created that sums up the KWh
test - is another helper with integral Rieman Sum I created that sums up the KWh (with Rieman Sum right function - just wanted to compare the results)
test2 - is the utility meter that should reset the Balkon KWh value to 0 every midnight

How I confivgured the Utility Meter Helper

Utility Meter is not supposed to reset the integration sensor. It creates a new sensor, it’s that new sensor that gets reseted.

ahhhh @dgomes thanks a lot for clarification! Works like charm if you know what you are doing.