no message
This commit is contained in:
@@ -344,6 +344,9 @@ class Ladestation_v2 extends IPSModule
|
|||||||
public function SetAktuelle_Leistung(int $power)
|
public function SetAktuelle_Leistung(int $power)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if($power==0){
|
||||||
|
$this->SetValue("Pending_Counter", 0);
|
||||||
|
}
|
||||||
$internalPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung"));
|
$internalPower = GetValue($this->GetIDForIdent("Aktuelle_Leistung"));
|
||||||
// Aktuelle Leistungsvorgabe setzen
|
// Aktuelle Leistungsvorgabe setzen
|
||||||
SetValue($this->GetIDForIdent("Aktuelle_Leistung"), $power);
|
SetValue($this->GetIDForIdent("Aktuelle_Leistung"), $power);
|
||||||
@@ -363,6 +366,7 @@ class Ladestation_v2 extends IPSModule
|
|||||||
$idleCounter = GetValue($this->GetIDForIdent("IdleCounter"));
|
$idleCounter = GetValue($this->GetIDForIdent("IdleCounter"));
|
||||||
if ($idleCounter > 0) {
|
if ($idleCounter > 0) {
|
||||||
$idleCounter--;
|
$idleCounter--;
|
||||||
|
$this->SetValue("Pending_Counter", 0);
|
||||||
SetValue($this->GetIDForIdent("IdleCounter"), $idleCounter);
|
SetValue($this->GetIDForIdent("IdleCounter"), $idleCounter);
|
||||||
if ($idleCounter == 0) {
|
if ($idleCounter == 0) {
|
||||||
SetValue($this->GetIDForIdent("Idle"), true);
|
SetValue($this->GetIDForIdent("Idle"), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user