Netzbezugvariable hinzugefühgt

This commit is contained in:
2025-03-05 07:06:34 +01:00
parent 2db78ed300
commit adc5018da4
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -12,6 +12,8 @@ class HauptManager extends IPSModule
$this->RegisterPropertyInteger("Netzbezug", 0); // Initialisierung mit 0
$this->RegisterPropertyString("Verbraucher_Liste", "[]");
$this->RegisterVariableInteger("Gesamtnetzbezug", 0);
// Timer registrieren
$this->RegisterTimer("Timer_DistributeEnergy",5000,"IPS_RequestAction(" .$this->InstanceID .', "DistributeEnergy", "");');
}
@@ -63,8 +65,7 @@ class HauptManager extends IPSModule
}
IPS_LogMessage("HauptManager netzbezug", $Netzbezug);
$this->SetValue("Gesamtnetzbezug", $Netzbezug);
$Peakleistung = $this->ReadPropertyInteger("Peakleistung");