Aktion
This commit is contained in:
@@ -16,12 +16,14 @@ class Batterie extends IPSModule
|
|||||||
$this->RegisterPropertyInteger("Entladestrom", 0);
|
$this->RegisterPropertyInteger("Entladestrom", 0);
|
||||||
|
|
||||||
// Variabeln für Kommunkation mit Manager
|
// Variabeln für Kommunkation mit Manager
|
||||||
$this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "", 0);
|
$this->RegisterVariableProfile("Batterie.Leistung", 1, "W");
|
||||||
|
$this->RegisterVariableProfile("Batterie.Strom", 1, "A");
|
||||||
|
$this->RegisterVariableInteger("Aktuelle_Leistung", "Aktuelle_Leistung", "Batterie.Leistung", 0);
|
||||||
$this->RegisterVariableString("PowerSteps", "PowerSteps");
|
$this->RegisterVariableString("PowerSteps", "PowerSteps");
|
||||||
$this->RegisterVariableBoolean("Idle", "Idle", "", 0);
|
$this->RegisterVariableBoolean("Idle", "Idle", "", 0);
|
||||||
$this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio");
|
$this->RegisterVariableInteger("Sperre_Prio", "Sperre_Prio");
|
||||||
$this->RegisterVariableInteger("PV_Prio", "PV_Prio");
|
$this->RegisterVariableInteger("PV_Prio", "PV_Prio");
|
||||||
$this->RegisterVariableFloat("Bezogene_Energie", "Bezogene_Energie", "", 0);
|
$this->RegisterVariableFloat("Bezogene_Energie", "Bezogene_Energie", "Batterie.Leistung", 0);
|
||||||
|
|
||||||
// Hilfsvariabeln für Idle zustand
|
// Hilfsvariabeln für Idle zustand
|
||||||
$this->RegisterPropertyInteger("IdleCounterMax", 2);
|
$this->RegisterPropertyInteger("IdleCounterMax", 2);
|
||||||
@@ -53,6 +55,14 @@ class Batterie extends IPSModule
|
|||||||
return $array_powersteps;
|
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)
|
public function RequestAction($Ident, $Value)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,20 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
|||||||
break;
|
break;
|
||||||
case "GetCurrentData":
|
case "GetCurrentData":
|
||||||
return $this->GetCurrentData($Value);
|
return $this->GetCurrentData($Value);
|
||||||
|
case "Mindesttemperatur":
|
||||||
|
// Setze den neuen Wert für Mindesttemperatur
|
||||||
|
$this->SetValue($Ident, $Value);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Maximaltemperatur":
|
||||||
|
// Setze den neuen Wert für Maximaltemperatur
|
||||||
|
$this->SetValue($Ident, $Value);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Legionellentemperatur":
|
||||||
|
// Setze den neuen Wert für Legionellentemperatur
|
||||||
|
$this->SetValue($Ident, $Value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Exception("Invalid Ident");
|
throw new Exception("Invalid Ident");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.262",
|
"version": "0.263",
|
||||||
|
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
|
|||||||
Reference in New Issue
Block a user