* next attempt to fix total yield day for multiple inverters #1016
* added two more states for the inverter status (also docu)
This commit is contained in:
lumapu 2023-07-25 22:18:33 +02:00
parent aaf685f465
commit 812adce64e
9 changed files with 28 additions and 22 deletions

View file

@ -322,14 +322,14 @@ void app::tickComm(void) {
//-----------------------------------------------------------------------------
void app::tickZeroValues(void) {
zeroIvValues(false);
zeroIvValues(!CHECK_AVAIL, SKIP_YIELD_DAY);
}
//-----------------------------------------------------------------------------
void app::tickMinute(void) {
// only triggered if 'reset values on no avail is enabled'
zeroIvValues(true);
zeroIvValues(CHECK_AVAIL, SKIP_YIELD_DAY);
}
//-----------------------------------------------------------------------------
@ -339,7 +339,7 @@ void app::tickMidnight(void) {
uint32_t nxtTrig = gTimezone.toUTC(localTime - (localTime % 86400) + 86400); // next midnight local time
onceAt(std::bind(&app::tickMidnight, this), nxtTrig, "mid2");
zeroIvValues(false, false);
zeroIvValues(!CHECK_AVAIL, !SKIP_YIELD_DAY);
if (mMqttEnabled)
mMqtt.tickerMidnight();