From 6fd78cfc1cd4da7a4ec5c134a551b7cd45c948c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Tue, 8 Apr 2025 09:01:30 +0200 Subject: [PATCH] no message --- Ladestation_v2/module.php | 36 ++++++++++++++++++------------------ library.json | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 913963c..f7f7b35 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -18,25 +18,25 @@ class Ladestation_v2 extends IPSModule // Ladestationspezifische Variabeln - $this->RegisterVariableFloat("Max_Current","Max_Current","", 0); - $this->RegisterVariableBoolean("Is_1_ph", "Is_1_ph", "", false); - $this->RegisterVariableBoolean("Car_detected", "Car_detected","", false); + $this->RegisterVariableFloat("Max_Current","Maximaler Ladestrom","", 0); + $this->RegisterVariableBoolean("Is_1_ph", "Auto lädt 1-Phasig", "", false); + $this->RegisterVariableBoolean("Car_detected", "Auto erkannt","", false); $this->RegisterVariableInteger("Pending_Counter", "Pending_Counter", "", 0); - $this->RegisterVariableBoolean("Car_is_full", "Car_is_full", "", false); - $this->RegisterVariableBoolean("Ladebereit", "Ladebereit", "~Switch", 1); - $this->RegisterVariableBoolean("Solarladen", "Solarladen", "~Switch", 0); + $this->RegisterVariableBoolean("Car_is_full", "Auto fertig geladen", "", false); + $this->RegisterVariableBoolean("Ladebereit", "Ladestation ein", "~Switch", true); + $this->RegisterVariableBoolean("Solarladen", "Solarladen ein", "~Switch", false); $this->RegisterVariableInteger("Fahrzeugstatus", "Fahrzeugstatus", "", 0); - $this->RegisterVariableFloat("Ladeleistung_Effektiv", "Ladeleistung_Effektiv", "", 0); + $this->RegisterVariableFloat("Ladeleistung_Effektiv", "Effektive Ladeleistung", "", 0); $this->RegisterVariableBoolean("Peak", "Peak", "", 0); // Variabeln für Kommunkation mit Manager - $this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio"); - $this->RegisterVariableInteger("PV_Prio", "PV_Prio"); + $this->RegisterVariableInteger("Sperre_Prio", "Priorität Sperre", "", 0); + $this->RegisterVariableInteger("PV_Prio", "Priorität Solarladen", "", 0); $this->RegisterVariableBoolean("Idle", "Idle", "", 0); $this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0); - $this->RegisterVariableFloat("Bezogene_Energie", "Bezogene_Energie", "", 0); - $this->RegisterVariableString("PowerSteps", "PowerSteps"); + $this->RegisterVariableFloat("Bezogene_Energie", "Gesamter Energiebezug", "", 0); + $this->RegisterVariableString("PowerSteps", "Leistungsschritte"); $this->RegisterVariableInteger("Power", "Power"); $this->RegisterVariableBoolean("Is_Peak_Shaving", "Is_Peak_Shaving"); $this->RegisterVariableInteger("Leistung_Delta", "Leistung_Delta", "", 0); @@ -98,15 +98,15 @@ class Ladestation_v2 extends IPSModule public function Detect_Car(int $carType) { - if($this->GetValue("Car_Detected")){ + if($this->GetValue("Car_detected")){ if($this->Get_Car_Status($carType)==true){ - $this->SetValue("Car_Detected", true); + $this->SetValue("Car_detected", true); if($this->GetValue("Max_Current")<6){ $this-SetValue("Car_is_full", true); } }else{ - $this->SetValue("Car_Detected", false); + $this->SetValue("Car_detected", false); $this-SetValue("Car_is_full", false); } @@ -132,23 +132,23 @@ class Ladestation_v2 extends IPSModule } - $this->SetValue("Car_Detected", true); + $this->SetValue("Car_detected", true); } else{ $this->SetValue("Pending_Counter", $counter+1); - $this->SetValue("Car_Detected", false); + $this->SetValue("Car_detected", false); } }else{ - $this->SetValue("Car_Detected", false); + $this->SetValue("Car_detected", false); } } - return $this->GetValue("Car_Detected"); + return $this->GetValue("Car_detected"); } diff --git a/library.json b/library.json index 94f3e89..cef7371 100644 --- a/library.json +++ b/library.json @@ -4,7 +4,7 @@ "author": "Daniel Haefliger", "url": "https://git.belevo.ch/dh/Symcon_Belevo_Energiemanagement", "compatibility": { - "version": "7.1" + "version": "8.0" }, "version": "1.227", "build": 0,