File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## V 1.100
4+ ### script
5+ * improve startup: init newLimitSetpoint
6+
37## V 1.99
48### script
59* fix mixed mode: if setLimit < getminwatt there was an calulation error (results in setLimit = 0).
Original file line number Diff line number Diff line change 1515# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
1717__author__ = "Tobias Kraft"
18- __version__ = "1.99 "
18+ __version__ = "1.100 "
1919
2020import time
2121from requests .sessions import Session
@@ -1615,14 +1615,16 @@ def emit(self, record):
16151615try :
16161616 logger .info ("---Init---" )
16171617
1618- newLimitSetpoint = 0
16191618 DTU .CheckMinVersion ()
16201619 if GetHoymilesAvailable ():
16211620 for i in range (INVERTER_COUNT ):
16221621 SetHoymilesPowerStatus (i , True )
1623- SetLimit (GetMinWattFromAllInverters ())
1622+ newLimitSetpoint = GetMinWattFromAllInverters ()
1623+ SetLimit (newLimitSetpoint )
16241624 GetHoymilesActualPower ()
16251625 GetCheckBattery ()
1626+ else :
1627+ newLimitSetpoint = 0
16261628 GetPowermeterWatts ()
16271629except Exception as e :
16281630 if hasattr (e , 'message' ):
You can’t perform that action at this time.
0 commit comments