fix(verbraucher): clear discarded power setpoints
Tests / test (push) Failing after 51s

This commit is contained in:
dh
2026-10-06 13:45:54 +00:00
parent ebec355c96
commit 5437f3f058
18 changed files with 296 additions and 38 deletions
+7 -6
View File
@@ -153,6 +153,7 @@ class Batterie extends IPSModule implements VerbraucherSchnittstelle
parent::ApplyChanges();
$this->aktualisiereVariablen();
$this->bereinigeUngueltigenSollwert();
$this->registriereMesswertmeldungen();
$this->WriteAttributeBoolean('RegisterInitialisiert', false);
@@ -219,7 +220,7 @@ class Batterie extends IPSModule implements VerbraucherSchnittstelle
case 'Aktiv':
$this->SetValue('Aktiv', (bool) $wert);
if (!(bool) $wert) {
$this->setzeZustand('SollwertGueltig', false);
$this->verwerfeSollwert();
$this->SetTimerInterval('VorgabeTimeout', 0);
}
$this->aktualisiere(true);
@@ -235,7 +236,7 @@ class Batterie extends IPSModule implements VerbraucherSchnittstelle
case 'VorgabeTimeout':
$this->SetTimerInterval('VorgabeTimeout', 0);
$this->setzeZustand('SollwertGueltig', false);
$this->verwerfeSollwert();
$this->aktualisiere(true);
return;
@@ -249,7 +250,7 @@ class Batterie extends IPSModule implements VerbraucherSchnittstelle
return;
case 'SichererZustand':
$this->setzeZustand('SollwertGueltig', false);
$this->verwerfeSollwert();
$this->schreibeRegister(0, true);
$this->aktualisiere(true);
return;
@@ -313,7 +314,7 @@ class Batterie extends IPSModule implements VerbraucherSchnittstelle
(int) $this->leseZustand('Sollleistung')
)
) {
$this->setzeZustand('SollwertGueltig', false);
$this->verwerfeSollwert();
$this->aktualisiere(false);
}
$this->planeMeldung();
@@ -419,7 +420,7 @@ class Batterie extends IPSModule implements VerbraucherSchnittstelle
(int) $this->leseZustand('Sollleistung')
)
) {
$this->setzeZustand('SollwertGueltig', false);
$this->verwerfeSollwert();
}
$this->pruefeVorgabeTimeout($jetzt);
@@ -596,7 +597,7 @@ class Batterie extends IPSModule implements VerbraucherSchnittstelle
if ($letzteVorgabe <= 0
|| $jetzt - $letzteVorgabe >= $this->ReadPropertyInteger('VorgabeTimeout')
) {
$this->setzeZustand('SollwertGueltig', false);
$this->verwerfeSollwert();
$this->SetTimerInterval('VorgabeTimeout', 0);
}
}