From 58aef97ab1a161e948d4b09efb960d39bcab87d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 19 Sep 2025 14:44:31 +0200 Subject: [PATCH] no message --- Ladestation_v2/module.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 11a0054..6df14e3 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -102,6 +102,9 @@ class Ladestation_v2 extends IPSModule $this->RegisterTimer("Timer_Do_UserCalc_EVC",$this->ReadPropertyInteger("Interval")*1000,"IPS_RequestAction(" .$this->InstanceID .', "Do_UserCalc", "");'); $this->RegisterTimer("Timer_Refresh_Token",0,"IPS_RequestAction(" .$this->InstanceID .', "Refresh_Token", "");'); + $this->RegisterVariableInteger("Mindestaldestrom", "Mindestaldestrom", "", 0); + $this->EnableAction("Mindestaldestrom"); + } public function ApplyChanges() @@ -551,7 +554,15 @@ class Ladestation_v2 extends IPSModule // power > 0: keine 0 am Anfang, Schleife normal durchlaufen } else { // Timer aus: wie bisher, 0 am Anfang - $resultArray[] = 0; + + if ($is_1_ph) { + $resultArray[] = $this->GetValue("Mindestaldestrom") * 230; + } else { + $resultArray[] = $this->GetValue("Mindestaldestrom") * 400 * 1.71; + } + } + + $resultArray[] = $this-; } // Schleife wie gehabt