Skip to content

Commit 7392b6a

Browse files
author
schoebli93
committed
added case when battery is dead (below 1%)
1 parent ffa790e commit 7392b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powerOptimizerEFHStaeppel/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
//logger.Log($"Load 1 Adjustment Mode as hex value:{loadAdjustmentModeHexAsString}");
107107

108108

109-
if (!waterHeatPumpEnabled && (DCPower - (WaterHeatPumpThresholdPower + loadPower) > 0) && (exportPower > 0) && ((batteryLevel > BatteryLevelThreshold) || (BatteryLevelLowerThreshold < 10)))
109+
if (!waterHeatPumpEnabled && (DCPower - (WaterHeatPumpThresholdPower + loadPower) > 0) && (exportPower > 0) && ((batteryLevel > BatteryLevelThreshold) || (batteryLevel < BatteryLevelLowerThreshold)))
110110
{
111111
waterHeatPumpEnabled = true;
112112
client.WriteSingleRegister(unitIdentifier, Load1Address, Load1ON);

0 commit comments

Comments
 (0)