no message

This commit is contained in:
belevo\mh
2025-09-26 08:42:45 +02:00
parent 46ac69b2f0
commit 6a2ac4814f
2 changed files with 13 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
{
"id": "{92E18FE8-489C-87A7-766B-2F06B7BD95E5}",
"id": "{1604D0D8-B142-132A-C6AC-9054C48BA497}",
"name": "Pufferspeicher",
"type": 3,
"vendor": "Belevo AG",

View File

@@ -99,13 +99,21 @@ class Pufferspeicher extends IPSModule
SetValue($this->ReadPropertyInteger("Heizkontakt_Puffer"), false);
SetValue($this->ReadPropertyInteger("Heizkontakt_Puffer_Teillast"), false);
}
}
// Prüfe auf Änderung der Power im Vergleich zur letzten Einstellung
$lastPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung"));
if ($power != $lastPower) {
$this->SetValue("Idle", false);
$this->SetValue(
"IdleCounter",
$this->ReadPropertyInteger("IdleCounterMax")
);
}
// Setze die neue Aktuelle_Leistung
// Setze die neue Aktuelle_Leistung
$this->SetValue("Aktuelle_Leistung", $power);
$this->SetValue("Bezogene_Energie", ($this->GetValue("Bezogene_Energie") + ($this->GetValue("Aktuelle_Leistung")*($this->ReadPropertyInteger("Interval")/3600))));
// IdleCounter verarbeiten
// IdleCounter verarbeiten
$this->ProcessIdleCounter();
}