no message
This commit is contained in:
@@ -25,7 +25,7 @@ class Verbraucher_Sperrbar extends IPSModule
|
|||||||
|
|
||||||
// Verbraucherspezifischer Timer
|
// Verbraucherspezifischer Timer
|
||||||
$this->SetValue("IsTimerActive", false);
|
$this->SetValue("IsTimerActive", false);
|
||||||
$this->RegisterTimer("ZustandswechselTimer",0,"IPS_RequestAction(" .$this->InstanceID .', "ResetPowerSteps", "");');
|
$this->RegisterTimer("ZustandswechselTimer",0,"IPS_RequestAction(" .$this->InstanceID .', "ResetTimer", "");');
|
||||||
|
|
||||||
// Variabeln für Kommunkation mit Manager
|
// Variabeln für Kommunkation mit Manager
|
||||||
$this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio");
|
$this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio");
|
||||||
@@ -82,9 +82,6 @@ class Verbraucher_Sperrbar extends IPSModule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Methode zum Setzen der PowerSteps und Timer starten
|
// Methode zum Setzen der PowerSteps und Timer starten
|
||||||
public function SetTimerOn()
|
public function SetTimerOn()
|
||||||
{
|
{
|
||||||
@@ -168,7 +165,7 @@ class Verbraucher_Sperrbar extends IPSModule
|
|||||||
if($Peak==false){
|
if($Peak==false){
|
||||||
$this->SetValue("PowerSteps",json_encode([0]));
|
$this->SetValue("PowerSteps",json_encode([0]));
|
||||||
} // Wenn Maxlaufzeit nicht erreicht ist
|
} // Wenn Maxlaufzeit nicht erreicht ist
|
||||||
elseif ($DailyOnTime < $maxlaufzeit) {
|
elseif($DailyOnTime < $maxlaufzeit) {
|
||||||
if((GetValue($this->ReadPropertyInteger("Leistung"))>=$this->ReadPropertyInteger("Mindestsperrleistung")) || GetValue($this->ReadPropertyInteger("Schaltkontakt1"))==true) {
|
if((GetValue($this->ReadPropertyInteger("Leistung"))>=$this->ReadPropertyInteger("Mindestsperrleistung")) || GetValue($this->ReadPropertyInteger("Schaltkontakt1"))==true) {
|
||||||
$this->SetValue("PowerSteps", json_encode([0, (int)$this->GetValue("Letzte_Sperrleistung")]));
|
$this->SetValue("PowerSteps", json_encode([0, (int)$this->GetValue("Letzte_Sperrleistung")]));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user