Gesamtenergiemenge wird nun aufintegriert

This commit is contained in:
2025-03-17 08:26:56 +01:00
parent ef341805c9
commit f8f31bac50
6 changed files with 11 additions and 3 deletions

View File

@@ -175,7 +175,8 @@ public function RequestAction($Ident, $Value)
// 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
$this->ProcessIdleCounter();
}

View File

@@ -161,7 +161,7 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
// 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
$this->ProcessIdleCounter();
}

View File

@@ -91,6 +91,8 @@ class Ladestation_Universal extends IPSModule
$internalPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung"));
// Aktuelle Leistungsvorgabe setzen
SetValue($this->GetIDForIdent("Aktuelle_Leistung"), $power);
$this->SetValue("Bezogene_Energie", $this->GetValue("Bezogene_Energie")+($this->GetValue("Aktuelle_Leistung")*($this->ReadPropertyInteger("Interval")/3600)));
if ($power != $internalPower) {
// Setze die interne Leistungsvorgabe

View File

@@ -120,6 +120,8 @@ class Verbraucher_1_Stufig extends IPSModule
$this->SetTimerOn();
}
$this->SetValue("Aktuelle_Leistung", $power);
$this->SetValue("Bezogene_Energie", $this->GetValue("Bezogene_Energie")+($this->GetValue("Aktuelle_Leistung")*($this->ReadPropertyInteger("Interval")/3600)));
$boilerLeistung = $this->ReadPropertyInteger("BoilerLeistung");
$schaltkontaktID = $this->ReadPropertyInteger("Schaltkontakt1");

View File

@@ -262,6 +262,9 @@ class WP_Steuerung extends IPSModule
$newCount = $this->GetValue("WP_Laufzeit_Zahler");
$this->SetValue("WP_Laufzeit_Zahler", $newCount + 1);
}
$this->SetValue("Bezogene_Energie", $this->GetValue("Bezogene_Energie")+($this->GetValue("Aktuelle_Leistung")*($this->ReadPropertyInteger("Interval")/3600)));
}
// Methode zum Abrufen der aktuellen Daten

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "1.187",
"version": "1.188",
"build": 0,
"date": 0
}