From b55fbf8b0b31b8e6b5edab96cf309c09ab0d0c2c Mon Sep 17 00:00:00 2001 From: Gijsbert Date: Sun, 17 Mar 2024 17:34:41 +0100 Subject: [PATCH] Change to watts --- control/control.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/control.go b/control/control.go index 7f8aa1f..e542441 100644 --- a/control/control.go +++ b/control/control.go @@ -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 }