Electrical consumption of the day before

Hi,

I’m trying to retrieve data from a Shelly EM and display the energy consumed the day before (from 00:00 to 23:59) in Grafana. However the values are significantly different compared to those on the Shelly website.

Here’s the query I’m using:

sum(increase(shelly_em_meter_0_Energy_Consumed[1d]))

And I have a time-shift of 1d:

CleanShot 18082024 at 14.11.53

(With the Stats panel of course)

Why are the values different between Grafana and Shelly Cloud? For example the Shelly website shows 17.2kWh, but Grafana shows 18.5kWh. Is there something wrong with my query?

Thanks a lot!

Uhm never mind, I found that it works perfectly with the table and time series visualizations