# Meter type for Measuring a Variable Load

**URL:** <https://community.openems.io/t/meter-type-for-measuring-a-variable-load/2762>\
**Category:** English Forum\
**Created:** [June 24, 2024, 8:38am UTC](https://community.openems.io/t/meter-type-for-measuring-a-variable-load/2762 "2024-06-24T08:38:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsen](https://community.openems.io/letter_avatar_proxy/v4/letter/d/6de8d8/32.png) [@dsen](https://community.openems.io/u/dsen)\
**Post date:** [June 24, 2024, 8:38am UTC](https://community.openems.io/t/meter-type-for-measuring-a-variable-load/2762/1 "2024-06-24T08:38:09Z")

</div>

Hi Community,  
We have a Grid, PV power plant, variable load and ESS we are monitoring using:

Meters:

- A meter for readings from the Grid (Meter type: GRID)
- A meter for readings from a PV (Meter type: PRODUCTION)
- A meter for readings from a variable Load(Meter type: CONSUMPTION\_METERED)

Other Components:

- Ess
- 4 Modbus bridges for the meters and ESS.

We have the means to measure the components (grid, pv, load and ESS) independently. The expectation was that values from the respective components would also show up on the OpenEMS UI correctly. The readings for PV, Grid and ESS are displaying correctly, but the load value is incorrect by quite a lot.

The meter implementation we use is inherited from ElectricityMeter and we are only reading the Active and reactive Power channels. The same meter is used for the Grid, PV and load with the appropriate meter type. Is this the correct way to measure load?

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![klinki](https://community.openems.io/letter_avatar_proxy/v4/letter/k/858c86/32.png) [@klinki](https://community.openems.io/u/klinki)\
**Post date:** [June 24, 2024, 3:39pm UTC](https://community.openems.io/t/meter-type-for-measuring-a-variable-load/2762/2 "2024-06-24T15:39:48Z")

</div>

Please take a look at the energy flow of different meter types which is not…let‘s say…intuitive.  
[Discussion](https://community.openems.io/t/change-energy-channel-assignment-based-on-meter-type/1603)  
Maybe this can bring you a step further…

---

<div class="post-metadata">

**Author:** ![stefan.feilmeier](https://community.openems.io/user_avatar/community.openems.io/stefan.feilmeier/32/2585_2.png) [@stefan.feilmeier](https://community.openems.io/u/stefan.feilmeier)\
**Post date:** [June 30, 2024, 6:58pm UTC](https://community.openems.io/t/meter-type-for-measuring-a-variable-load/2762/3 "2024-06-30T18:58:06Z")

</div>

To understand the (sometimes “non-intuitive”) logic in OpenEMS, please see, how the different measurements relate to each other. This is best seen in the Sum-Component:

```auto
var consumptionActivePower = TypeUtils.sum(essActivePowerSum, gridActivePowerSum, productionAcActivePowerSum);

```

→ [openems/io.openems.edge.core/src/io/openems/edge/core/sum/SumImpl.java at develop · OpenEMS/openems · GitHub](https://github.com/OpenEMS/openems/blob/develop/io.openems.edge.core/src/io/openems/edge/core/sum/SumImpl.java#L393-L394)

i.e. **Consumption** is calculated as the sum of **Energy Storage System (ESS)** (where discharge is positive), **Grid** (where buying from grid is positive) and **Production** (AC-side only, should be always positive).

This general formula unfortunately causes problems when using the same meter implementation to measure productions and consumptions, because one needs to be inverted.

* * *

> We have a Grid, PV power plant, variable load and ESS we are monitoring using:

Why do you need to measure the load? It’s typically simply calculated from the other measurements. With the only exception of additionally measured loads - see the Meter-Type for that. (-\> [openems/io.openems.edge.core/src/io/openems/edge/core/sum/SumImpl.java at develop · OpenEMS/openems · GitHub](https://github.com/OpenEMS/openems/blob/develop/io.openems.edge.core/src/io/openems/edge/core/sum/SumImpl.java#L238))

Regards,  
Stefan
