leistungsdelta eingefügt.

This commit is contained in:
2025-03-19 14:08:52 +01:00
parent 213976e6cd
commit 6a2ae9913b
8 changed files with 17 additions and 10 deletions

View File

@@ -39,6 +39,7 @@ class Ladestation_Universal extends IPSModule
$this->RegisterVariableString("PowerSteps", "PowerSteps");
$this->RegisterVariableInteger("Power", "Power");
$this->RegisterVariableBoolean("Is_Peak_Shaving", "Is_Peak_Shaving");
$this->RegisterVariableInteger("Leistung_Delta", "Leistung_Delta", "", 0);
// Hilfsvariabeln für Idle zustand
$this->RegisterPropertyInteger("IdleCounterMax", 2);
@@ -335,7 +336,7 @@ class Ladestation_Universal extends IPSModule
}
// PowerSteps in der RegisterVariable speichern
SetValue($this->GetIDForIdent("PowerSteps"), json_encode($powerSteps));
$this->SetValue("Leistung_Delta", $this->GetValue("Ladeleistung_Effektiv")-$this->GetValue("Ladeleistung"));
// Rückgabe der Powersteps
return $powerSteps;
}