batterie repariert

This commit is contained in:
belevo\mh
2025-01-21 07:50:34 +01:00
parent 8593991c0f
commit d32e7b2915
2 changed files with 4 additions and 12 deletions

View File

@@ -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)
{

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "0.277",
"version": "0.278",
"build": 0,
"date": 0