Shelly Power Consumption and Utility Meter

Hello!
New to Home Assistant and really loves the solution. The most important for me is have energy consumption reporting
I use Shell devices to get that information, I have also added Utility meter in the HA configuration, or at least tried to.
But I dont get the same information in Shelly and in HA

I´m using the Shelly Integration " Shelly smart home platform for HASS and HASSIO"

Exempel:
Shelly EM device
In configuration.yaml
utility_meter:
energy3_watercable_weekly:
source: sensor.shelly_shplg_s_xxxx_current_consumption
cycle: weekly

I installed the EM yesterday so any consumption is from mid day yesterday
In Shelly, consumption from yesterday and today is 4.630W
In Home Assistant it´s 10.860W

On the other hand I have a Shelly Plug S with this setting in configuration.yaml
energy3_fridge_weekly:
source: sensor.shelly_shplg_s_xxxxxx_current_consumption
cycle: weekly

In Shelly, consumption from yesterday and today is 1.666W
In Home Assistant it´s 3.783W

What am I doing wrong?

I have a similar problem, I can not see the consumption. Is the value not read out?

Hi!

Newcomer to home assistant as well, so forgive me when being a noob :blush:

This sounds like the issue I noticed with my Shelly Pm1. I do not have this problem with my Shelly plug power meter. And the energy series of pm1 seems to accumulate correctly.

When looking at power meter history in Shelly, it reports this

But in home assistant it reports this

I was testing to create myself a energy distribution graph using apexgraph card, but it makes little sense currently.

I will try to hack around using energy meter calculation.

On second though, maybe my issue is a confusion caused by Shelly applying avg correctly and the avg function in Apex not considering zero as consumption?

Just an update: I added a integral Helper based on the power sensor and based the graph on that. Seemed to do the trick: Integration - Riemann sum integral - Home Assistant

Could you share your full code for displaying the chart? And also some hints on how you configured the Riemann sum on the power/energy sensor? Thanks!