Issue with Utility Meter

Hi guys,

I have an issue with utility meter I can’t figure out: browsed the forum but it was of no help.

So I have 1 shelly devices (1PM and 2.5) which are reporting instantaneous consumption.

Shelly 1PM
grab 2020-06-09 alle 19.48.50

Shelly 2.5
grab 2020-06-09 alle 19.50.15

as you may notice both having correct unit of measurement.

Now I am integrating these by:

1PM

- platform: integration
  source: sensor.shelly_shsw_pm_e641f5_current_consumption
  name: "Integrated Domotica Power (h)"
  round: 2
  unit_time: h
  unit_prefix: k

2.5

- platform: integration
  source: sensor.shelly_shsw_25_bcddc2774577_1_current_consumption
  name: "Integrated Deumidificatore Bagno P-1 consumption"
  round: 2
  unit_time: h
  unit_prefix: k

but while the 1PM integrated sensor has expected unit of measurement (kWh) 2.5 one doesn’t have any.
As a result utility meter do not correctly work.

I tried to manually add unit of measurement:

- platform: integration
  source: sensor.shelly_shsw_25_bcddc2774577_1_current_consumption
  name: "Integrated Deumidificatore Bagno P-1 consumption"
  round: 2
  unit_time: h
  unit_prefix: k
  unit: kWh

and the sensor get it correctly, nevertheless utility meter lead to this:

1PM
grab 2020-06-09 alle 19.56.56

2.5
grab 2020-06-09 alle 19.56.20

Can someone help?

Your Shelly 2.5 isn’t measuring anything. So the integration is not going to accumulate anything and neither is the utility meter.

Also you should read this post about selecting the most appropriate integration method (the default is probably not optimal for your case):