Skip to content

Commit

Permalink
Change to watts
Browse files Browse the repository at this point in the history
  • Loading branch information
GJSBRT committed Mar 17, 2024
1 parent 83f1550 commit b55fbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (c *Control) Start() {
continue
}

avgHomeLoad := inverterInputPower - (batteryChargingStatus / 1000) - (powerMeterActivePower / 1000)
avgHomeLoad := (inverterInputPower * 1000) - batteryChargingStatus - powerMeterActivePower
if avgHomeLoad < 0 {
avgHomeLoad = 0
}
Expand Down

0 comments on commit b55fbf8

Please sign in to comment.