no message

This commit is contained in:
2025-04-28 09:41:39 +02:00
parent 0067a1dce7
commit ae4410d6bf

View File

@@ -25,7 +25,7 @@ class Verbraucher_Sperrbar extends IPSModule
// Verbraucherspezifischer Timer
$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
$this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio");
@@ -82,9 +82,6 @@ class Verbraucher_Sperrbar extends IPSModule
}
}
// Methode zum Setzen der PowerSteps und Timer starten
public function SetTimerOn()
{
@@ -168,7 +165,7 @@ class Verbraucher_Sperrbar extends IPSModule
if($Peak==false){
$this->SetValue("PowerSteps",json_encode([0]));
} // Wenn Maxlaufzeit nicht erreicht ist
elseif ($DailyOnTime < $maxlaufzeit) {
elseif($DailyOnTime < $maxlaufzeit) {
if((GetValue($this->ReadPropertyInteger("Leistung"))>=$this->ReadPropertyInteger("Mindestsperrleistung")) || GetValue($this->ReadPropertyInteger("Schaltkontakt1"))==true) {
$this->SetValue("PowerSteps", json_encode([0, (int)$this->GetValue("Letzte_Sperrleistung")]));
} else {