Is this the place to look at for the difference between Live and History view?
HISTORY in openems/ui/src/app/edge/history/common/production/flat/flat.html
@for (component of productionMeterComponents; track component; let i = $index) {
<oe-flat-widget-line [name]="component.alias" [channelAddress]="component.id + '/ActiveProductionEnergy'"
[converter]="CONVERT_TO_KILO_WATTHOURS">
...
@for (component of chargerComponents; track component) {
<oe-flat-widget-line [name]="component.alias" [channelAddress]="component.id + '/ActualEnergy'"
vs.
LIVE in openems/ui/src/app/edge/live/common/production/flat/flat.html
@for (component of productionMeterComponents; track component; let i = $index) {
<oe-flat-widget-line [name]="component.alias" [channelAddress]="component.id + '/ActivePower'"
[converter]="CONVERT_WATT_TO_KILOWATT">
...
@for (component of chargerComponents; track component) {
<oe-flat-widget-line [name]="component.alias" [channelAddress]="component.id + '/ActualPower'"
If I check the Channels through http://localhost:4200/device/0/settings/channels I see the following:
Fronius pvInverter0:
ActivePower: 665 W
ActiveProductionEnergy: 29320100 Wh_Σ
Kostal pvInverter12:
ActivePower: 817 W
ActiveProductionEnergy: 139324 Wh_Σ
While the ActivePower values fit to the LIVE display, the ActiveProductionEnergy values DON’T fit to HISTORY.
The mentioned [converter] don’t seem to do more than number formatting (if openems/ui/src/app/shared/utils/utils.ts is the right place to look). Thus they do not explain why the values of channel ActiveProductionEnergy do not match to the displayed numbers of HISTORY.
For the Kostal, the explanation on first glance could be simple: the values are just too small → therefore 0 kWh shown in HISTORY. But with manual calculation from ActiveProductionEnergy above I still get 139 kWh.
But for the Fronius this does not work: Why 2,4 kWh is shown in HISTORY??? I would say it should be 29320 kWh, converting manually from the value in ActiveProductionEnergy above…
Where is the error? Where do the displayed values in HISTORY come from?