Evaluate grid export when calculating home power
This commit is contained in:
parent
ca3f793eb1
commit
7de872926f
1 changed files with 1 additions and 3 deletions
|
|
@ -390,9 +390,7 @@ func (site *Site) update(lp Updater) {
|
|||
if sitePower, err := site.sitePower(); err == nil {
|
||||
lp.Update(sitePower, cheap, site.batteryBuffered)
|
||||
|
||||
gridImport := math.Max(0, site.gridPower)
|
||||
|
||||
homePower := gridImport + site.pvPower + site.batteryPower
|
||||
homePower := site.gridPower + site.pvPower + site.batteryPower
|
||||
for _, lp := range site.loadpoints {
|
||||
homePower -= lp.GetChargePower()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue