no message
This commit is contained in:
@@ -12,7 +12,7 @@ class Ansteuerung_Askoheat extends IPSModule
|
|||||||
$this->RegisterPropertyBoolean("Boilertemperatur_glätten", false);
|
$this->RegisterPropertyBoolean("Boilertemperatur_glätten", false);
|
||||||
$this->RegisterPropertyInteger("Boilervolumen", 300);
|
$this->RegisterPropertyInteger("Boilervolumen", 300);
|
||||||
$this->RegisterPropertyString("Zeitplan", "");
|
$this->RegisterPropertyString("Zeitplan", "");
|
||||||
$this->RegisterPropertyInteger("BoilerLeistung", 3500); // Standardwert für Volllast
|
$this->RegisterPropertyInteger("BoilerLeistung", 4400); // Standardwert für Volllast
|
||||||
$this->RegisterPropertyInteger("Interval", 5); // Recheninterval
|
$this->RegisterPropertyInteger("Interval", 5); // Recheninterval
|
||||||
$this->RegisterPropertyInteger("Variable_Leistung", 0); // Recheninterval
|
$this->RegisterPropertyInteger("Variable_Leistung", 0); // Recheninterval
|
||||||
$this->RegisterPropertyInteger("Variable_Temperatur", 0); // Recheninterval
|
$this->RegisterPropertyInteger("Variable_Temperatur", 0); // Recheninterval
|
||||||
@@ -132,7 +132,15 @@ class Ansteuerung_Askoheat extends IPSModule
|
|||||||
// Methode zum Setzen des aktuellen Stromverbrauchs
|
// Methode zum Setzen des aktuellen Stromverbrauchs
|
||||||
public function SetAktuelle_Leistung(int $power)
|
public function SetAktuelle_Leistung(int $power)
|
||||||
{
|
{
|
||||||
RequestAction($this->ReadPropertyInteger("Variable_Leistung"), $power/7);
|
if($power>0){
|
||||||
|
|
||||||
|
RequestAction($this->ReadPropertyInteger("Variable_Leistung"), $this->ReadPropertyInteger("BoilerLeistung")/$power);
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
RequestAction($this->ReadPropertyInteger("Variable_Leistung"), 0);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// Prüfe auf Änderung der Power im Vergleich zur letzten Einstellung
|
// Prüfe auf Änderung der Power im Vergleich zur letzten Einstellung
|
||||||
$lastPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung"));
|
$lastPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung"));
|
||||||
|
|||||||
Reference in New Issue
Block a user