kleine fixes

This commit is contained in:
2024-11-28 16:25:46 +01:00
parent 5f29d42f2b
commit 33a26c7387
5 changed files with 18 additions and 10 deletions

View File

@@ -46,11 +46,9 @@ class Belevo_Server_Kommunikation extends IPSModule
if ($InfluxJaNein) {
// Timer auf 5 Minuten setzen
$this->SetTimerInterval("Timer_Influx", 300000); // Alle 5 Minuten -> 5*60*1000=300000
IPS_LogMessage("Belevo_Server_Kommunikation", "Influx Ja");
} else {
// Timer stoppen
$this->SetTimerInterval("Timer_Influx", 0);
IPS_LogMessage("Belevo_Server_Kommunikation", "Influx Nein");
}
}

View File

@@ -14,9 +14,9 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
$this->RegisterPropertyInteger("Kontakt_Volllast", 0);
// Boiler spezifische Variablen
$this->RegisterVariableInteger("Boilermintemp","Boilermintemp","",45);
$this->RegisterVariableInteger("Boilermaxtemp","Boilermaxtemp","",60);
$this->RegisterVariableInteger("Boilerlegiotemp","Boilerlegiotemp","",65);
$this->RegisterVariableInteger("Mindesttemperatur","Mindesttemperatur","",45);
$this->RegisterVariableInteger("Maximaltemperatur","Maximaltemperatur","",60);
$this->RegisterVariableInteger("Legionellentemperatur","Legionellentemperatur","",65);
$this->RegisterVariableInteger("LegioCounter", "LegioCounter", "", 0);
// Variabeln für Kommunkation mit Manager
@@ -95,9 +95,9 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
$LegioCounter = $this->GetValue("LegioCounter");
$boilerTemp = GetValue($this->ReadPropertyInteger("Boilertemperatur"));
$minTemp = $this->GetValue("Boilermintemp");
$maxTemp = $this->GetValue("Boilermaxtemp");
$LegioTemp = $this->GetValue("Boilerlegiotemp");
$minTemp = $this->GetValue("Mindesttemperatur");
$maxTemp = $this->GetValue("Maximaltemperatur");
$LegioTemp = $this->GetValue("Legionellentemperatur");
$teilLeistung = $this->ReadPropertyInteger("BoilerLeistungTeillast");
$vollLeistung = $this->ReadPropertyInteger("BoilerLeistungVolllast");

View File

@@ -35,7 +35,7 @@
{
"type": "Label",
"caption": "Aktuell wird nur Go-E ladestation zu testzwecken unterstützt!"
"caption": "Aktuell wird nur Go-E ladestation unterstützt!"
}
]
}

View File

@@ -65,6 +65,8 @@ class Manager extends IPSModule
foreach ($Verbraucher_Liste as $user) {
if (IPS_InstanceExists($user["Verbraucher"])) {
IPS_RequestAction($user["Verbraucher"],"GetCurrentData", $Is_Peak_Shaving);
IPS_LogMessage("Manager", "aufgerufen getcurrentdata");
}
}
@@ -75,6 +77,8 @@ class Manager extends IPSModule
// Fülle das Array mit allen entsprechenden Werten der Verbraucher ab
foreach ($Verbraucher_Liste as $user) {
if (!IPS_InstanceExists($user["Verbraucher"])) {
IPS_LogMessage("Manager", "aufgerufen komisch");
continue;
}
@@ -102,6 +106,8 @@ class Manager extends IPSModule
// Überprüfen, ob alle Benutzer Idle = true sind, wenn einer nicht ist, wird später verworfen...
if (!$idle) {
$allIdle = false;
IPS_LogMessage("Manager", "nciht idle");
}
// Addiere die aktuell bereits verwendete Leistung auf, um sie bei der verteilung zu berücksichtigen
@@ -119,6 +125,8 @@ class Manager extends IPSModule
if (!$allIdle) {
foreach ($filteredVerbraucher as $user) {
IPS_RequestAction($user["InstanceID"],"SetAktuelle_Leistung",$user["Aktuelle_Leistung"]);
IPS_LogMessage("Manager", "aufgerufen nicht alle idle");
}
return;
}
@@ -240,6 +248,8 @@ class Manager extends IPSModule
// Methode SetAktuelle_Leistung für jeden Verbraucher mit der entsprechenden Energie aufrufen
if (IPS_InstanceExists($userInstanceID)) {
IPS_RequestAction($userInstanceID,"SetAktuelle_Leistung",$leistung);
IPS_LogMessage("Manager", "aufgerufen setleistung normal");
}
}
}

View File

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