no message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "{92E18FE8-489C-87A7-766B-2F06B7BD95E5}",
|
||||
"id": "{1604D0D8-B142-132A-C6AC-9054C48BA497}",
|
||||
"name": "Pufferspeicher",
|
||||
"type": 3,
|
||||
"vendor": "Belevo AG",
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user