no message

This commit is contained in:
2025-04-22 13:15:33 +02:00
parent f1b48a2185
commit f9c9fccedb

View File

@@ -344,6 +344,9 @@ class Ladestation_v2 extends IPSModule
public function SetAktuelle_Leistung(int $power)
{
if($power==0){
$this->SetValue("Pending_Counter", 0);
}
$internalPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung"));
// Aktuelle Leistungsvorgabe setzen
SetValue($this->GetIDForIdent("Aktuelle_Leistung"), $power);
@@ -363,6 +366,7 @@ class Ladestation_v2 extends IPSModule
$idleCounter = GetValue($this->GetIDForIdent("IdleCounter"));
if ($idleCounter > 0) {
$idleCounter--;
$this->SetValue("Pending_Counter", 0);
SetValue($this->GetIDForIdent("IdleCounter"), $idleCounter);
if ($idleCounter == 0) {
SetValue($this->GetIDForIdent("Idle"), true);