solarmd-pty-ltd / myPower24-WEB

1 stars 0 forks source link

Energy Usage chart logic incorrect in some cases #162

Closed henry-thomas closed 1 year ago

henry-thomas commented 1 year ago

Example logger: SLV201746805

Grid energy is 0kWh for the daily energy, but displays a value of Grid: 1.9kWh that went to load. This is incorrect, because the energy should have come only from PV or BatDischarge.

image

Issue is probably in javascript logic when calculating which energy comes from which source. Around here in energyUsageChart.js:

image

BrilliesNate commented 1 year ago

Fixed.