no message
This commit is contained in:
@@ -58,10 +58,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "SelectVariable",
|
"type": "SelectVariable",
|
||||||
"name": "Batteriespannung",
|
"name": "Batteriestand",
|
||||||
"caption": "Batteriespannung",
|
"caption": "Batteriespannung",
|
||||||
"test": true
|
"test": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "SelectVariable",
|
||||||
|
"name": "Batterie_Ladezustand",
|
||||||
|
"caption": "Batterie Ladeszutand %",
|
||||||
|
"test": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "SelectVariable",
|
"type": "SelectVariable",
|
||||||
"name": "Netzbezug",
|
"name": "Netzbezug",
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ class Batterie_Deye extends IPSModule
|
|||||||
$this->RegisterPropertyInteger("MaxBatterieleistung", 0);
|
$this->RegisterPropertyInteger("MaxBatterieleistung", 0);
|
||||||
// Batteriespannug ist jetzt in % nicht mehr in V
|
// Batteriespannug ist jetzt in % nicht mehr in V
|
||||||
$this->RegisterPropertyInteger("Batteriespannung", 50);
|
$this->RegisterPropertyInteger("Batteriespannung", 50);
|
||||||
|
$this->RegisterPropertyInteger("Batterie_Ladezustand", 50)
|
||||||
$this->RegisterPropertyFloat("AufdasNachladen",0);
|
$this->RegisterPropertyFloat("AufdasNachladen",0);
|
||||||
$this->RegisterPropertyFloat("MinimumEntladen",0);
|
$this->RegisterPropertyFloat("MinimumEntladen",0);
|
||||||
$this->RegisterPropertyInteger("Batteriemanagement", 1);
|
$this->RegisterPropertyInteger("Batteriemanagement", 1);
|
||||||
@@ -224,7 +225,7 @@ public function RequestAction($Ident, $Value)
|
|||||||
$V_Tou = GetValue($this->ReadPropertyInteger("Kotnrolle_TOU_Spannung"));
|
$V_Tou = GetValue($this->ReadPropertyInteger("Kotnrolle_TOU_Spannung"));
|
||||||
$V_lad_ent = $this->GetValue("Batteriespannung_laden_entladen");
|
$V_lad_ent = $this->GetValue("Batteriespannung_laden_entladen");
|
||||||
|
|
||||||
if ($ct != $sell_Ct || $V_Tou != $V_lad_ent) {
|
if ($ct != $sell_Ct) {
|
||||||
$this->SetValue("Schreibkontrolle", false);
|
$this->SetValue("Schreibkontrolle", false);
|
||||||
} else {
|
} else {
|
||||||
$this->SetValue("Schreibkontrolle", true);
|
$this->SetValue("Schreibkontrolle", true);
|
||||||
@@ -254,7 +255,7 @@ public function RequestAction($Ident, $Value)
|
|||||||
$dummy_array = [];
|
$dummy_array = [];
|
||||||
|
|
||||||
|
|
||||||
$batterieladezustand = $V;
|
$batterieladezustand = GetValue($this->ReadPropertyInteger("Batterie_Ladezustand"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user