# \[fronius\] How to get the daily total energy consumption and grid import/export?

**URL:** <https://community.openhab.org/t/fronius-how-to-get-the-daily-total-energy-consumption-and-grid-import-export/109332>\
**Category:** Bindings\
**Created:** [December 2, 2020, 3:13pm UTC](https://community.openhab.org/t/fronius-how-to-get-the-daily-total-energy-consumption-and-grid-import-export/109332 "2020-12-02T15:13:52Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![narf27](https://community.openhab.org/letter_avatar_proxy/v4/letter/n/8797f3/32.png) [@narf27](https://community.openhab.org/u/narf27)\
**Post date:** [February 9, 2023, 12:14pm UTC](https://community.openhab.org/t/fronius-how-to-get-the-daily-total-energy-consumption-and-grid-import-export/109332/32 "2023-02-09T12:14:18Z")

</div>

> [@jimtng](#):
>
> So “Energy real sum consumed” is just the total grid import that we pay for, and the “Energy real sum produced” is the total grid export.
> 
> The total household energy consumption would be calculated from “Energy generated overall” (the `inverterdatachanneltotal` channel from the inverter) plus “energy real sum consumed” minus “energy real sum produced” - assuming that the meter is installed on the grid side.
> 
> To calculate the daily usage, one must take a snapshot of the values daily, subtracted from the previous day’s snapshot. This could probably be done using cron + persistence, I have yet to write the rule.

Hi Jim!  
my fronius was installed some weeks ago and since last week i also can export to grid.  
i configured the binding with text files and i don’t get any errors, but the values i get from the binding differ from the values i see in the fronius app…

Binding data:

```auto
fronius:powerinverter:mybridge:myinverter:inverterdatachanneltotal = 0.3852054927777778 MWh
fronius:meter:mybridge:mymeter:energyrealsumconsumed = 1015811 Wh
fronius:meter:mybridge:mymeter:energyrealsumproduced = 93519 Wh

```

Here’s a screenshot from the app:

 ![Screenshot_20230209-123457_Solarweb](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/f/d/fde3ee5db77ec8ec781438d91bf9b7e2ada89463.jpeg)

according to your post `inverterdatachanneltotal + fronius:meter:mybridge:mymeter:energyrealsumconsumed - fronius:meter:mybridge:mymeter:energyrealsumproduced ` should equal `household consuption`, right?

but `385.21 kWh + 101.58 kWh - 93.52 kWh = 393,27 kWh` whereas the app tells me consumption was 1319.99 kWh ?

What am i missing?

and which values should i use to replicate this info from the app?

 ![Screenshot_20230209-125831_Solarweb](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/6/1/617d7d2ee5ddd84b7449249afcd02c00c230027e.jpeg)

the last one (“to grid”) is the value from `fronius:meter:mybridge:mymeter:powerrealsum`

first value shoud be `fronius:powerinverter:mybridge:myinverter:powerflowchannelppv` (same as `fronius:meter:mybridge:mymeter:powerrealsum` ?)  
last one should be `fronius:powerinverter:mybridge:myinverter:powerflowchannelpgrid`  
but is there also a channel for the 2nd value (total consumption)? or is this just the difference between the 2 (given) values?

hope you still use this binding and can provide some insight!

best regards,  
Peter

---

_[View the full topic](https://community.openhab.org/t/fronius-how-to-get-the-daily-total-energy-consumption-and-grid-import-export/109332)._
