diff --git a/Batterie/module.php b/Batterie/module.php index f79d789..a66ebeb 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -16,14 +16,12 @@ class Batterie extends IPSModule $this->RegisterPropertyInteger("Entladestrom", 0); // Variabeln für Kommunkation mit Manager - $this->RegisterVariableProfile("Batterie.Leistung", 1, "W"); - $this->RegisterVariableProfile("Batterie.Strom", 1, "A"); - $this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "Batterie.Leistung", 0); + $this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0); $this->RegisterVariableString("PowerSteps", "PowerSteps"); $this->RegisterVariableBoolean("Idle", "Idle", "", 0); $this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio"); $this->RegisterVariableInteger("PV_Prio", "PV_Prio"); - $this->RegisterVariableFloat("Bezogene_Energie", "Bezogene_Energie", "Batterie.Leistung", 0); + $this->RegisterVariableFloat("Bezogene_Energie", "Bezogene_Energie", "", 0); // Hilfsvariabeln für Idle zustand $this->RegisterPropertyInteger("IdleCounterMax", 2); @@ -55,13 +53,7 @@ class Batterie extends IPSModule return $array_powersteps; } -private function RegisterVariableProfile(string $name, int $type, string $suffix) -{ - if (!IPS_VariableProfileExists($name)) { - IPS_CreateVariableProfile($name, $type); - IPS_SetVariableProfileText($name, "", $suffix); - } -} + public function RequestAction($Ident, $Value) { diff --git a/library.json b/library.json index 325ae2e..ddf2ac8 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.277", + "version": "0.278", "build": 0, "date": 0